You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Zhongming Hua (Jira)" <ji...@apache.org> on 2023/04/26 00:55:00 UTC

[jira] [Updated] (MNG-7755) If a plugin is an extension, the managed version is ignored

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

Zhongming Hua updated MNG-7755:
-------------------------------
    Attachment:     (was: image-2023-04-26-08-54-22-523.png)

> If a plugin is an extension, the managed version is ignored
> -----------------------------------------------------------
>
>                 Key: MNG-7755
>                 URL: https://issues.apache.org/jira/browse/MNG-7755
>             Project: Maven
>          Issue Type: Bug
>            Reporter: Christoph Läubrich
>            Priority: Major
>
> I have the following in a child pom:
> {code}  <build>
>     <plugins>
>       <plugin>
>         <groupId>org.eclipse.tycho</groupId>
>         <artifactId>tycho-bnd-plugin</artifactId>
>         <version>${tycho.version}</version>
>         <extensions>true</extensions>
>       </plugin>
>     </plugins>
>   </build>
> {code}
> and in the parent:
> {code}<pluginManagement>
> 	<plugins>
> 		<plugin>
> 			<groupId>org.eclipse.tycho</groupId>
> 			<artifactId>tycho-bnd-plugin</artifactId>
> 			<version>${tycho.version}</version>
> 		</plugin>
> 	</plugins>
> </pluginManagement>{code}
> 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
> {code}  <build>
>     <plugins>
>       <plugin>
>         <groupId>org.eclipse.tycho</groupId>
>         <artifactId>tycho-bnd-plugin</artifactId>
>         <version>${tycho.version}</version>
>         <extensions>true</extensions>
>       </plugin>
>     </plugins>
>   </build>
> {code}
> it works ... it seems to be triggered by the <extensions>true</extensions> tag here that it then do not look at ate managed version...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)