Jersey generate-wadl sample fails with Javadoc >2.4
---------------------------------------------------
Key: MJAVADOC-323
URL: https://jira.codehaus.org/browse/MJAVADOC-323
Project: Maven 2.x Javadoc Plugin
Issue Type: Bug
Affects Versions: 2.8, 2.7, 2.6.1, 2.6, 2.5
Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Java version: 1.6.0_26, vendor: Apple Inc.
Reporter: Roland Müller
If I want to compile generate-wadl sample of Jersey 1.8 in its standard
configuration with maven-javadoc-plugin version 2.4, everything works well. If
I change to a higher javadoc version, the build fails:
{noformat}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:2.8:javadoc (default) on project
generate-wadl: An error has occurred in JavaDocs report generation: Unable to
find artifact:groupId = 'com.sun.jersey'
[ERROR] artifactId = 'jersey-server'
[ERROR] version = '1.8': Failure to find
com.sun.jersey:jersey-server:bundle:1.8 in
http://nexus.xxx/nexus/content/groups/public was cached in the local
repository, resolution will not be reattempted until the update interval of
nexus has elapsed or updates are forced
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=com.sun.jersey
-DartifactId=jersey-server -Dversion=1.8 -Dpackaging=bundle -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file
there:
[ERROR] mvn deploy:deploy-file -DgroupId=com.sun.jersey
-DartifactId=jersey-server -Dversion=1.8 -Dpackaging=bundle
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
{noformat}
What confuses me is the {com.sun.jersey:jersey-server:bundle:1.8}. Shouldn't it
be {com.sun.jersey:jersey-server:1.8} or {com.sun.jersey:bundle:1.8}?
The generate-wadl sample is available here:
http://java.net/projects/jersey/sources/svn/show/tags/jersey-1.8/jersey/samples/generate-wadl
To reproduce the build failure, edit pom.xml and change maven-javadoc-plugin
version from 2.4 to 2.8.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira