Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Either update does not work with Maven 3.1.x #121

Open
glassfishrobot opened this issue Dec 4, 2013 · 9 comments
Open

Either update does not work with Maven 3.1.x #121

glassfishrobot opened this issue Dec 4, 2013 · 9 comments

Comments

@glassfishrobot
Copy link
Contributor

The upgrade to Sonatype either breaks the plugin for Maven 3.1.x.

See here and here for reference.

I have a patch which makes it work with 3.1 but not with 3.0.x anymore. The resources should reveal how it can be switched back and forth at runtime.

@glassfishrobot
Copy link
Contributor Author

Reported by michael-o

@glassfishrobot
Copy link
Contributor Author

ahammar said:
Dupe of #114

@glassfishrobot
Copy link
Contributor Author

michael-o said:
While this is true, I opened it due to the commment: "This is due to #108. Version 2.3 is Maven 3.1 compatible." Which is not true, it does not work.

@glassfishrobot
Copy link
Contributor Author

atrajano said:
Aether seems to be used to determine what the dependencies are to pass to the wsimport or wsgen programs. However, it seems we can get the information from the standard maven objects rather than going through aether.

I have already implemented this in my fork https://github.com/trajano/jaxws-maven-plugin however, I haven't tried out all possible scenarios yet there's not much in terms of test coverage to verify what I did was correct nor was there any documentation explaining how it works.

In my fork, I actually got rid of the aether dependency and also added some Javadoc explaining how it is supposed to work.

@glassfishrobot
Copy link
Contributor Author

michael-o said:
atrajano, the link http://site.trajano.net/jaxws-maven-plugin/ is dead. I will try your fork tomorrow. I am curious how this is going to work.

@glassfishrobot
Copy link
Contributor Author

michael-o said:
atrajano, the plugin fails with:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.345 s
[INFO] Finished at: 2014-04-29T10:45:09+01:00
[INFO] Final Memory: 23M/55M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.trajano.mojo:jaxws-maven-plugin:2.3.2-SNAPSHOT:wsimport (import-t
arget-wdsl) on project x2tc-iec-import-client: Execution import-target-wdsl of goal net.trajano.mojo
:jaxws-maven-plugin:2.3.2-SNAPSHOT:wsimport failed: A required class was missing while executing net
.trajano.mojo:jaxws-maven-plugin:2.3.2-SNAPSHOT:wsimport: org/jvnet/jax_ws_commons/jaxws/WsImportMoj
o$XMLFile
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>net.trajano.mojo:jaxws-maven-plugin:2.3.2-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/D:/mvn-repository/net/trajano/mojo/jaxws-maven-plugin/2.3.2-SNAPSHOT/jaxws-m
aven-plugin-2.3.2-SNAPSHOT.jar
[ERROR] urls[1] = file:/D:/mvn-repository/com/sun/xml/ws/jaxws-tools/2.2.8/jaxws-tools-2.2.8.jar
[ERROR] urls[2] = file:/D:/mvn-repository/com/sun/xml/ws/jaxws-rt/2.2.8/jaxws-rt-2.2.8.jar
[ERROR] urls[3] = file:/D:/mvn-repository/com/sun/xml/bind/jaxb-core/2.2.7/jaxb-core-2.2.7.jar
[ERROR] urls[4] = file:/D:/mvn-repository/com/sun/istack/istack-commons-runtime/2.16/istack-commons-
runtime-2.16.jar
[ERROR] urls[5] = file:/D:/mvn-repository/com/sun/xml/bind/jaxb-impl/2.2.7/jaxb-impl-2.2.7.jar
[ERROR] urls[6] = file:/D:/mvn-repository/com/sun/xml/ws/policy/2.3.1/policy-2.3.1.jar
[ERROR] urls[7] = file:/D:/mvn-repository/org/glassfish/gmbal/gmbal-api-only/3.1.0-b001/gmbal-api-on
ly-3.1.0-b001.jar
[ERROR] urls[8] = file:/D:/mvn-repository/org/glassfish/external/management-api/3.0.0-b012/managemen
t-api-3.0.0-b012.jar
[ERROR] urls[9] = file:/D:/mvn-repository/org/jvnet/staxex/stax-ex/1.7.1/stax-ex-1.7.1.jar
[ERROR] urls[10] = file:/D:/mvn-repository/com/sun/xml/stream/buffer/streambuffer/1.5.1/streambuffer
-1.5.1.jar
[ERROR] urls[11] = file:/D:/mvn-repository/org/jvnet/mimepull/mimepull/1.9.1/mimepull-1.9.1.jar
[ERROR] urls[12] = file:/D:/mvn-repository/com/sun/xml/fastinfoset/FastInfoset/1.2.12/FastInfoset-1.
2.12.jar
[ERROR] urls[13] = file:/D:/mvn-repository/org/glassfish/ha/ha-api/3.1.9/ha-api-3.1.9.jar
[ERROR] urls[14] = file:/D:/mvn-repository/com/sun/xml/messaging/saaj/saaj-impl/1.3.20/saaj-impl-1.3
.20.jar
[ERROR] urls[15] = file:/D:/mvn-repository/javax/xml/soap/saaj-api/1.3.4/saaj-api-1.3.4.jar
[ERROR] urls[16] = file:/D:/mvn-repository/javax/activation/activation/1.1/activation-1.1.jar
[ERROR] urls[17] = file:/D:/mvn-repository/org/codehaus/woodstox/woodstox-core-asl/4.1.2/woodstox-co
re-asl-4.1.2.jar
[ERROR] urls[18] = file:/D:/mvn-repository/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar

[ERROR] urls[19] = file:/D:/mvn-repository/com/sun/org/apache/xml/internal/resolver/20050927/resolve
r-20050927.jar
[ERROR] urls[20] = file:/D:/mvn-repository/com/sun/xml/bind/jaxb-jxc/2.2.7/jaxb-jxc-2.2.7.jar
[ERROR] urls[21] = file:/D:/mvn-repository/com/sun/xml/bind/jaxb-xjc/2.2.7/jaxb-xjc-2.2.7.jar
[ERROR] urls[22] = file:/D:/mvn-repository/javax/xml/bind/jaxb-api/2.2.7/jaxb-api-2.2.7.jar
[ERROR] urls[23] = file:/D:/mvn-repository/javax/xml/soap/javax.xml.soap-api/1.3.5/javax.xml.soap-ap
i-1.3.5.jar
[ERROR] urls[24] = file:/D:/mvn-repository/javax/xml/ws/jaxws-api/2.2.9/jaxws-api-2.2.9.jar
[ERROR] urls[25] = file:/D:/mvn-repository/javax/annotation/javax.annotation-api/1.2-b03/javax.annot
ation-api-1.2-b03.jar
[ERROR] urls[26] = file:/D:/mvn-repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar
[ERROR] urls[27] = file:/D:/mvn-repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[28] = file:/D:/mvn-repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
[ERROR] urls[29] = file:/D:/mvn-repository/javax/inject/javax.inject/1/javax.inject-1.jar
[ERROR] urls[30] = file:/D:/mvn-repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
[ERROR] urls[31] = file:/D:/mvn-repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
[ERROR] urls[32] = file:/D:/mvn-repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_ao
p.jar
[ERROR] urls[33] = file:/D:/mvn-repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[34] = file:/D:/mvn-repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.ecl
ipse.sisu.inject-0.0.0.M5.jar
[ERROR] urls[35] = file:/D:/mvn-repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/pl
exus-component-annotations-1.5.5.jar
[ERROR] urls[36] = file:/D:/mvn-repository/backport-util-concurrent/backport-util-concurrent/3.1/bac
kport-util-concurrent-3.1.jar
[ERROR] urls[37] = file:/D:/mvn-repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-inte
rpolation-1.11.jar
[ERROR] urls[38] = file:/D:/mvn-repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[39] = file:/D:/mvn-repository/org/codehaus/plexus/plexus-utils/3.0.17/plexus-utils-3.0.
17.jar
[ERROR] urls[40] = file:/D:/mvn-repository/org/jvnet/jaxb2_commons/jaxb2-basics/0.6.5/jaxb2-basics-0
.6.5.jar
[ERROR] urls[41] = file:/D:/mvn-repository/org/jvnet/jaxb2_commons/jaxb2-basics-runtime/0.6.5/jaxb2-
basics-runtime-0.6.5.jar
[ERROR] urls[42] = file:/D:/mvn-repository/org/jvnet/jaxb2_commons/jaxb2-basics-tools/0.6.5/jaxb2-ba
sics-tools-0.6.5.jar
[ERROR] urls[43] = file:/D:/mvn-repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanuti
ls-1.7.0.jar
[ERROR] urls[44] = file:/D:/mvn-repository/commons-lang/commons-lang/2.2/commons-lang-2.2.jar
[ERROR] urls[45] = file:/D:/mvn-repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1
.1.jar
[ERROR] urls[46] = file:/D:/mvn-repository/com/google/code/javaparser/javaparser/1.0.8/javaparser-1.
0.8.jar
[ERROR] urls[47] = file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_25/jre/../lib/tools.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.jvnet.jax_ws_commons.jaxws.WsImpo
rtMojo$XMLFile
[ERROR] -> [Help 1]
[ERROR]

@glassfishrobot
Copy link
Contributor Author

hboutemy said:
this issues seems duplicated by #127

@glassfishrobot
Copy link
Contributor Author

michael-o said:
That is true but no one is to triage that. I ended up in a git-imported repo with Maven 3.1.x fixes

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA JAX_WS_COMMONS-121

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants