jira-importer commented on issue #142:
URL: 
https://github.com/apache/maven-install-plugin/issues/142#issuecomment-2771839923

   **[Dan 
Tran](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dantran)** 
commented
   
   I have a use case that need to have overridable groupid and artifactid, etc
   
   I would like to use a pom file to deploy/install a bunch of thirdparty jars 
into my internal remote repo.  The pom execute install:install-file mutliple 
times.
   The advantage of the approach is it not OS dependent.
   
   The below pom throws this errror
   
   [INFO] Error configuring: org.apache.maven.plugins:maven-install-plugin. 
Reason:
   ERROR: Cannot override read-only parameter: artifactId in goal: 
install:install-file
   
   here is the pom
   
   \<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/maven-v4_0_0.xsd";>
   \<modelVersion>4.0.0\</modelVersion>
   \<groupId>net.java.jaxws.ri\</groupId>
   \<artifactId>jaxws-ri-deployer\</artifactId>
   \<version>1.0-SNAPSHOT\</version>
   
   \<packaging>pom\</packaging>
   
   \<name>jaxws-ri deployer\</name>
   
   \<build>
   
       <defaultGoal>package</defaultGoal>
       
       <plugins>
         <plugin>
           <artifactId>maven-install-plugin</artifactId>
           <configuration>
             <groupId>net.java.jaxws.ri</groupId>
             <version>${jaxws.ri.version}</version>
             <generatePom>true</generatePom>
             <packaging>jar</packaging>
           </configuration>
           <executions>
             <execution>
               <id>http.jar</id>
               <goals>
                 <goal>install-file</goal>
               </goals>
               <phase>package</phase>              
               <configuration>
                 <artifactId>http</artifactId>
                 <file>httpd.jar</file>
               </configuration>
             </execution>
             <execution>
               <id>resolver.jar</id>
               <goals>
                 <goal>install-file</goal>
               </goals>
               <phase>package</phase>              
               <configuration>
                 <artifactId>resolver</artifactId>
                 <file>resolver.jar</file>
               </configuration>
             </execution>
             .......
       
           </executions>
         </plugin>
       </plugins>
   
   \</build>
   \<properties>
   \<jaxws.ri.version>2.1-EA3\</jaxws.ri.version>
   \</properties>
   \</project>
   


-- 
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-unsubscr...@maven.apache.org

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

Reply via email to