Deploy fails when there is no primary artifact ----------------------------------------------
Key: MDEPLOY-79 URL: http://jira.codehaus.org/browse/MDEPLOY-79 Project: Maven 2.x Deploy Plugin Issue Type: Bug Affects Versions: 2.3 Reporter: Wendy Smoak If the jar or war plugin has been configured to append a classifier, then "mvn deploy" fails with: [INFO] [deploy:deploy] altDeploymentRepository = null [INFO] Retrieving previous build number from repo [INFO] repository metadata for: 'snapshot com.example:jar-with-classifier:1.0-SNAPSHOT' could not be found on repository: repo, so will be created [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: /private/tmp/jar-with-classifier/target/classes (No such file or directory) In contrast, the install plugin works fine: [INFO] [install:install] [INFO] No primary artifact to install, installing attached artifacts instead. [INFO] Installing /private/tmp/jar-with-classifier/target/jar-with-classifier-1.0-SNAPSHOT-SDK.jar to /Users/wsmoak/.m2/repository/com/example/jar-with-classifier/1.0-SNAPSHOT/jar-with-classifier-1.0-SNAPSHOT-SDK.jar -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira