-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Affected version
4.0.0-rc-4
Bug description
Currently using:
Apache Maven 4.0.0-rc-4 (bed0f8174bf728978f86fac533aa38a9511f3872)
Maven home: /Users/khm/tools/apache-maven-4.0.0-rc-4
Java version: 24.0.1, vendor: Eclipse Adoptium, runtime: /Users/khm/.sdkman/candidates/java/24.0.1-tem
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "14.6.1", arch: "aarch64", family: "mac"
Using an example multi project setup (https://github.com/khmarbaise/maven400-rc4-bug-i)
Steps to reproduce:
mvn clean verify
mvn -pl shade verify
The result is getting a WARNING like this:
$> mvn -pl shade verify
[INFO]
[INFO] 1 problem was encountered while building the effective settings (use -e to see details)
[INFO]
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules
[INFO] Installing Central Publishing features
[INFO]
[INFO] --------------------------------------------< com.soebes.examples.j2ee:shade >--------------------------------------------
[INFO] Building shade 3.1.4-SNAPSHOT
[INFO] from shade/pom.xml
[INFO] ---------------------------------------------------------[ jar ]----------------------------------------------------------
[WARNING] File 'service-client/target/classes/com/soebes/examples/j2ee/sevice/api/Greeter.class' is more recent than the packaged artifact for 'service-client', please run a full `mvn package` build
[WARNING] File 'domain/target/classes/com/soebes/examples/j2ee/domain/Name.class' is more recent than the packaged artifact for 'domain', please run a full `mvn package` build
[INFO]
[INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ shade ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.RequireSameVersions passed
...
If I use a different sub project to build within the same setup I got the following:
$> mvn -pl assembly verify
[INFO]
[INFO] 1 problem was encountered while building the effective settings (use -e to see details)
[INFO]
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules
[INFO] Installing Central Publishing features
[INFO]
[INFO] ------------------------------------------< com.soebes.examples.j2ee:assembly >-------------------------------------------
[INFO] Building assembly 3.1.4-SNAPSHOT
[INFO] from assembly/pom.xml
[INFO] ---------------------------------------------------------[ pom ]----------------------------------------------------------
[WARNING] File 'webgui/target/classes/com/soebes/examples/j2ee/gui/web/GreeterServlet.class' is more recent than the packaged artifact for 'webgui', please run a full `mvn package` build
[WARNING] File 'service/target/classes/com/soebes/examples/j2ee/service/impl/SimpleGreeter.class' is more recent than the packaged artifact for 'service', please run a full `mvn package` build
[WARNING] File 'service-client/target/classes/com/soebes/examples/j2ee/sevice/api/Greeter.class' is more recent than the packaged artifact for 'service-client', please run a full `mvn package` build
[WARNING] File 'domain/target/classes/com/soebes/examples/j2ee/domain/Name.class' is more recent than the packaged artifact for 'domain', please run a full `mvn package` build
[INFO]
[INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ assembly ---
...
The WARNING's described before
haven't been produced by Maven 4.0.0-rc-3.
The debugging output looks like this:
[DEBUG] Using thread pool with 5 threads to resolve descriptors.
[DEBUG] Collector skip mode enabled
[DEBUG] Reading file model from com.soebes.examples.j2ee:shade:3.1.4-SNAPSHOT
[DEBUG] Reading file model from com.soebes.examples.j2ee:app:3.1.4-SNAPSHOT
[DEBUG] Reading file model from com.soebes.examples.j2ee:jee-parent:3.1.4-SNAPSHOT
[WARNING] File 'service/target/classes/com/soebes/examples/j2ee/service/impl/SimpleGreeter.class' is more recent than the packaged artifact for 'service', please run a full `mvn package` build
[WARNING] File 'webgui/target/classes/com/soebes/examples/j2ee/gui/web/GreeterServlet.class' is more recent than the packaged artifact for 'webgui', please run a full `mvn package` build
[DEBUG] Reading file model from com.soebes.examples.j2ee:service:3.1.4-SNAPSHOT
[DEBUG] Reading file model from com.soebes.examples.j2ee:webgui:3.1.4-SNAPSHOT
[DEBUG] Reading file model from org.apache.logging.log4j:log4j-api:2.20.0
[WARNING] File 'service-client/target/classes/com/soebes/examples/j2ee/sevice/api/Greeter.class' is more recent than the packaged artifact for 'service-client', please run a full `mvn package` build
[DEBUG] Reading file model from com.soebes.examples.j2ee:service-client:3.1.4-SNAPSHOT
[DEBUG] Reading file model from org.apache.logging.log4j:log4j:2.20.0
[WARNING] File 'domain/target/classes/com/soebes/examples/j2ee/domain/Name.class' is more recent than the packaged artifact for 'domain', please run a full `mvn package` build
[DEBUG] Reading file model from com.soebes.examples.j2ee:domain:3.1.4-SNAPSHOT
[DEBUG] Reading file model from org.apache.logging:logging-parent:7
[DEBUG] Reading file model from org.apache.logging.log4j:log4j-bom:2.20.0
[DEBUG] Reading file model from org.codehaus.groovy:groovy-bom:3.0.14
[DEBUG] Reading file model from com.fasterxml.jackson:jackson-bom:2.14.1
[DEBUG] Merging repositories from [inherited]:jackson-bom:pom:2.14.1
nexus (http://localhost:8081/repository/maven-public/, default, releases+snapshots)
[DEBUG] Reading file model from com.fasterxml.jackson:jackson-parent:2.14
[DEBUG] Reading file model from com.fasterxml:oss-parent:48
[DEBUG] Reading file model from jakarta.platform:jakarta.jakartaee-bom:9.0.0
[DEBUG] Reading file model from jakarta.platform:jakartaee-api-parent:9.0.0
[DEBUG] Reading file model from org.eclipse.ee4j:project:1.0.6
[DEBUG] Reading file model from org.eclipse.jetty:jetty-bom:9.4.50.v20221201
[DEBUG] Reading file model from org.junit:junit-bom:5.9.1
[DEBUG] Reading file model from io.fabric8:kubernetes-client-bom:5.12.2
[DEBUG] Reading file model from io.netty:netty-bom:4.1.86.Final
[DEBUG] Reading file model from org.springframework:spring-framework-bom:5.3.24
Activity
Fix ReactorReader incorrect warnings and logic (fixes apache#2497, ap…
Fix ReactorReader incorrect warnings and logic (fixes apache#2497, ap…
Fix ReactorReader incorrect warnings and logic (fixes apache#2497, ap…
Fix ReactorReader incorrect warnings and logic (fixes #2497, #2498) (#…