[java-sig-commits] [Bug 1012913] New: maven-jar-plugin: replaces project artifact if no classifier is specified
bugzilla at redhat.com
bugzilla at redhat.com
Fri Sep 27 11:21:24 UTC 2013
https://bugzilla.redhat.com/show_bug.cgi?id=1012913
Bug ID: 1012913
Summary: maven-jar-plugin: replaces project artifact if no
classifier is specified
Product: Fedora
Version: rawhide
Component: maven-jar-plugin
Assignee: msrb at redhat.com
Reporter: mizdebsk at redhat.com
QA Contact: extras-qa at fedoraproject.org
CC: java-sig-commits at lists.fedoraproject.org,
mizdebsk at redhat.com, msrb at redhat.com,
rrati at redhat.com, sochotni at redhat.com,
tradej at redhat.com
+++ This bug was initially created as a clone of Bug #1012059 +++
Maven JAR Plugin replaces project classifier with JAR file it produces if the
JAR has no classifier specified.
Reproducer:
$ 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>war</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>jar</id>
<phase>package</phase>
<goals>
<goal>jar</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
Actual results:
1) JAR file is installed with "war" extension:
[INFO] Installing
/home/kojan/git/xmvn/rep/target/rhbz1012059-1.0.0-SNAPSHOT.jar to
/home/kojan/.m2/repository/org/fedoraproject/xmvn/it/rhbz1012059/1.0.0-SNAPSHOT/rhbz1012059-1.0.0-SNAPSHOT.war
2) WAR file is not installed at all
Expected results:
Both JAR and WAR files are installed with correct extensions
--
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=2Zg0Pm9NmL&a=cc_unsubscribe
More information about the java-sig-commits
mailing list