I was just wondering if anyone else here was running maven b8 on a project 
in subversion. I put the suggested properties in my project.properties 
from the changelog plugin, and it makes it past that point, but when it 
gets to the actual process of putting everything together and I get:

xdoc:generate-from-pom:
    [echo] Generating xdocs from POM ...

BUILD FAILED
org.apache.commons.jelly.JellyTagException: null:320:9: <velocity:merge> 
Invocation of method 'getCvsRoot' in  class 
org.apache.maven.project.Repository threw exception class 
java.lang.StringIndexOutOfBoundsException : String index out of range: -3
  at org.apache.commons.jelly.tags.velocity.MergeTag.mergeTemplate(MergeTag.java:239)
  at org.apache.commons.jelly.tags.velocity.MergeTag.doTag(MergeTag.java:108)
  at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
  at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
  at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
  at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:145)
  at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
  at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

>From looking at the code the problem is with:

getConnection().substring( 0, connection.lastIndexOf( ":" ) ).substring( 7 );

Which given the connection listed in the maven project.xml:

scm:cvs:pserver:[EMAIL PROTECTED]:/home/cvspublic:maven:anoncvs

Seems like reasonable, but given a subversion url like:

http://honors.tntech.edu/svn/projects/play/

Jumps off the end of the string... I don't really know enough about the 
different ways the cvs and subversion resource to suggest a fix though...

Just commenting the connection out will take care of getting it to build, 
but it leaves some rather interesting comments in the anonymous cvs 
section.

Something that would be useful is to put an #if($conn) block around the 
anonymous cvs section in:

maven/src/plugins-build/xdoc/src/plugin-resources/templates/cvs-usage.xml

Will


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to