Build from SVN sources

0
Hi all, I'm trying to build Jasperintel following the instructions from mthe developer guide.I have both jasperserver and jasperserver-repo but when I try "mvn install" or "mvn clean install" the build process fails with the following message:
Code:
[INFO] Building Jasper Server API Implementations - Metadata<br />
[INFO]    task-segment: [install]<br />
[INFO] ----------------------------------------------------------------------------<br />
[INFO] ------------------------------------------------------------------------<br />
[ERROR] BUILD ERROR<br />
[INFO] ------------------------------------------------------------------------<br />
[INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found<br />
[INFO] ------------------------------------------------------------------------<br />
[INFO] Trace<br />
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1216)<br />
....<br />
</td></tr></tbody></table><br />
I think something is wrong in settings.xml, maybe there should be a local pluginRepository.<br />
Any suggestion?<br />
TIA
ziogiugno's picture
Joined: Jul 24 2006 - 4:34pm
Last seen: 13 years 1 month ago

3 Answers:

0
I had the same problem. Run Maven with -U (mvn -U ...) This should update the plugins.
bhaugland's picture
Joined: Jul 28 2006 - 4:18am
Last seen: 13 years 1 month ago
0
I had the same problem. Run Maven with -U (mvn -U ...) This should update the plugins.
bhaugland's picture
Joined: Jul 28 2006 - 4:18am
Last seen: 13 years 1 month ago
0
mvn -U is a good trick.

Keep in mind that your settings.xml needs to be in your "home" directory (which can be confusing under windows) under a dir named .m2. Check to see that you settings.xml has a good format (if you copied it from the source build document, it could have bad characters in it...).

Maven2 will create a "repository" directory inside your .m2 directory. This is a "local repository" (for caching). This is where the plugins should end up. You can blow away your repository directory and let it get created again.
tkavanagh's picture
3113
Joined: Jul 7 2006 - 8:54am
Last seen: 5 years 1 week ago
Feedback
randomness