[
https://issues.apache.org/activemq/browse/SM-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40982#action_40982
]
Daniel Kulp commented on SM-1187:
---------------------------------
I've come to the same conclusion as Freeman.
I THINK we can work around this in the CXF codegen plugin a few different ways:
1) Put a security manager in place to block the System.setProperty calls
2) Get the system properties at the start, then restore them at the end
3) Fork the wsdl2java in a new JVM
I'd LIKE to do #3 anyway (add a <fork>true</fork> param) as that could fix all
kinds of things. (like the static doc factory issue)
If Freeman doesn't get to it, I'll investigate more tomorrow.
That all said, it really is a maven bug and any plugin that does XML things
could potentially trigger the issue.
> A clean build from the ServiceMix trunk fails in the servicemix-cxf-bc
> -----------------------------------------------------------------------
>
> Key: SM-1187
> URL: https://issues.apache.org/activemq/browse/SM-1187
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-cxf-bc
> Affects Versions: 3.3
> Reporter: Bruce Snyder
> Assignee: Freeman Fang
> Priority: Blocker
>
> After moving aside my local Maven repo and building the trunk, I'm seeing a
> failure in step2 ({{mvn -Dmaven.test.skip=true install -Pstep2}}) in the
> servicemix-cxf-bc:
> {panel}
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> Missing:
> ----------
> 1) org.apache.cxf:cxf-api:jar:2.4.1
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.cxf -DartifactId=cxf-api
> -Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.cxf -DartifactId=cxf-api
> -Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
> Path to dependency:
> 1) org.apache.servicemix:servicemix-cxf-bc:jbi-component:3.3-SNAPSHOT
> 2) org.apache.cxf:cxf-rt-ws-rm:jar:2.1-incubator-SNAPSHOT
> 3) org.apache.cxf:cxf-api:jar:2.4.1
> 2) org.apache.cxf:cxf-common-utilities:jar:2.4.1
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.cxf
> -DartifactId=cxf-common-utilities -Dversion=2.4.1 -Dpackaging=jar
> -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.cxf
> -DartifactId=cxf-common-utilities -Dversion=2.4.1 -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> Path to dependency:
> 1) org.apache.servicemix:servicemix-cxf-bc:jbi-component:3.3-SNAPSHOT
> 2) org.apache.cxf:cxf-rt-ws-rm:jar:2.1-incubator-SNAPSHOT
> 3) org.apache.cxf:cxf-common-utilities:jar:2.4.1
> 3) org.apache.cxf:cxf-rt-core:jar:2.4.1
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.cxf
> -DartifactId=cxf-rt-core -Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.cxf
> -DartifactId=cxf-rt-core -Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file
> -Durl=[url] -DrepositoryId=[id]
> Path to dependency:
> 1) org.apache.servicemix:servicemix-cxf-bc:jbi-component:3.3-SNAPSHOT
> 2) org.apache.cxf:cxf-rt-ws-rm:jar:2.1-incubator-SNAPSHOT
> 3) org.apache.cxf:cxf-rt-core:jar:2.4.1
> 4) org.apache.cxf:cxf-rt-transports-http:jar:2.4.1
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.cxf
> -DartifactId=cxf-rt-transports-http -Dversion=2.4.1 -Dpackaging=jar
> -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.cxf
> -DartifactId=cxf-rt-transports-http -Dversion=2.4.1 -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> Path to dependency:
> 1) org.apache.servicemix:servicemix-cxf-bc:jbi-component:3.3-SNAPSHOT
> 2)
> org.apache.cxf:cxf-rt-transports-http-jetty:jar:2.1-incubator-SNAPSHOT
> 3) org.apache.cxf:cxf-rt-transports-http:jar:2.4.1
> ----------
> 4 required artifacts are missing.
> for artifact:
> org.apache.servicemix:servicemix-cxf-bc:jbi-component:3.3-SNAPSHOT
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo/),
> apache.snapshots (http://svn.apache.org/maven-snapshot-repository),
> codehaus (http://repository.codehaus.org),
> apache-incubating (http://people.apache.org/repo/m2-incubating-repository),
> apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 minutes 13 seconds
> [INFO] Finished at: Fri Dec 28 13:56:52 MST 2007
> [INFO] Final Memory: 59M/112M
> [INFO]
> ------------------------------------------------------------------------
> {panel}
> What I really can't figure out is from where the 2.4.1 version number
> originates. Can anyone shed some light on this failure? I'm marking this
> issue as a blocker because it prevents compilation of the trunk.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.