« Return to Thread: ERROR: Cannot override read-only parameter: packaging in goal: install:install

ERROR: Cannot override read-only parameter: packaging in goal: install:install

by hhuynh :: Rate this Message:

Reply to Author | View in Thread

Hi all,

I've configured install plugin to install additional file (created by the assembly plugin from the same project). Settings is as below. However, the very last step of installing the main artifact, I got this error

ERROR: Cannot override read-only parameter: packaging in goal: install:install

Any idea why and how to work around it?

Thanks,

Hung-


      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-install-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <file>target/${standalone-jar-name}.jar</file>
          <packaging>jar</packaging>
          <groupId>org.terracotta.hibernate-cache</groupId>
          <artifactId>${standalone-jar-name}</artifactId>
          <version>${project.version}</version>
        </configuration>
        <executions>
          <execution>
            <id>install-standalone</id>
            <phase>install</phase>
            <goals>
              <goal>install-file</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

 « Return to Thread: ERROR: Cannot override read-only parameter: packaging in goal: install:install