cstamas commented on pull request #46:
URL: https://github.com/apache/maven-plugin-tools/pull/46#issuecomment-949899593


   w/ qdox 2.0.1-SNAPSHOT and finally fixed ordering (and removed skip for 
deprecated):
   ```
   [INFO] --- maven-plugin-plugin:3.6.2-SNAPSHOT:descriptor 
(default-descriptor) @ maven-plugin-minimal ---
   [ERROR] 
   
   Maven dependencies of Maven Plugins should be in provided scope.
   Please make sure that all your dependencies declared in POM whose group ID is
   org.apache.maven have set '<scope>provided</scope>' as well.
   In the future this error will break the build.
   
   The following dependencies are in wrong scope:
    * org.apache.maven:maven-plugin-api:jar:3.8.1:compile
    * org.apache.maven:maven-model:jar:3.8.1:compile
    * org.apache.maven:maven-artifact:jar:3.8.1:compile
    * org.apache.maven:maven-project:jar:2.2.1:compile
    * org.apache.maven:maven-settings:jar:2.2.1:compile
    * org.apache.maven:maven-profile:jar:2.2.1:compile
    * org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
    * org.apache.maven:maven-repository-metadata:jar:2.2.1:compile
    * org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
   
   Please fix your build!
   
   
   [WARNING] Using platform encoding (UTF-8 actually) to read mojo source 
files, i.e. build is platform dependent!
   [INFO] java-annotations mojo extractor found 1 mojo descriptor.
   [INFO] java-javadoc mojo extractor found 0 mojo descriptor.
   [INFO] ant mojo extractor found 0 mojo descriptor.
   [INFO] bsh mojo extractor found 0 mojo descriptor.
   ```
   
   but one remark: the POM of "test" project contains these dependencies:
   ```
     <dependencies>
       <dependency>
         <groupId>org.apache.maven</groupId>
         <artifactId>maven-plugin-api</artifactId>
         <version>3.8.1</version>
       </dependency>
       <dependency>
         <groupId>org.apache.maven.plugin-tools</groupId>
         <artifactId>maven-plugin-annotations</artifactId>
         <version>3.6.0</version>
         <scope>provided</scope>
       </dependency>
       <dependency>
         <groupId>org.apache.maven</groupId>
         <artifactId>maven-project</artifactId>
         <version>2.2.1</version>
       </dependency>
     </dependencies>
   ```
   
   Which is:
   * mvn 2 is ancien
   * mixes maven 3.8.1 and 2.1 😄 
   IMO, m-p-p should detect and forbid things like this....


-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to