Re: [archetype plugin] Cannot use -DarchetypeRepository if you have mirrors in your settings.xml file

2009-05-29 Thread Kaizer H. Sogiawala
Hi Jeff,

You can try using -DarchetypeCatalog=http://somehost.com/mvnrepo.
Assuming that this URL has the archetype-catalog.xml file, it will
give you the same results as using -DarchetypeRepository.

Thanks!
-- 
Kaizer H. Sogiawala
.. The greatest trick the Devil ever pulled was convincing the world
that he didn't exist ..

On Wed, May 21, 2008 at 3:19 PM, Campbell, Jeff
jeff_campb...@intuit.com wrote:
 I'm using the following command to create a new archetype project (only
 the relevant portion of the command is below):



 mvn archetype:generate -DarchetypeRepository=http://somehost.com/mvnrepo
 



 But, because I have the following in my settings.xml file, I cannot
 access the repository specified by the -DarchetypeRepository:



    mirrors

        mirror

            idmy.nexus/id

            name Nexus Mirror/name

            urlhttp://somehost:8081/nexus/content/groups/public/url

            mirrorOf*/mirrorOf

        /mirror

    /mirrors





 What can I do... besides remove the mirrors section all together, or
 list every single mirror that I have (I really like have all our
 developers with a simple entry in the settings.xml file and the mirrors
 configured in Nexus, but I don't want to have to add every possible repo
 that might have some archetype in nexus Hence the reason to use the
 -DarchetypeRepository)?



 Jeff



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[archetype plugin] Cannot use -DarchetypeRepository if you have mirrors in your settings.xml file

2008-05-22 Thread Campbell, Jeff
I'm using the following command to create a new archetype project (only
the relevant portion of the command is below):

 

mvn archetype:generate -DarchetypeRepository=http://somehost.com/mvnrepo


 

But, because I have the following in my settings.xml file, I cannot
access the repository specified by the -DarchetypeRepository:

 

mirrors

mirror

idmy.nexus/id

name Nexus Mirror/name

urlhttp://somehost:8081/nexus/content/groups/public/url

mirrorOf*/mirrorOf

/mirror

/mirrors

 

 

What can I do... besides remove the mirrors section all together, or
list every single mirror that I have (I really like have all our
developers with a simple entry in the settings.xml file and the mirrors
configured in Nexus, but I don't want to have to add every possible repo
that might have some archetype in nexus Hence the reason to use the
-DarchetypeRepository)?

 

Jeff