You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Consultant Leon (Jira)" <ji...@apache.org> on 2020/06/16 01:16:00 UTC

[jira] [Commented] (MDEPLOY-254) Maven Deploy Plugin deploy jar twice : Maven 3.3.3

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

Consultant Leon commented on MDEPLOY-254:
-----------------------------------------

I came to this page experiencing the same problem.

Shade plugin seems to generate sources jar with type jar and source plugin with type 'sources' if I understand the issue well enough from the research I've done.

I managed to disable the sources plugin in a subproject where issue occured (duplicate deploy attempt of the -sources jar making the release build fail where the develop build succeeded to deploy to snapshot repo...!).

It seems really strange that maven install/deploy cannot detect that exactly the same file is being deployed twice and silently filter for this!

(it might be good to raise a warning if the same project artifact/attachment is built more than once of course, but breaking only the release deploy seems very badly behaved and it takes hours of investigation and clever workarounds to then get your project released...)

> Maven Deploy Plugin deploy jar twice : Maven 3.3.3
> --------------------------------------------------
>
>                 Key: MDEPLOY-254
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-254
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>            Reporter: Akshay
>            Assignee: Karl Heinz Marbaise
>            Priority: Blocker
>             Fix For: waiting-for-feedback
>
>         Attachments: log1-mvn_clean_deploy_-Ptwice-source-jar-goal.txt, log2-mvn_clean_deploy_-Psource-and-shade-plugin.txt, sample-project.zip
>
>
> Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project ****** :
> Failed to retrieve remote metadata ******/maven-metadata.xml:
> Could not transfer metadata ****** from/to ****** 
> {color:#FF0000} Not authorized , ReasonPhrase:Unauthorized. {color}
>  
> Wanted to know if the fix is out in a later version of Maven?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)