because there can only be one main artifact so it gets replaced but you add to the collection of secondary artifacts... perhaps if core implemented a set rather than a list and the set entries were equals based on classifier and type
On 6 April 2011 19:01, Anders Hammar <and...@hammar.net> wrote: > Hmm, wouldn't this be a bug then in either maven core or the sources plugin? > I'm quite sure executing "mvn install deploy" would work for a multi-module > build without sources attached. The main artifact wouldn't be uploaded > twice. (Haven't verified though.) > > Possibly Maven 3.0.x doesn't have this problem (if it's a core thing)? > > /Anders > > On Wed, Apr 6, 2011 at 19:45, Stephen Connolly < > stephen.alan.conno...@gmail.com> wrote: > >> the sources get attached to the reactor twice >> >> - Stephen >> >> --- >> Sent from my Android phone, so random spelling mistakes, random nonsense >> words and other nonsense are a direct result of using swype to type on the >> screen >> On 6 Apr 2011 15:45, "Novak Dalibor" <dalibo...@gmail.com> wrote: >> > Hi Stephen, >> > >> > I see that implies that install step doesn't need to be called explicitly >> > and this will solve my problem. Hooray!! Thanks, I missed that "detail". >> > >> > It is still strange how deploy plugin tries to upload sources twice in >> > scenario where install phase is requested. Should this be accepted as >> > normal? >> > >> > Thanks again and regards, >> > Dalibor >> > >> > On Wed, Apr 6, 2011 at 2:58 PM, Stephen Connolly < >> > stephen.alan.conno...@gmail.com> wrote: >> > >> >> mvn clean install deploy >> >> >> >> means the following >> >> >> >> Mr Maven, >> >> please look up the clean phase in the standard lifecycles and >> >> execute all phases in the lifecycle it belongs to up to and including >> >> the clean phase >> >> then >> >> please look up the install phase in the standard lifecycles and >> >> execute all phases in the lifecycle it belongs to up to and including >> >> the install phase >> >> finally >> >> please look up the deploy phase in the standard lifecycles and >> >> execute all phases in the lifecycle it belongs to up to and including >> >> the deploy phase >> >> >> >> you will notice that install and deploy are in the same lifecycle with >> >> deploy being just after install >> >> >> >> On 6 April 2011 14:33, Novak Dalibor <dalibo...@gmail.com> wrote: >> >> > Hello, >> >> > >> >> > I am experiencing a problem since I have my project configured to use >> >> > maven-source-plugin. When I try to execute a "mvn clean install >> deploy" >> >> > command the deploy plugin tries to uploadsources jar to repository >> twice. >> >> > Since this is a nexus release repository it doesn't allow redeployment >> >> and I >> >> > get an HTTP 400 error. (see logs below) >> >> > >> >> > However when I run "mvn clean deploy" (without install) all works fine >> >> and >> >> > sources jar is uploaded only once. Does anyone have any hints why I am >> >> > experiencing this behaviour? >> >> > >> >> > I am running maven 2.2.1. >> >> > >> >> > Thanks, >> >> > Dalibor >> >> > >> >> > >> >> > >> >> > [INFO] [deploy:deploy {execution: default-deploy}] >> >> > Uploading: >> >> > >> >> >> >> http://repository/content/repositories/thirdparty/com/mycompany/project/project-common/0.1.1/project-common-0.1.1.jar >> >> > 51K uploaded (project-common-0.1.1.jar) >> >> > [INFO] Retrieving previous metadata from mycompany-thirdparty >> >> > [INFO] Uploading repository metadata for: 'artifact >> >> > com.mycompany.project:project-common' >> >> > [INFO] Uploading project information for project-common 0.1.1 >> >> > Uploading: >> >> > >> >> >> >> http://repository/content/repositories/thirdparty/com/mycompany/project/project-common/0.1.1/project-common-0.1.1-sources.jar >> >> > 39K uploaded (project-common-0.1.1-sources.jar) >> >> > Uploading: >> >> > >> >> >> >> http://repository/content/repositories/thirdparty/com/mycompany/project/project-common/0.1.1/project-common-0.1.1-sources.jar >> >> > [INFO] >> >> > >> ------------------------------------------------------------------------ >> >> > [ERROR] BUILD ERROR >> >> > [INFO] >> >> > >> ------------------------------------------------------------------------ >> >> > [INFO] Error deploying artifact: Failed to transfer file: >> >> > >> >> >> >> http://repository/content/repositories/thirdparty/com/mycompany/project/project-common/0.1.1/project-common-0.1.1-sources.jar >> >> . >> >> > Return code is: 400 >> >> > >> >> > [INFO] >> >> > >> ------------------------------------------------------------------------ >> >> > [INFO] For more information, run Maven with the -e switch >> >> > >> >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org