[ https://issues.apache.org/jira/browse/MINSTALL-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965933#comment-17965933 ]
Olivier Lamy commented on MINSTALL-97: -------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-install-plugin#244|https://github.com/apache/maven-install-plugin/issues/244]. > Plugin installs wrong artifact > ------------------------------ > > Key: MINSTALL-97 > URL: https://issues.apache.org/jira/browse/MINSTALL-97 > Project: Maven Install Plugin (Moved to GitHub Issues) > 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 > Priority: Major > > 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 was sent by Atlassian Jira (v8.20.10#820010)