Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7755

If a plugin is an extension, the managed version is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None

    Description

      I have the following in a child pom:

        <build>
          <plugins>
            <plugin>
              <groupId>org.eclipse.tycho</groupId>
              <artifactId>tycho-bnd-plugin</artifactId>
              <extensions>true</extensions>
            </plugin>
          </plugins>
        </build>
      

      and in the parent:

      <pluginManagement>
      	<plugins>
      		<plugin>
      			<groupId>org.eclipse.tycho</groupId>
      			<artifactId>tycho-bnd-plugin</artifactId>
      			<version>${tycho.version}</version>
      		</plugin>
      	</plugins>
      </pluginManagement>

      This gives an warning (and alter an error):
      [WARNING] 'build.plugins.plugin.version' for org.eclipse.tycho:tycho-bnd-plugin is missing.

      If I write directly in the child

        <build>
          <plugins>
            <plugin>
              <groupId>org.eclipse.tycho</groupId>
              <artifactId>tycho-bnd-plugin</artifactId>
              <version>${tycho.version}</version>
              <extensions>true</extensions>
            </plugin>
          </plugins>
        </build>
      

      it works ... it seems to be triggered by the <extensions>true</extensions> tag here that it then do not look at ate managed version...

      Attachments

        1. testme.zip
          1 kB
          Christoph Läubrich

        Activity

          People

            Unassigned Unassigned
            laeubi Christoph Läubrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: