maven2-xdoclet2-plugin not found

Im trying to build JI from svn-source, but i always geht the following error:

[DEBUG] Skipping disabled repository Maven Snapshots
[DEBUG] maven2-xdoclet2-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the latest version

xdoclet:maven2-xdoclet2-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM xdoclet:maven2-xdoclet2-plugin:pom:LATEST
[DEBUG] maven2-xdoclet2-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the release version

xdoclet:maven2-xdoclet2-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM xdoclet:maven2-xdoclet2-plugin:pom:RELEASE
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1216)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:982)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Fri Oct 20 10:58:25 CEST 2006
[INFO] Final Memory: 8M/23M
[INFO] ------------------------------------------------------------------------


i installed manually the maven2-xdoclet2-plugin and tried again, without success.

the path given in the settings.xml
Code:
<br />
  <repository> <br />
                <id>jasperServer</id> <br />
                <name>Base repository for Jasper Server</name> <br />
                <url>file:///Users/bcn/compile/jasperintel/jasperserver-repo/</url> <br />
            </repository> <br />
</td></tr></tbody></table><br />
<br />
any suggestions?
mar's picture
mar
1
Joined: Oct 15 2006 - 5:44pm
Last seen: 16 years 11 months ago

6 Answers:

swood's picture
24535
Joined: Jun 21 2006 - 12:48pm
Last seen: 10 years 11 months ago
Also, I see in your post that Maven Snapshots was disabled. It was probably down at the time, so rerunning the build may work now. We are looking to have a public Maven2 repository that will have all the required components for a JI build.


Sherman
JasperSoft
swood's picture
24535
Joined: Jun 21 2006 - 12:48pm
Last seen: 10 years 11 months ago
I've the same problem, I tried all tips mentioned on this forum, but the problem presist.

someone can help me please??


[INFO] Building Jasper Server API Implementations - Metadata
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] artifact xdoclet:maven2-xdoclet2-plugin: checking for updates from Maven Snapshots
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1286)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1221)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:987)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:228)
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:90)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:161)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)
... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 12 seconds
[INFO] Finished at: Wed Mar 21 17:00:50 BOT 2007
[INFO] Final Memory: 7M/13M
[INFO] ------------------------------------------------------------------------
eddysan's picture
11
Joined: Oct 26 2006 - 9:09am
Last seen: 16 years 11 months ago
In the process of setting up a Bamboo CI server on linux I was getting this type ([INFO] The plugin 'org.apache.maven.plugins:maven-XXX-plugin' does not exist or no valid version could be found) of message.

After much head scratching I finally just deleted the Maven2 repository (/home/USER/.m2.repository). The next attempt to do a build succeeded. It appears it was corrupt.
cardenizen's picture
Joined: Mar 28 2007 - 11:31pm
Last seen: 16 years 6 months ago
One thing I found is if you set a version for xdoclet in the jasperserver-api-impl\metadata pom.xml like

<groupId>xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<version>2.0.5-20060117.143439-6</version>

everything builds without a problem.


thanks
Jeff
jgardner16's picture
Joined: Aug 10 2006 - 2:26pm
Last seen: 6 years 7 months ago
To resolve it just add the following plugin repository in the settings.xml file inside $HOME/.m2/ directory.

http://www.ibiblio.org/maven2/
cppkid's picture
-1
Joined: Mar 1 2007 - 8:05pm
Last seen: 16 years 7 months ago
Feedback
randomness