[java-sig-commits] [Bug 1012913] maven-jar-plugin: replaces project artifact if no classifier is specified
bugzilla at redhat.com
bugzilla at redhat.com
Mon Sep 30 06:02:20 UTC 2013
https://bugzilla.redhat.com/show_bug.cgi?id=1012913
Michal Srb <msrb at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CLOSED
Resolution|--- |NOTABUG
Last Closed| |2013-09-30 02:02:20
--- Comment #2 from Michal Srb <msrb at redhat.com> ---
I did some more testing and I noticed this:
$ cat <<EOF >pom.xml
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.fedoraproject.xmvn.it</groupId>
<artifactId>rhbz1012059</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<executions>
<execution>
<id>war</id>
<phase>package</phase>
<goals>
<goal>war</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
EOF
$ mkdir -p src/main/webapp/WEB-INF
$ touch src/main/webapp/WEB-INF/web.xml
$ mvn clean install
Result:
[INFO] Installing /tmp/jar-plugin/target/rhbz1012059-1.0.0-SNAPSHOT.war to
/home/msrb/.m2/repository/org/fedoraproject/xmvn/it/rhbz1012059/1.0.0-SNAPSHOT/rhbz1012059-1.0.0-SNAPSHOT.jar
So maven-war-plugin behaves the same. This makes me believe that this is
expected behavior for plugins commonly used during package phase. Note you can
change project's configuration to get desired result. From my POV it's not a
bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=lDES9dF3RT&a=cc_unsubscribe
More information about the java-sig-commits
mailing list