[ 
https://issues.apache.org/jira/browse/MNG-7920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17787494#comment-17787494
 ] 

Karl Heinz Marbaise commented on MNG-7920:
------------------------------------------

[~crazyhzm] where have I wrote about parse and include the version? I have 
added the resulting pom file in my comment also you can use my repo as a test 
to reproduce it...... as you can see it's the original pom and not the 
interpolated and translated pom file... 

And to your second point. Yes I expect that only the information is part of it 
as I described in my "From my point of view the resulting {{pom.xml}} should 
look like this:" ... 

> 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)

Reply via email to