Tip: specify the <type> when referring to your artifact as a dependency in future and always when using the attach-artifact plugin as the default for the file type is 'jar'. If you are attaching a war, specify <type>war</type>.
Personally, I would have implemented a multi-module build with dependencies between them. Then for my war pom.xml, it would have pulled the dependencies down and packaged the war. On 14 September 2010 12:23, V, Akshatha <[email protected]> wrote: > Hi, > > You could have a look at this.. > > http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html > > Best regards, > Akshatha > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Anders Hammar > Sent: Tuesday, September 14, 2010 2:16 PM > To: Maven Users List > Subject: Re: add dynamically artifact into nexus > > mvn deploy? > > /Anders > > On Tue, Sep 14, 2010 at 10:27, DONIAT, Christophe < > [email protected]> wrote: > > > Hello, > > > > I have a multi-project with several produced jars in sequence. Then, I > > package all in the same war. > > > > But, for example I build the first jar named A, then I build a second > one, > > named B, which holds a dependency with the first one A, and so forth. > > > > I'd like to be able to add dynamically A into Nexus repo of my project. > > > > I thought to do that with 'dependency' Maven plugin. I did find any 'put' > > goal to do that. > > > > Anyone experiment this before? > > > > Regards, > > > > Christophe Doniat > > > > > > > > > > > > > > This message contains information that may be privileged or confidential > > and is the property of the Capgemini Group. It is > > intended only for the person to whom it is addressed. If you are not the > > intended recipient, you are not authorized to > > read, print, retain, copy, disseminate, distribute, or use this message > or > > any part thereof. If you receive this message > > in error, please notify the sender immediately and delete all copies of > > this message. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
