Issue Details (XML | Word | Printable)

Key: JAX_WS_COMMONS-66
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Critical Critical
Assignee: Lukas Jungmann
Reporter: escay
Votes: 3
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
jax-ws-commons

jaxws-maven-plugin maven project dependencies are old (2.0.4, while 3.0 is out)

Created: 21/Feb/11 04:26 AM   Updated: 12/Oct/11 02:03 PM   Resolved: 12/Oct/11 02:03 PM
Component/s: maven-plugin
Affects Version/s: current
Fix Version/s: 2.1

Time Tracking:
Not Specified

Issue Links:
Related
 

Tags:
Participants: escay, jroyals and Lukas Jungmann


 Description  « Hide

The pom.xml depends on "old" maven modules. In maven 3.0 the code has been changed a lot. The jaxws-maven-plugin uses the maven plugin to construct the classpath for wsgen.

Proposal move to the latest maven project versions, e.g. use:

<dependencies>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-tools</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>3.0-alpha-2</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>

This also solves the following problem:

  • module with jaxws-maven-plugin using wsgen builds correctly when build standalone
  • the same module as part of a large module hierarchy fails to build. The wsgen classpath contains jars on the classpath of unrelated modules. The resolving of these modules is caused by the code in maven-project.

Tested: using above dependencies the build problem is solved and wsgen is executed with the correct classpath.



jroyals added a comment - 10/May/11 03:40 PM - edited

Probably worth underlining that this plugin in incompatible with Maven 3, for the above reason. Here is the error message...


[ERROR] Failed to execute goal org.codehaus.mojo:jaxws-maven-plugin:1.12:wsimport (default) on project elmi-client: Execution default of goal org.codehaus.mojo:jaxws-maven-plugin:1.12:wsimport failed: Plugin org.codehaus.mojo:jaxws-maven-plugin:1.12 or one of its dependencies could not be resolved: Failed to collect dependencies for org.codehaus.mojo:jaxws-maven-plugin:jar:1.12 (): Failed to read artifact descriptor for com.sun.xml.ws:jaxws-tools:jar:2.1.7: Could not transfer artifact com.sun.xml.ws:jaxws-tools:pom:2.1.7 from maven1-repository.java.net (http://download.java.net/maven/1/): No connector available to access repository maven1-repository.java.net (http://download.java.net/maven/1/) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]


Lukas Jungmann added a comment - 06/Sep/11 11:56 AM

this needs to be addressed


Lukas Jungmann added a comment - 06/Oct/11 04:53 PM

Some project dependencies are going to be updated within JAX_WS_COMMONS-74 but since JAX-WS 2.1.x and its dependencies are still available in Maven 1 legacy repo only, it is not possible to use it from Maven3 - this is to be addressed within JAX_WS_COMMONS-52, hence marking as a dup of it


Lukas Jungmann added a comment - 12/Oct/11 02:02 PM

to re-close with proper fix version