[
http://jira.codehaus.org/browse/MWEBSTART-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_119649
]
Kevin Stembridge commented on MWEBSTART-72:
-------------------------------------------
The mojo can't make use of Maven's dependency mechanism because of the
requirement to be able to include multiple versions of an artifact in the JNLP
bundle. See MWEBSTART-38. So I coded it to use the ArtifactResolver API in much
the same way as the maven-dependency-plugin. But, I didn't even consider the
case where a user might want to exclude transitives. :(
So that explains why I can't specify exclusions in the pom and also why all the
provided deps get pulled in. The solution is to implement our own exclusion
mechanism as suggested.
But I also have another suggestion. We should also provide a flag to exclude
all transitives in the same way that the [dependency
plugin|http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html]
does. That would be easy to implement and would give us both ends of the
spectrum wrt to including transitives (all or nothing). I think that should be
raised as a separate issue and this issue should still be implemented in time.
> Provide the ability to specify exclusions for JarResource elements in the
> JnlpDownloadServletMojo
> -------------------------------------------------------------------------------------------------
>
> Key: MWEBSTART-72
> URL: http://jira.codehaus.org/browse/MWEBSTART-72
> Project: Maven 2.x Webstart Plugin
> Issue Type: Improvement
> Components: jnlp-download-servlet
> Affects Versions: 1.0-alpha-2
> Reporter: Kevin Stembridge
>
> The JnlpDownloadServletMojo uses JarResource configuration elements to
> determine which artifacts to include in the bundle.
> We need to be able to specify exclusions in a JarResource in the same way
> that it can be done for a normal dependency.
> i.e.
> {code:xml}
> <jarResource>
> <groupId>com.mycompany</groupId>
> <artifactId>bogus</artifactId>
> <version>1.0</version>
> <exclusions>
> <exclusion>
> <groupId>com.somecompany</groupId>
> <artifactId>someartifact</artifactId>
> </exclusion>
> </exclusions>
> </jarResource>
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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