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 |
3 Answers:
Posted on August 4, 2006 at 6:07am
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.
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.