[ https://issues.apache.org/jira/browse/MNG-7808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733925#comment-17733925 ]
Herve Boutemy edited comment on MNG-7808 at 6/18/23 3:52 PM: ------------------------------------------------------------- executing the archetype generate followed by "mvn package" in the generated directory, I don't get any WARNING I'm completely surprised, but that's what I get, even with older Maven: {noformat}mvn -V package Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /home/herve/.sdkman/candidates/maven/3.6.3 Java version: 11.0.16, vendor: Azul Systems, Inc., runtime: /home/herve/.sdkman/candidates/java/11.0.16-zulu Default locale: fr_FR, platform encoding: UTF-8 OS name: "linux", version: "5.15.0-75-generic", arch: "amd64", family: "unix" [INFO] Scanning for projects... [INFO] [INFO] -----------------------------< test:camel >----------------------------- [INFO] Building A Camel Route 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ camel --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] skip non existing resourceDirectory /home/herve/tmp/init/camel/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ camel --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ camel --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] skip non existing resourceDirectory /home/herve/tmp/init/camel/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ camel --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ camel --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ camel --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.508 s [INFO] Finished at: 2023-06-18T17:50:41+02:00 [INFO] ------------------------------------------------------------------------ {noformat} was (Author: hboutemy): executing the archetype generate followed by "mvn package" in the generated directory, I don't get any WARNING I'm completely surprised, but that's what I get > Remove warnings of undefined plugin versions > -------------------------------------------- > > Key: MNG-7808 > URL: https://issues.apache.org/jira/browse/MNG-7808 > Project: Maven > Issue Type: Improvement > Components: Core, Logging > Reporter: Benjamin Marwell > Priority: Major > > h2. Actual behaviour > Maven issues warnings about undefined plugin versions when not needed > h2. Expected behaviour > Maven should not issue warnings about undefined plugin versions early in a > project build. > > h2. Rationale > The release plugin will be modified to reject releases of projects which are > not defining all plugin versions: [MRELEASE-1130] Reject release of project > containing undefined plugin versions - ASF JIRA (apache.org) > > Once that is done, we can remove the warnings from core: > 1.) There should be as few as possible warnings OOTB on new maven projects > 2.) It is not really important for local builds to define plugin versions. -- This message was sent by Atlassian Jira (v8.20.10#820010)