[ https://issues.apache.org/jira/browse/MINSTALL-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965886#comment-17965886 ]
Olivier Lamy commented on MINSTALL-76: -------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-install-plugin#198|https://github.com/apache/maven-install-plugin/issues/198]. > Maven-Install-Plugin installs an attached artifact twice if no primary > artifact exists > -------------------------------------------------------------------------------------- > > Key: MINSTALL-76 > URL: https://issues.apache.org/jira/browse/MINSTALL-76 > Project: Maven Install Plugin (Moved to GitHub Issues) > Issue Type: Bug > Components: install:install > Affects Versions: 2.2, 2.3 > Reporter: David Williams > Assignee: Benjamin Bentmann > Priority: Major > > I've noticed that both the maven install plugin and maven deploy plugin > installs/deploys the attached artifacts twice if the primary artifact does > not exist. > {noformat} > [DEBUG] Configuring mojo > 'org.apache.maven.plugins:maven-install-plugin:2.3:install' --> > [DEBUG] (f) artifact = > com.mycompany.banking.project:Process:jar:2.4-SNAPSHOT > [DEBUG] (f) attachedArtifacts = > [com.mycompany.banking.project:Process:jar:xpdl:2.4-SNAPSHOT, > com.mycompany.banking.project:Process:jar:xpdl:2.4-SNAPSHOT] > [DEBUG] (f) createChecksum = false > [DEBUG] (f) localRepository = Repository[local|file://C:\Documents and > Settings\John.Doe\.m2\repository] > [DEBUG] (f) packaging = jar > [DEBUG] (f) pomFile = C:\Workspaces\project\Process\pom.xml > [DEBUG] (f) updateReleaseInfo = false > [DEBUG] -- end configuration -- > [INFO] [install:install {execution: default-install}] > [INFO] No primary artifact to install, installing attached artifacts instead. > [INFO] Installing C:\Workspaces\project\Process\pom.xml to C:\Documents and > Settings\John.Doe\.m2\repository\com\mycompany\banking\project\Process\2.4-SNAPSHOT\Process-2.4-SNAPSHOT.pom > [INFO] Installing > C:\Workspaces\project\Process\target\Process-2.4-SNAPSHOT-xpdl.jar to > C:\Documents and > Settings\John.Doe\.m2\repository\com\sungard\banking\project\Process\2.4-SNAPSHOT\Process-2.4-SNAPSHOT-xpdl.jar > [INFO] Installing > C:\Workspaces\project\Process\target\Process-2.4-SNAPSHOT-xpdl.jar to > C:\Documents and > Settings\John.Doe\.m2\repository\com\sungard\banking\project\Process\2.4-SNAPSHOT\Process-2.4-SNAPSHOT-xpdl.jar > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)