You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/04/02 08:51:56 UTC

[I] [MINSTALL-160] generatePom=true with 3.0.0-M1 does not generate minimal POM but copies existing one [maven-install-plugin]

jira-importer opened a new issue, #326:
URL: https://github.com/apache/maven-install-plugin/issues/326

   **[Václav Haisman](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=wilx)** opened **[MINSTALL-160](https://issues.apache.org/jira/browse/MINSTALL-160?redirect=false)** and commented
   
   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:
   
   ```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>
   
   ```
   
   
   
   ---
   
   **Affects:** 3.0.0-M1, 3.0.0
   
   **Issue Links:**
   - [MINSTALL-110](https://issues.apache.org/jira/browse/MINSTALL-110) install-file should also install bundled pom.xml from artifact.
    (_**"Blocked"**_)
   
   **Remote Links:**
   - [GitHub Pull Request #36
   ](https://github.com/apache/maven-install-plugin/pull/36)
   
   1 votes, 4 watchers
   


-- 
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] [MINSTALL-160] generatePom=true with 3.0.0-M1 does not generate minimal POM but copies existing one [maven-install-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #326:
URL: https://github.com/apache/maven-install-plugin/issues/326#issuecomment-2771868748

   **[Václav Haisman](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=wilx)** commented
   
   The issue still persists. Tested with plugin at revision 4dbab72195c13cc63d20bbceaadb3d86d5c55b14.
   


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


Re: [I] [MINSTALL-160] generatePom=true with 3.0.0-M1 does not generate minimal POM but copies existing one [maven-install-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #326:
URL: https://github.com/apache/maven-install-plugin/issues/326#issuecomment-2771868742

   **[Tamas Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas)** commented
   
   Plugin has been modified, can you reproduce this with master?
   


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


Re: [I] [MINSTALL-160] generatePom=true with 3.0.0-M1 does not generate minimal POM but copies existing one [maven-install-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #326:
URL: https://github.com/apache/maven-install-plugin/issues/326#issuecomment-2771868754

   **[Tamas Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas)** commented
   
   Please test https://github.com/apache/maven-install-plugin/pull/36
   


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


Re: [I] [MINSTALL-160] generatePom=true with 3.0.0-M1 does not generate minimal POM but copies existing one [maven-install-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #326:
URL: https://github.com/apache/maven-install-plugin/issues/326#issuecomment-2771868733

   **[Václav Haisman](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=wilx)** commented
   
   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.
   


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


Re: [I] [MINSTALL-160] generatePom=true with 3.0.0-M1 does not generate minimal POM but copies existing one [maven-install-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #326:
URL: https://github.com/apache/maven-install-plugin/issues/326#issuecomment-2771868761

   **[Václav Haisman](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=wilx)** commented
   
   Works for me.  !https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png|width=20,height=20!
   


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