thomasdaviddedalus opened a new issue, #263:
URL: https://github.com/apache/maven-archetype/issues/263
### Affected version
3.3.1
### Bug description
The current implement of the check that a module is of type pom fails if the
packaging tag is found on more than one places in the pom.
Consider a pom which uses as plugin which has a configuration which contains
a tag packaging.
Example:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<id>deploy-sbom</id>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<file>sbom-cyclonedx.json</file>
<repositoryId>${project.distributionManagement.repository.id}</repositoryId>
<url>${project.distributionManagement.repository.url}</url>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>json</packaging>
</configuration>
</execution>
</executions>
</plugin>
In this case, packaging is found twice and the build fails, triggered by the
test in PomUtils.java
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]