[ https://jira.codehaus.org/browse/MINSTALL-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=333147#comment-333147 ]
Martin Todorov commented on MINSTALL-97: ---------------------------------------- Yeah, I know about classifiers. I was expecting the install plugin would pick it up though. I'm quite sure I've done this without classifiers in an older project which was using Maven 2.2.1. Anyway... I'll do it with a classifier then instead. Thanks! > Plugin installs wrong artifact > ------------------------------ > > Key: MINSTALL-97 > URL: https://jira.codehaus.org/browse/MINSTALL-97 > Project: Maven Install Plugin > Issue Type: Bug > Environment: Apache Maven 3.1.0 > (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-28 03:15:32+0100) > Maven home: /java/apache/maven-3.1.0 > Java version: 1.7.0_25, vendor: Oracle Corporation > Java home: /java/jdk1.7.0_25/jre > Default locale: en_US, platform encoding: ISO-8859-1 > OS name: "linux", version: "2.6.39.4", arch: "amd64", family: "unix" > Reporter: Martin Todorov > Assignee: Robert Scholte > > I have a project with packaging type "war". I have attached the "jar" plugin > to the package phase just so that it also creates a jar file (containing some > of the classes + resources). Both archives are produced properly. > Then i see: > {code} > [INFO] Installing > /java/opensource/carlspring/strongbox/strongbox-webapp/target/strongbox-webapp-1.0-SNAPSHOT.jar > to > /root/.m2/repository/org/carlspring/strongbox/strongbox-webapp/1.0-SNAPSHOT/strongbox-webapp-1.0-SNAPSHOT.war > {code} > This is my simplified pom.xml > {code} > <?xml version="1.0" encoding="UTF-8"?> > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <artifactId>strongbox-webapp</artifactId> > <version>1.0-SNAPSHOT</version> > <packaging>war</packaging> > <name>Strongbox: Webapp</name> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-source-plugin</artifactId> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <executions> > <execution> > <phase>package</phase> > <goals> > <goal>jar</goal> > </goals> > </execution> > </executions> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-install-plugin</artifactId> > <version>2.5</version> > </plugin> > </plugins> > </build> > </project> > {code} > This is installing the wrong artifact. I've tried it with 2.4 and 2.5. > Please advise! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira