Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-407

EclipsePlugin parameter to skip dependency resolution

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.5
    • None
    • PDE support
    • None

    Description

      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;

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuri Yuri Schimke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: