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:46:09 UTC

[I] [MINSTALL-12] Parameters should not be read-only [maven-install-plugin]

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

   **[Patrick Lightbody](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=plightbo)** opened **[MINSTALL-12](https://issues.apache.org/jira/browse/MINSTALL-12?redirect=false)** and commented
   
   When running the following plugin (as a workaround due to a bug in maven):
   
       <plugin>
           <artifactId>maven-install-plugin</artifactId>
           <groupId>org.apache.maven.plugins</groupId>
           <executions>
               <execution>
                   <phase>validate</phase>
                   <configuration>
                       <file>${basedir}/repo/opensymphony/webwork/2.2.1-SNAPSHOT/webwork-2.2.1-SNAPSHOT.jar</file>
                       <groupId>opensymphony</groupId>
                       <artifactId>webwork</artifactId>
                       <version>2.2.1-SNAPSHOT</version>
                   </configuration>
                   <goals>
                       <goal>install-file</goal>
                   </goals>
               </execution>
           </executions>
       </plugin>
   
   I get this error:
   
   "Error configuration: org.apache.maven.plugins:maven-install-plugin. Reason: ERROR: Cannot override read-only parameter: artifactId in goal: install:install-file"
   
   Bret says:
   
   (16:49:33) brett: odd
   (16:49:55) brett: hrmph
   (16:50:12) brett: they are all read-only, so can only be set on the command line
   (16:50:15) brett: I don't know why that is
   (16:50:28) PSquad32: should i open a feature request?
   (16:50:44) brett: yes, please
   
   So I did. Done.
   
   
   ---
   
   **Affects:** 2.1
   
   **Attachments:**
   - [install.diff](https://issues.apache.org/jira/secure/attachment/12716624/install.diff) (_1.32 kB_)
   
   **Issue Links:**
   - [MINSTALL-14](https://issues.apache.org/jira/browse/MINSTALL-14) Unable to invoke install-file goal from inside a pom
    (_**"is duplicated by"**_)
   


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