Unable to create Maven project using Archetypes

460 views
Skip to first unread message

John Ferguson

unread,
Nov 4, 2014, 1:45:44 PM11/4/14
to gat...@googlegroups.com
What I want to do is create a Maven project I can import into Eclipse so I can author some tests against a REST endpoint (cannot use the scenario recorder for that - FireFox REST client is not captured).  In doing so I was trying to use a working Maven archetype for Gatling IO 2.0.2.

Since we use Nexus in front of the Maven world I added this to my ~/.m2/settings.xml  - which is from older documentation:

<repository>
    <id>excilys</id>
    <name>Excilys Repository</name>
    <url>http://repository.excilys.com/content/groups/public</url>
</repository>

And I use this command:

mvn archetype:generate -DarchetypeCatalog=http://repository.excilys.com/content/groups/public/archetype-catalog.xml -Dfilter=io.gatling:

Per the only current (2014) docs I can find on this blog: http://theholyjava.wordpress.com/2014/04/28/how-to-create-and-run-gatling-2-0-tests/ 

However, I end up being told nothing matches the filter so I picked a "close match":

http://repository.excilys.com/content/groups/public/archetype-catalog.xml -> io.gatling.highcharts:gatling-highcharts-maven-archetype (-)

Which subsequently fails on me:

ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (io.gatling.highcharts:gatling-highcharts-maven-archetype:2.0.0-M3a) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

I am a Maven beginner/novice, so please keep it simple.

System Info:
-----------------
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00)
Maven home: /usr/local/Cellar/maven/3.2.3/libexec
Java version: 1.7.0_67, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac"


Stéphane Landelle

unread,
Nov 4, 2014, 3:22:51 PM11/4/14
to gat...@googlegroups.com
Please properly read the documentation.

All our artifacts are now published on maven central, not on Excilys' private repository. Don't specify the catalog, so you use the default one.

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages