maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S L (JIRA)" <>
Subject [jira] [Commented] (MDEPLOY-198) deploy:deploy in some cases upload a file twice
Date Sat, 04 Jul 2015 18:17:04 GMT


S L commented on MDEPLOY-198:

Hi [~rfscholte],
thanks for the input. I'm completely aware that the default phase of the java-doc and sources
is in package and I could fix the issue by setting the phase to any phase that will be executed
The case I would like to create is kind of: 
I as a pom-creator should be allowed to set the execution of my plugin's to whatsoever phase
(in this case deploy).
I reguallary use install and don't want to waste time of the generation of javadoc's and sources.
That's one of my main reason's why it's in deploy (I only want the javadoc+sources when I
deploy my artifacts). However due to the fact that I have no control that the default-deploy
seems to be executed as the first plugin in the deploy-phase I need to add the additional
A valid workaround would also involve to set the execution of the default-deploy to the end
of the deploy-phase. However, I think that's not possible due to the fact that maven executes
the plugins how they are arranged in the pom.

PS: I also played arround with deployAtEnd, but then the deploy will be skipped.

> deploy:deploy in some cases upload a file twice
> -----------------------------------------------
>                 Key: MDEPLOY-198
>                 URL:
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>          Components: deploy:deploy
>    Affects Versions: 2.8.2
>            Reporter: S L
>            Priority: Minor
>         Attachments:
> This is a similar issue to MDEPLOY-197 and if you feel that is this is the same problem
feel free to close it as duplicate.
> However, in some cases when using the maven-deploy-plugin the artificat will be uploaded
twice. Example will be attached.
> In my example I craft sources & javadoc in the deploy-phase and have an additional
maven-deploy-plugin-definition which also be be executed in deploy. However the default-deploy
will upload the final artifact as well as my custom tailored maven-deploy-plugin-definition
and therefore the artifcat will be uploaded twice.
> In the zip there is also the build log where I replaced all sensitive information.

This message was sent by Atlassian JIRA

View raw message