Mathieu Champlon wrote:
Hello,
I cannot seem to be able to build appassembler-maven-plugin from svn.
It did a checkout from
http://svn.codehaus.org/mojo/trunk/mojo/appassembler and tried a 'mvn
compile' :
----------
[INFO] Failed to resolve artifact.
GroupId: org.codehaus.mojo
ArtifactId: mojo
Version: 13-SNAPSHOT
Reason: Unable to download the artifact from any repository
org.codehaus.mojo:mojo:pom:13-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
----------
So I added this to appassembler/pom.xml :
<repositories>
<repository>
<id>codehaus</id>
<name>CodeHaus</name>
<url>http://snapshots.maven.codehaus.org/maven2</url>
</repository>
</repositories>
You need to check out all of mojo and build the parent project with mvn
-N to install the parent pom in your repository.
Then the next error is :
----------
Missing:
1) org.codehaus.mojo:appassembler-generic-model:jar:1.0-SNAPSHOT
----------
Therefore I added the following module to the bottom of
appassembler/pom.xml :
<module>appassembler-generic-model</module>
I'll commit this one now.
The following error happens next :
----------
[INFO] Trace
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at
org.codehaus.plexus.cdc.PlexusDefaultComponentGleaner.findRole(PlexusDefaultComponentGleaner.java:264)
...
----------
So I commented out the plexus plugin in
appassembler/appassembler-maven-plugin/pom.xml.
Finally it seems 'mvn compile' works, however tests fail during 'mvn
test', which seems obvious as test cases extend PlexusTestCase....
I don't really know plexus and I'm a bit stuck.....
I can provide a patch to fix the poms but I'm not even sure I'm heading
to the right direction.
I'll take a look at this now.
--
Trygve
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email