[Updated] (MENFORCER-357) RequirePluginVersions not recognizing versions-from-properties

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Updated] (MENFORCER-357) RequirePluginVersions not recognizing versions-from-properties

Sylwester Lachiewicz (Jira)

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

Jeffrey Bennett updated MENFORCER-357:
--------------------------------------
    Attachment: Annotation 2020-08-02 024036.png

> RequirePluginVersions not recognizing versions-from-properties
> --------------------------------------------------------------
>
>                 Key: MENFORCER-357
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-357
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>            Reporter: Jeffrey Bennett
>            Priority: Major
>         Attachments: Annotation 2020-08-02 024036.png, child-pom.xml, parent-pom.xml, sample-pom.xml
>
>
> Fails (plugin version as a property applied in pluginManagement):
> {code:xml}
> <properties>
>   <some.plugin.version>1.0.0</some.plugin.version>
> </properties>
> <build>
>   <pluginManagement>
>     <plugins>
>       <plugin>
>         <groupId>org.example</groupId><artifactId>some-plugin</artifactId>
>         <version>${some.plugin.version}</version>
>       </plugin>
>     </plugins>
>   </pluginManagment>
>   <plugins>
>     <plugin>
>       <groupId>org.example</groupId>
>       <artifactId>some-plugin</artifactId>
>     </plugin>
>   </plugins>
> </build>
> {code}
> Works OK:  (plugin version as a raw-version in pluginManagement):
> {code:xml}
> <build>
>   <pluginManagement>
>     <plugins>
>       <plugin>
>         <groupId>org.example</groupId>
>         <artifactId>some-plugin</artifactId>
>         <version>1.0.0</version>
>       </plugin>
>     </plugins>
>   </pluginManagment>
>   <plugins>
>     <plugin>
>       <groupId>org.example</groupId>
>       <artifactId>some-plugin</artifactId>
>     </plugin>
>   </plugins>
> </build>
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)