Hey Jian
Actually strangely, mvn:create does not work correctly unless the
settings.xml has the kungfuters repository defined in it. Also i believe
mvn:create is being deprecated and mvn:generate might be the better task to
use. I am using maven 2.2.1.

Would it be ok for me to update the wiki with mvn:generate instead of
mvn:create??

Regards

Ajay Ravichandran

On Mon, Sep 21, 2009 at 6:51 PM, Jian Fang <[email protected]> wrote:

> I see. The Maven command must be on the same line. The document is created
> in Words and we may forget to add the "\" after the line. Sorry for the
> confusion.
>
> Sure, we will update the document later.
>
> Thanks,
>
> Jian
>
>
> On Mon, Sep 21, 2009 at 7:46 PM, townsfolk <[email protected]> wrote:
>
>>
>> Awesome. That solved it.
>>
>> Sorry for my maven noobiness. Didn't realize the command was wrong.
>>
>> Might want to update the document found here:
>> http://aost.googlecode.com/files/TelluriumUserGuide.0.6.0.pdf
>>
>> As that's where I got the command from.
>>
>> Thanks!
>> Eric
>>
>> On Sep 21, 4:27 pm, AJ R <[email protected]> wrote:
>> > 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