wilkinsona opened a new issue, #265:
URL: https://github.com/apache/maven-apache-parent/issues/265

   The management of `maven-plugin-annotations`, when inherited by the boms of 
other Apache projects, is causing a warning with Maven 4.0.0-beta-3. The 
warning can be reproduced with the following pom.xml:
   
   ```xml
   <?xml version="1.0" encoding="UTF-8"?>
   <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
https://maven.apache.org/xsd/maven-4.0.0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.example</groupId>
        <artifactId>example</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <name>example</name>
        <dependencyManagement>
                <dependencies>
                        <dependency>
                                <groupId>org.apache.pulsar</groupId>
                                <artifactId>pulsar-bom</artifactId>
                                <version>3.3.1</version>
                                <scope>import</scope>
                                <type>pom</type>
                        </dependency>
                        <dependency>
                                <groupId>org.apache.activemq</groupId>
                                <artifactId>artemis-bom</artifactId>
                                <version>2.36.0</version>
                                <scope>import</scope>
                                <type>pom</type>
                        </dependency>
                </dependencies>
        </dependencyManagement>
   </project>
   ```
   
   The warning is as follows:
   
   ```
   [WARNING] Some problems were encountered while building the effective model 
for 'com.example:example:jar:0.0.1-SNAPSHOT'
   [WARNING] Ignored POM import for: 
org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.13.1@compile as 
already imported 
org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.7.0@compile.  Add 
a the conflicting managed dependency directly to the dependencyManagement 
section of the POM.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to