[ https://issues.apache.org/jira/browse/MNG-7920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17787491#comment-17787491 ]
Zhongming Hua commented on MNG-7920: ------------------------------------ Thank you for testing and replying to my PR. I have some questions about two issues you mentioned: # I found that neither the *pom* nor the *bom* would automatically parse and include the version. # At present, the pom will contain all bom's resolved which are from the module parent. But we expect that the bom does not contain all bom's resolved which are from the module parent, right? [~khmarbaise] > Usage of packaging BOM fails in maven-install-plugin > ---------------------------------------------------- > > Key: MNG-7920 > URL: https://issues.apache.org/jira/browse/MNG-7920 > Project: Maven > Issue Type: Bug > Components: Deployment > Affects Versions: 4.0.0-alpha-8 > Reporter: Karl Heinz Marbaise > Priority: Critical > Fix For: 4.0.0, 4.0.0-alpha-9 > > > Using to use the {{bom}} packaging in a module it will fail with: > {code} > [INFO] > -------------------------------------------------------------------------------------------------------------------------- > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-install-plugin:3.1.1:install (default-install) > on project bom: The packaging plugin for this project did not assign a main > file to the project but it has attachments. Change packaging to 'pom'. -> > [Help 1] > {code} > The bom module looks like this: > {code:xml} > <project > xmlns="http://maven.apache.org/POM/4.1.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.1.0 > http://maven.apache.org/maven-v4_1_0.xsd"> > <modelVersion>4.1.0</modelVersion> > <parent> > <groupId>....maven4</groupId> > <artifactId>bom-example</artifactId> > </parent> > <packaging>bom</packaging> > <artifactId>bom</artifactId> > <dependencyManagement> > <dependencies> > <dependency> > <groupId>...maven4</groupId> > <artifactId>mod-1</artifactId> > </dependency> > <dependency> > <groupId>....maven4</groupId> > <artifactId>mod-2</artifactId> > </dependency> > </dependencies> > </dependencyManagement> > </project> > {code} > I would assume that I need to upgrade the maven-install-plugin which is > capable of handling that...but I assumed that this conversion is done by core? -- This message was sent by Atlassian Jira (v8.20.10#820010)