This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 189261 - Unwanted version warnings in pom.xml editor
Summary: Unwanted version warnings in pom.xml editor
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 185896 190889 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-05 22:56 UTC by Jesse Glick
Modified: 2010-10-12 16:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-08-05 22:56:47 UTC
If I have

            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.1</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>

the IDE warns me that the managed version is 2.0.2. But this reliance on the superpom is exactly what is deprecated in Maven 3. Users *should* specify an explicit version for every plugin they use.

Either remove the warning; or change it to warn you if you are using a version older than the latest available release, similar to:

http://mojo.codehaus.org/versions-maven-plugin/display-plugin-updates-mojo.html
Comment 1 Jesse Glick 2010-08-16 20:58:42 UTC
*** Bug 185896 has been marked as a duplicate of this bug. ***
Comment 2 Jesse Glick 2010-08-16 20:59:53 UTC
OverridePluginManagementError.collectManaged seems to be finding items declared in the superpom. These should be filtered out.
Comment 3 Jesse Glick 2010-08-18 22:00:19 UTC
Could delete entries found in pom-4.0.0.xml#/project/build/pluginManagement/plugins/plugin but 3.0-beta-2 (used in the maven-dev branch) includes only four of these:

      <!-- NOTE: These plugins will be removed from future versions of the super POM -->
      <!-- They are kept for the moment as they are very unlikely to conflict with lifecycle mappings (MNG-4453) -->
      <plugins>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2-beta-5</version>
        </plugin>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.0</version>
        </plugin>

Also this resource is in org/apache/maven/model/ in M3 but org/apache/maven/project/ in M2, and there is no obvious way of loading it via a supported API. So not clear it is worth the effort of excluding them.
Comment 4 Jesse Glick 2010-08-18 22:23:06 UTC
core-main #a7c5b10a56de
Comment 5 Quality Engineering 2010-08-20 03:10:37 UTC
Integrated into 'main-golden', will be available in build *201008200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a7c5b10a56de
User: Jesse Glick <jglick@netbeans.org>
Log: #189261: Unwanted version warnings in pom.xml editor
Comment 6 Jesse Glick 2010-10-12 16:22:22 UTC
*** Bug 190889 has been marked as a duplicate of this bug. ***