EclipsePlugin parameter to skip dependency resolution
-----------------------------------------------------

                 Key: MECLIPSE-407
                 URL: http://jira.codehaus.org/browse/MECLIPSE-407
             Project: Maven 2.x 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 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

        

Reply via email to