You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Hohl, Gerrit" <g....@aurenz.de> on 2016/11/07 12:19:52 UTC
maven-install-plugin: for goal install-file is ignored
Hello everyone, :-)
me again. A moment ago I came across the following behaviour of the
maven-install-plugin (v2.5.2):
If I define the following:
<executions>
<execution>
<id>default-install</id>
<phase>install</phase>
<goals>
<goals>install</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
the default jar and pom files of that Maven build are not installed.
But if I defined an extra artifact and want to skip it (like this):
<executions>
<execution>
<id>install-something</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<generatePom>false</generatePom>
<file>${path-of-extra-jar-file}</file>
<skip>true</skip>
</configuration>
</execution>
</executions>
the installation of that artifact is performed. Somehow I don't get it.
Why can I skip the installation in that first case, but not in that
second case?
Regards,
Gerrit
Re: maven-install-plugin: for goal install-file is ignored
Posted by Roland Laun <rl...@outlook.com>.
Hello Gerrit,
the 'install-file' Mojo does not support the skip parameter, only 'install' does.
What is your goal? Replacing the primary JAR artifact?
Best regards,
Roland
________________________________
From: Hohl, Gerrit <g....@aurenz.de>
Sent: Monday, November 7, 2016 12:19 PM
To: users@maven.apache.org
Subject: maven-install-plugin: <skip> for goal install-file is ignored
Hello everyone, :-)
me again. A moment ago I came across the following behaviour of the
maven-install-plugin (v2.5.2):
If I define the following:
<executions>
<execution>
<id>default-install</id>
<phase>install</phase>
<goals>
<goals>install</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
the default jar and pom files of that Maven build are not installed.
But if I defined an extra artifact and want to skip it (like this):
<executions>
<execution>
<id>install-something</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<generatePom>false</generatePom>
<file>${path-of-extra-jar-file}</file>
<skip>true</skip>
</configuration>
</execution>
</executions>
the installation of that artifact is performed. Somehow I don't get it.
Why can I skip the installation in that first case, but not in that
second case?
Regards,
Gerrit