That'll work, but with the added complexity of a hack like is less than
appealing.  It would not take much more effort to write a script or some
java code to create template projects without the archetype plugin.  

Anyone willing to apply the patch and post a jar with the patch applied?

Thanks,
-Ken


Wayne Fay wrote:
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Working-around-MNG-2261-%28How-can-I-manually-download-and-install-artifact%29-tp15459817s177p15470784.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]

Reply via email to