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

Robert Scholte commented on MDEPLOY-197:
----------------------------------------

An attached file should always be a classified file. If a developer chooses to 
upload the same file multiple times, e.g. once as the (default) main artifact 
and once as a classified artifact, that's all up to him. Only if files are 
uploaded multiple times to the same URL, there's an issue. Otherwise I consider 
it as some kind of bad configuration of the pom.xml. 
Before I'm going to close this issue, do you have more details when this is 
happening and why you think that it is wrong?

> deploy:deploy-file in some cases upload a file twice
> ----------------------------------------------------
>
>                 Key: MDEPLOY-197
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-197
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>          Components: deploy:deploy-file
>    Affects Versions: 2.8.2
>            Reporter: Jeffrey Dang
>            Priority: Trivial
>              Labels: easyfix
>         Attachments: added_file_check.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> In org/apache/maven/plugin/deploy/DeployFileMojo.java,
> When executing, deploy will be called on the file specified by deploy-file 
> goal.
> Afterward, deploy will be called on project.getAttachedArtifacts().
> The specified deploy file can be included in the attached artifacts.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to