[
https://jira.codehaus.org/browse/MWEBSTART-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tony Chemit closed MWEBSTART-148.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.0-beta-2
Assignee: Tony Chemit
I just check with the test project from MNG-4672 and it works fine with maven
3.0.3
As the MNG-3297 is fixed and closed, we can close this one.
> Fix dependency resolution/handling
> ----------------------------------
>
> Key: MWEBSTART-148
> URL: https://jira.codehaus.org/browse/MWEBSTART-148
> Project: Maven 2.x Webstart Plugin
> Issue Type: Bug
> Components: jnlps
> Affects Versions: 1.0-alpha-2
> Reporter: Benjamin Bentmann
> Assignee: Tony Chemit
> Fix For: 1.0-beta-2
>
> Attachments:
> 2010-10-24-1730-fix-to-webstart-maven-plugin-for-MWEBSTART-148.patch
>
>
> From the plugin's source:
> {code:java}
> * @requiresDependencyResolution runtime
> */
> public class JnlpMojo
> extends AbstractJnlpMojo
> {
> /**
> * Get the executed project from the forked lifecycle.
> *
> * @parameter expression="${executedProject}"
> * @required
> * @readonly
> */
> private MavenProject executedProject;
> {code}
> and later on in {{processDependencies()}} the equivalent of
> {{executedProject.getArtifacts()}} is invoked.
> This design is flawed. The annotation {{@requiresDependencyResolution
> runtime}} applies to the current project only, not the forked one. So when
> {{executedProject.getArtifacts()}} is called, there is no guarantee that the
> plugin actually grabs the runtime dependencies. Instead (in Maven 2.x), it
> grabs the dependencies that have been resolved for the last plugin that
> participated in the forked {{executedProject}} (see also MNG-3297).
--
This message is automatically generated by JIRA.
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