[
https://jira.codehaus.org/browse/MWEBSTART-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296687#comment-296687
]
Christian Göller edited comment on MWEBSTART-116 at 4/18/12 12:59 AM:
----------------------------------------------------------------------
It works for me. Thanks!
One more thing: I have a case where things are a bit strange. A zip with a test
project is attached.
the project contains 4 modules, 3 jars and one webstart.war
The first jar has a dependency that is relocated (xerces -> xercesImpl 2.4.0)
and an additional dependency xercesImpl 2.7.1 with a different version.
When using mvn dependency:tree and dependency:resolve I get different results:
dependency:tree --> xerces:xercesImpl:jar:2.4.0:runtime
dependency:resolve --> xerces:xercesImpl:jar:2.7.1:runtime
C:\Temp\mvn-webstart-testcase\dep2>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dep2 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ dep2 ---
[INFO] test.group:dep2:jar:0.0.1-SNAPSHOT
[INFO] \- test.group:dep1:jar:0.0.1-SNAPSHOT:compile
[INFO] \- xerces:xercesImpl:jar:2.4.0:runtime
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.874s
[INFO] Finished at: Wed Apr 18 07:44:31 CEST 2012
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
C:\Temp\mvn-webstart-testcase\dep2>mvn dependency:resolve
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dep2 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:resolve (default-cli) @ dep2 ---
[INFO]
[INFO] The following files have been resolved:
[INFO] test.group:dep1:jar:0.0.1-SNAPSHOT:compile
[INFO] xerces:xercesImpl:jar:2.7.1:runtime
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.874s
[INFO] Finished at: Wed Apr 18 07:44:38 CEST 2012
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
The 3rd jar module uses the dependency plugin to copy the dependencies:
[INFO] --- maven-dependency-plugin:2.4:copy-dependencies (1) @ dep3 ---
[INFO] Copying dep1-0.0.1-SNAPSHOT.jar to
C:\Temp\mvn-webstart-testcase\dep3\target\dependency\dep1-0.0.1-SNAPSHOT.jar
[INFO] Copying xercesImpl-2.7.1.jar to
C:\Temp\mvn-webstart-testcase\dep3\target\dependency\xercesImpl-2.7.1.jar
[INFO] Copying dep2-0.0.1-SNAPSHOT.jar to
C:\Temp\mvn-webstart-testcase\dep3\target\dependency\dep2-0.0.1-SNAPSHOT.jar
It behaves like dependency:resolve as is copies xercesImpl-2.7.1.jar
The webstart modules packs xercesImpl-2.4.0.jar into the war. It behaves like
dependency:tree
So what is the correct behaviour ?
was (Author: goeller):
It works for me. Thanks!
One more thing: I have a case where things are a bit strange. A zip with a few
test project is attached.
the project contains 4 modules, 3 jars and one webstart.war
The first jar has a dependency that is relocated (xerces -> xercesImpl 2.4.0)
and an additional dependency xercesImpl 2.7.1 with a different version.
When using mvn dependency:tree and dependency:resolve I get different results:
dependency:tree --> xerces:xercesImpl:jar:2.4.0:runtime
dependency:resolve --> xerces:xercesImpl:jar:2.7.1:runtime
C:\Temp\mvn-webstart-testcase\dep2>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dep2 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ dep2 ---
[INFO] test.group:dep2:jar:0.0.1-SNAPSHOT
[INFO] \- test.group:dep1:jar:0.0.1-SNAPSHOT:compile
[INFO] \- xerces:xercesImpl:jar:2.4.0:runtime
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.874s
[INFO] Finished at: Wed Apr 18 07:44:31 CEST 2012
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
C:\Temp\mvn-webstart-testcase\dep2>mvn dependency:resolve
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dep2 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:resolve (default-cli) @ dep2 ---
[INFO]
[INFO] The following files have been resolved:
[INFO] test.group:dep1:jar:0.0.1-SNAPSHOT:compile
[INFO] xerces:xercesImpl:jar:2.7.1:runtime
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.874s
[INFO] Finished at: Wed Apr 18 07:44:38 CEST 2012
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
The 3rd jar module uses the dependency plugin to copy the dependencies:
[INFO] --- maven-dependency-plugin:2.4:copy-dependencies (1) @ dep3 ---
[INFO] Copying dep1-0.0.1-SNAPSHOT.jar to
C:\Temp\mvn-webstart-testcase\dep3\target\dependency\dep1-0.0.1-SNAPSHOT.jar
[INFO] Copying xercesImpl-2.7.1.jar to
C:\Temp\mvn-webstart-testcase\dep3\target\dependency\xercesImpl-2.7.1.jar
[INFO] Copying dep2-0.0.1-SNAPSHOT.jar to
C:\Temp\mvn-webstart-testcase\dep3\target\dependency\dep2-0.0.1-SNAPSHOT.jar
It behaves like dependency:resolve as is copies xercesImpl-2.7.1.jar
The webstart modules packs xercesImpl-2.4.0.jar into the war. It behaves like
dependency:tree
So what is the correct behaviour ?
> jnlp-download-servlet should use dependencyManagement
> -----------------------------------------------------
>
> Key: MWEBSTART-116
> URL: https://jira.codehaus.org/browse/MWEBSTART-116
> Project: Maven 2.x Webstart Plugin
> Issue Type: Improvement
> Components: jnlp-download-servlet
> Affects Versions: 1.0-alpha-2
> Environment: all
> Reporter: deckrider
> Assignee: Tony Chemit
> Attachments: MWEBSTART-116.patch, MWEBSTART-116-testproject.zip
>
>
> Within jarResources, version should not be required. If it is not provided,
> it should be inherited from dependencyManagement.
> However, when I try follow that approach, I get this:
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Configuration error: groupId, artifactId or version missing for
> jarResource[JarResource[ groupId='jboss', artifactId='jbossall-client',
> version='null', classifier='null', mainClass='null' ]].
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email