Hi Jian,
No I'm not behind any firewalls. Changing the command from create
to generate worked though.
On Sep 21, 4:34 pm, Jian Fang <[email protected]> wrote:
> I tried the following command and it works fine.
>
> [jf...@mars]$ 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
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO] task-segment: [archetype:create] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:create]
> [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
> [INFO] Defaulting package to group ID: com.company
> [INFO] snapshot tellurium:tellurium-junit-archetype:0.7.0-SNAPSHOT: checking
> for updates from kungfuters-public-snapshots-repo
> Downloading:http://kungfuters.org/nexus/content/repositories/snapshots/tellurium/...
> 9K downloaded
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Using following parameters for creating OldArchetype:
> tellurium-junit-archetype:0.7.0-SNAPSHOT
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Parameter: groupId, Value: com.company
> [INFO] Parameter: packageName, Value: com.company
> [INFO] Parameter: package, Value: com.company
> [INFO] Parameter: artifactId, Value: web-test
> [INFO] Parameter: basedir, Value: /tmp
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] ********************* End of debug info from resources from generated
> POM ***********************
> [INFO] OldArchetype created in dir: /tmp/web-test
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Mon Sep 21 18:30:38 GMT-05:00 2009
> [INFO] Final Memory: 15M/241M
> [INFO]
> ------------------------------------------------------------------------
>
> Are you behind a firewall? If so, you need to set up the proxy in the
> settings.xml. For example, I have the following proxy settings by using the
> ntlmaps proxy server.
>
> <proxy>
> <active>false</active>
> <protocol>http</protocol>
> <host>localhost</host>
> <port>5865</port>
> <nonProxyHosts>*.mycompany.com</nonProxyHosts>
> </proxy>
>
> Thanks,
>
> Jian
>
> On Mon, Sep 21, 2009 at 5: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
-~----------~----~----~----~------~----~------~--~---