You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Raphael Ackermann <ra...@gmail.com> on 2010/04/16 10:58:15 UTC

having release plugin dependency makes install cp file.jar -- >file.war for project with war packaging

In a project with war packaging when I add a dependency to the release plugin

<plugin>
	<artifactId>maven-release-plugin</artifactId>
		<configuration>
			<preparationGoals>clean install</preparationGoals>
		</configuration>
</plugin>


I get the following output:

INFO] --- maven-install-plugin:2.3:install (default-install) @ webapp-os ---
INFO] Installing C:\project\target\webapp-os-4.4.2.jar to
C:\devel\maven\repository\<groupid>....\webapp-os\4.4.2\webapp-os-4.4.2.war

  ^
                                               ^

removing the dependency to the release plugin I get the correct behaviour

[INFO] --- maven-install-plugin:2.3:install (default-install) @ webapp-os ---
[INFO] Installing C:\project\webapp-os\target\webapp-os-4.4.2.war to
C:\devel\maven\repository\<groupid>....\webapp-os\4.4.2\webapp-os-4.4.2.war


this is the same running maven 2.2.1 or 3.0-alpha-7

Why would the install plugin ever copy a jar file to a war file?

and why can the dependency to the release plugin mess up running mvn
clean install?

what puzzles me even more is that when looking at the effective pom
the project I was running mvn clean install on already inherits the
same dependency to the release plugin from its parent.

Raphael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org