You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2015/09/06 22:46:24 UTC

[jira] [Closed] (MECLIPSE-407) EclipsePlugin parameter to skip dependency resolution

     [ https://issues.apache.org/jira/browse/MECLIPSE-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MECLIPSE-407.
-----------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

> EclipsePlugin parameter to skip dependency resolution
> -----------------------------------------------------
>
>                 Key: MECLIPSE-407
>                 URL: https://issues.apache.org/jira/browse/MECLIPSE-407
>             Project: Maven Eclipse Plugin
>          Issue Type: Improvement
>          Components: PDE support
>    Affects Versions: 2.5
>            Reporter: Yuri Schimke
>
> Because all our projects are PDE projects, we don't need want all the JARs copied locally and added to the classpath.  
> Because there is no option to stop them being added to .classpath apart from adding a lot of excludes, we have a subclass of EclipsePlugin that does a similar tihng to the M2EclipsePlugin
>   protected void setupExtras() throws MojoExecutionException {
>     if (isPdeProject()) {
>       // disable normal dependency resolution
>       setResolveDependencies(false);
>     }
>   }
> However, it we could set a flag to stop dependency resolution, we would not need to maintain our own plugin.  i.e. add the parameter javadoc.
>     /**
>      * Flag for mojo implementations to control whether normal maven dependencies should be resolved. Default value is
>      * true.
>      *
>      * @parameter expression="${eclipse.resolveDependencies}" default-value="true"
>      */
>     private boolean resolveDependencies = true;



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)