sorry try using mvn archetype:generate instead of mvn archetype:create

On Mon, Sep 21, 2009 at 6:26 PM, AJ R <[email protected]> wrote:

> Hey
>
> Try using mvn:generate instead of mvn:create
>
> Regards
>
> Ajay Ravichandran
>
>
> On Mon, Sep 21, 2009 at 4:19 PM, townsfolk <[email protected]> wrote:
>
>>
>> I am following the User's Guide and trying to use the junit archetype
>> with this command:
>> [code]
>> mvn archetype:create -DgroupId=com.company -DartifactId=web-test -
>> DarchetypeArtifactId=tellurium-junit-archetype -
>> DarchetypeGroupId=tellurium -DarchetypeVersion=0.7.0-SNAPSHOT -
>> DarchetypeRepository=http://kungfuters.org/nexus/content/repositories/
>> snapshots
>> [/code]
>>
>> As given in the user guide.
>>
>> However, I get this error:
>> [quote]
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> GroupId: tellurium
>> ArtifactId: tellurium-junit-archetype
>> Version: 0.7.0-SNAPSHOT
>>
>> Reason: Unable to download the artifact from any repository
>>
>> Try downloading the file manually from the project website.
>>
>> Then, install it using the command:
>>    mvn install:install-file -DgroupId=tellurium -
>> DartifactId=tellurium-junit-archetype -Dversion=0.7.0-SNAPSHOT -
>> Dpackaging=jar -Dfile=/path/to/file
>>
>> Alternatively, if you host your own repository you can deploy the file
>> there:
>>    mvn deploy:deploy-file -DgroupId=tellurium -DartifactId=tellurium-
>> junit-archetype -Dversion=0.7.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/
>> to/file -Durl=[url] -DrepositoryId=[id]
>>
>>
>>  tellurium:tellurium-junit-archetype:jar:0.7.0-SNAPSHOT
>>
>> from the specified remote repositories:
>>  central (http://repo1.maven.org/maven2)
>> [/quote]
>>
>> I did a search regarding this error, and found it might be related to
>> the -DarchetypeRepository. I've read that this can be an issue with
>> specifying a mirrors element in the settings.xml file.
>> http://jira.codehaus.org/browse/ARCHETYPE-176
>>
>> However, I do not have a mirrors element in the settings.xml file.
>>
>> I've also tried using -DarchetypeCatalog instead with the same
>> results.
>>
>> Any help would be greatly appreciated.
>>
>> Thanks,
>> Eric
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to