[ 
https://issues.apache.org/jira/browse/MDEPLOY-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965703#comment-17965703
 ] 

Olivier Lamy commented on MDEPLOY-79:
-------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-deploy-plugin#208|https://github.com/apache/maven-deploy-plugin/issues/208].
 

> Deploy fails when there is no primary artifact
> ----------------------------------------------
>
>                 Key: MDEPLOY-79
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-79
>             Project: Maven Deploy Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Wendy Smoak
>            Priority: Major
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to