One "easy" method is to simply make a pom, specify your artifact as a
dependency, and run "mvn dependency:go-offline".

IIRC, someone wrote a little shell script to create a pom.xml and then
run go-offline against it, then delete it for this exact purpose and
sent it to the list, but I don't remember details so it will be hard
to find and easier to just re-write if you want that functionality. If
you do this, please contribute it back via the Wiki. ;-)

Wayne

On 2/13/08, kroe <[EMAIL PROTECTED]> wrote:
>
> MNG-2261 is making creating projects using an archetype difficult.  I have
> an
> archetype I created.  I want the archetype:create command to download my
> archetype from an internal repository.  The internal repository is specified
> in my settings.xml file.
>
> Due to MNG-2261, the settings.xml repositories are not respected unless
> there is a pom in the current directory.
>
> Is there a maven plug-in that will let me download my artifact from an
> internal repository and install it to the local repository manually?  If I
> can find a way to do this then archetype:create will find the artifact it
> needs locally and it won't matter that I can't go out to a remote
> repository.
>
> If there is not a way to do this does anyone have a compiled jar with the
> MNG-2261 patch applied they could post somewhere?
>
> Thanks,
> -Ken
> --
> View this message in context:
> http://www.nabble.com/Working-around-MNG-2261-%28How-can-I-manually-download-and-install-artifact%29-tp15459817s177p15459817.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to