Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNG-8340] IT #400

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[MNG-8340] IT #400

wants to merge 2 commits into from

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Oct 29, 2024

Creates error message with beta-5 like:

[INFO] --- shade:3.5.0:shade (shade) @ child1 ---
[INFO] Including org.slf4j:slf4j-api:jar:2.0.16 in the shaded jar.
[INFO] Dependency-reduced POM written at: /home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/child1/target/dr-pom.xml
[WARNING] The top project (/home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/child1/target/dr-pom.xml) cannot be found in the reactor from root project (/home/cstamas/Worx/apache-maven/maven-integration-testing/pom.xml). Make sure the root directory is correct (a missing '.mvn' directory in the root project is the most common cause) and the project is correctly included in the reactor (missing activated profiles, command line options, etc.). For this build, the top project will be used as the root project.
[WARNING] The top project (/home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/pom.xml) cannot be found in the reactor from root project (/home/cstamas/Worx/apache-maven/maven-integration-testing/pom.xml). Make sure the root directory is correct (a missing '.mvn' directory in the root project is the most common cause) and the project is correctly included in the reactor (missing activated profiles, command line options, etc.). For this build, the top project will be used as the root project.
[WARNING] child1-1.0.0.jar, slf4j-api-2.0.16.jar define 1 overlapping resource:
[WARNING]   - META-INF/MANIFEST.MF
[WARNING] maven-shade-plugin has detected that some files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the file is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See https://maven.apache.org/plugins/maven-shade-plugin/
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/child1/target/child1-1.0.0.jar with /home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/child1/target/child1-1.0.0-shaded.jar
[INFO] Copying org.apache.maven.it.mng8340:child1:pom:1.0.0 to project local repository
[INFO] Copying org.apache.maven.it.mng8340:child1:jar:1.0.0 to project local repository
[WARNING] Failed to notify spy org.apache.maven.ReactorReader$ReactorReaderSpy: 1 problem was  for org.apache.maven.it.mng8340:child1:jar:1.0.0
    - [FATAL] 'parent.relativePath' points at '../../pom.xml' but no POM could be found, please verify your project structure @ line 3, column 3

Creates error message with beta-5 like:
```
[INFO] --- shade:3.5.0:shade (shade) @ child1 ---
[INFO] Including org.slf4j:slf4j-api:jar:2.0.16 in the shaded jar.
[INFO] Dependency-reduced POM written at: /home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/child1/target/dr-pom.xml
[WARNING] The top project (/home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/child1/target/dr-pom.xml) cannot be found in the reactor from root project (/home/cstamas/Worx/apache-maven/maven-integration-testing/pom.xml). Make sure the root directory is correct (a missing '.mvn' directory in the root project is the most common cause) and the project is correctly included in the reactor (missing activated profiles, command line options, etc.). For this build, the top project will be used as the root project.
[WARNING] The top project (/home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/pom.xml) cannot be found in the reactor from root project (/home/cstamas/Worx/apache-maven/maven-integration-testing/pom.xml). Make sure the root directory is correct (a missing '.mvn' directory in the root project is the most common cause) and the project is correctly included in the reactor (missing activated profiles, command line options, etc.). For this build, the top project will be used as the root project.
[WARNING] child1-1.0.0.jar, slf4j-api-2.0.16.jar define 1 overlapping resource:
[WARNING]   - META-INF/MANIFEST.MF
[WARNING] maven-shade-plugin has detected that some files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the file is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See https://maven.apache.org/plugins/maven-shade-plugin/
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/child1/target/child1-1.0.0.jar with /home/cstamas/Worx/apache-maven/maven-integration-testing/core-it-suite/target/test-classes/mng-8340/child1/target/child1-1.0.0-shaded.jar
[INFO] Copying org.apache.maven.it.mng8340:child1:pom:1.0.0 to project local repository
[INFO] Copying org.apache.maven.it.mng8340:child1:jar:1.0.0 to project local repository
[WARNING] Failed to notify spy org.apache.maven.ReactorReader$ReactorReaderSpy: 1 problem was  for org.apache.maven.it.mng8340:child1:jar:1.0.0
    - [FATAL] 'parent.relativePath' points at '../../pom.xml' but no POM could be found, please verify your project structure @ line 3, column 3
```
@cstamas
Copy link
Member Author

cstamas commented Oct 29, 2024

So IT "works" with beta-5, FATAL message is there, but NPE fails with apache/maven#1857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant