You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "thomasdaviddedalus (via GitHub)" <gi...@apache.org> on 2025/04/16 07:37:52 UTC

[I] Unable to add module as it is not of packaging 'pom' [maven-archetype]

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: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Unable to add module as it is not of packaging 'pom' [maven-archetype]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski closed issue #263: Unable to add module as it is not of packaging 'pom'
URL: https://github.com/apache/maven-archetype/issues/263


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org