You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Václav Haisman (Jira)" <ji...@apache.org> on 2022/07/13 18:50:00 UTC
[jira] [Comment Edited] (MINSTALL-160) generatePom=true with 3.0.0-M1 does not generate minimal POM but copies existing one
[ https://issues.apache.org/jira/browse/MINSTALL-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16975663#comment-16975663 ]
Václav Haisman edited comment on MINSTALL-160 at 7/13/22 6:49 PM:
------------------------------------------------------------------
I think it is the changes by Guillaume Boué in revision [e6712f449b01d2ee979297853bb3ae7c0e3b08a9|https://github.com/apache/maven-install-plugin/commit/e6712f449b01d2ee979297853bb3ae7c0e3b08a9] ("MINSTALL-110 install-file should also install bundled pom.xml from artifact.") that broke it.
was (Author: wilx):
I think it is the changes by Guillaume Boué in revision e6712f449b01d2ee979297853bb3ae7c0e3b08a9 ("MINSTALL-110 install-file should also install bundled pom.xml from artifact.") that broke it.
> generatePom=true with 3.0.0-M1 does not generate minimal POM but copies existing one
> ------------------------------------------------------------------------------------
>
> Key: MINSTALL-160
> URL: https://issues.apache.org/jira/browse/MINSTALL-160
> Project: Maven Install Plugin
> Issue Type: Bug
> Components: install:install-file
> Affects Versions: 3.0.0-M1
> Reporter: Václav Haisman
> Priority: Major
>
> I am using install:install-file with generatePom=true to install JAR with minimal POM file. This has stopped working with 3.0.0-M1. With 3.0.0-M1, it copeis existing project pom.xml instead of generating a minimal one.
>
> This is easily reproducible with minimal project:
> {code:java}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>maven.install.plugin.issue</groupId>
> <artifactId>maven.install.plugin.issue</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>jar</packaging>
> <name>maven.install.plugin.issue</name>
> <properties>
> <maven.compiler.source>1.6</maven.compiler.source>
> <maven.compiler.target>1.6</maven.compiler.target>
> </properties>
> <build>
> <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
> <plugins>
> <plugin>
> <artifactId>maven-install-plugin</artifactId>
> <!-- 2.5.2 does generate POM correctly. But 3.0.0-M1 does not. -->
> <version>3.0.0-M1</version>
> <!-- version>2.5.2</version -->
> </plugin>
> </plugins>
> </pluginManagement>
> <plugins>
> <plugin>
> <artifactId>maven-install-plugin</artifactId>
> <executions>
> <execution>
> <id>default-install</id>
> <phase>none</phase>
> <goals><goal>install</goal></goals>
> </execution>
> <execution>
> <id>custom-install</id>
> <phase>install</phase>
> <goals>
> <goal>install-file</goal>
> </goals>
> <configuration>
> <file>${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}</file>
> <generatePom>true</generatePom>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> </project>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)