Hi Shahzad,
Do you have archetype-catalog.xml file  on your internal repository  ?
,it is required to have a  archetype-catalog.xml file to get Archetype
information for Maven Archetype Plug-in. please see the [1]

[1] - 
http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-catalog.html

Thanks ,

On Tue, Mar 17, 2009 at 12:07 AM, Qureshi,Shahzad [Ontario]
<[email protected]> wrote:
> Hi all,
>
> I am having difficulty using archetype:generate plugin where I want it
> to use an archetype stored in our internal repository. I was able to do
> so using archetype:create plugin. I've a settings.xml in .m2 directory
> and that's where archetype:create reads the internal repository
> information but archetype:generate doesn't seem to do that.
>
> I tried using -DarchetypeRepository but I probably am not entering the
> internal repository url properly. This is what I am typing and I am
> getting Build Error because it can't find my archetype
>
> mvn archetype:generate -DarchetypeArtifactId=default-archetype
> -DarchetypeGroupId=default-archetype -DarchetypeVersion=1.0
> -DarchetypeRepository=http://serveraddress/Intranet/maven-repo
>
> http://serveraddress/Intranet/maven-repo is where archetype-default
> archetype is residing
>
> Any ideas?
>
> thanks
>
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate, CIOB
> Environment Canada
> [email protected]
>
>



-- 
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to