-
Notifications
You must be signed in to change notification settings - Fork 88
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
Flattened pom for core project invalid #164
Comments
@maybeec Thanks for the feedback and also the link to the flatten issue you found. |
However, if I read your report carefully I come to the impression that we are creating an entirely invalid POM here. That does not only mean that the local build of the batch module is somehow problematic but the entire "release" of that module is kind of invalid and if some other project would import that dependency it would also not work. |
Via OSSRH SNAPSHOT deployment we can at least verify our POMs of devon4j now: |
Can someone shed some light into this issue? |
Even the archetype POM from the first commit of This issue does not make any sense to me. I will have to close as invalid. |
Step 1:
Step 2:
Step 3:
Step 4:
|
The problem should automatically occur if "embedded" profile is enabled, which is enabled by default: https://github.com/devonfw/devon4j/blob/master/templates/server/src/main/resources/archetype-resources/core/pom.xml#L233 Anyhow, the issue possibly also is caused by a slightly different setup in my project as I added the test resources to the batch run as well to not have redundant test properties etc to be configured: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin> to core and include <dependency>
<groupId>${project.groupId}</groupId>
<artifactId>?-core</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency> to batch pom.xml. At least, this is the change we did. |
Expected behavior
As an architect, I want package all modules of my software so that I can individually build and test each of the maven modules separately.
Actual behavior
Having the core maven module deployed, a dependent software module build like the batch module states, that the deployed pom.xml of the core module is not valid as of dependency version not set for
Steps to reproduce (bug) / Use Case of feature request (enhancement)
Related/Dependent Issues
mojohaus/flatten-maven-plugin#70
The text was updated successfully, but these errors were encountered: