You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by gc134728 <gc...@scarlet.be> on 2007/05/14 16:06:06 UTC
maven-install-plugin => Cannot override read-only parameter
Dear maven-users,
I have a problem and have absolutely no idea why this occurs. I added a
configuration of the maven-install-plugin to my pom.xml.
When i add this configuration i get the error :
Error configuring: org.apache.maven.plugins:maven-install-plugin. Reason:
ERROR: Cannot override read-only parameter: packaging in goal: install:install
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.2-SNAPSHOT</version>
<executions>
<!-- Installs main artifact => Comm -->
<execution>
<id>deploy comm</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
<configuration>
<file>${orbis.path}/ROOT/generated/comm.jar</file>
<artifactId>comm</artifactId>
<groupId>${orbis.application.groupid}</groupId>
<version>${orbis.application.version}</version>
<generatePom>true</generatePom>
<packaging>jar</packaging>
</configuration>
</plugin>
When I place the configuration between the execution configuration i get this
error :
Missing group, artifact, version, or packaging information
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.2-SNAPSHOT</version>
<executions>
<!-- Installs main artifact => Comm -->
<execution>
<id>deploy comm</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${orbis.path}/ROOT/generated/comm.jar</file>
<artifactId>comm</artifactId>
<groupId>${orbis.application.groupid}</groupId>
<version>${orbis.application.version}</version>
<generatePom>true</generatePom>
<packaging>jar</packaging>
</configuration>
</execution>
</executions>
<configuration>
</configuration>
</plugin>
2 bugs posted in Jira refer to this same error but according to the status It
should be fixed. I tried the 2.1 release, the 2.2-snapshot and even the
latest from the repository but no luck. Anyone know what causes this? I
looked through the source but that seems OK.
http://jira.codehaus.org/browse/MINSTALL-14
http://jira.codehaus.org/browse/MINSTALL-12
Thx,
Yves Van Steen
Java Developer
---
Scarlet ADSL20, 20 Mbits down, 1 Mbits up, 60 GB volume, http://www.scarlet.be/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org