Error creating new project from Eclipse

I have JDK1.7, Eclipse Juno(4.2), Scala IDE 2.10 plugin for Eclipse, Maven 3.2.3 installed on my computer.

I’m able to import an existing project and run. However, I’m having problem creating a new Gatling project from Eclipse. The documentation only talks about how to create a project from command line and then import to the IDE. (http://gatling.io/docs/2.1.4/extensions/maven_archetype.html)

So I click New Project → New Maven Project → Add Archetype. Then I fill in the Gatling Archetype group id, artifact id and version that I found here: http://gatling.io/#/download

However, I got an error “Unable to create project from archetype [io.gatling.highcharts:gatling-charts-highcharts:2.1.4 → ]”

Has anyone see this problem before?

Thanks,
Brian

And then I try to create a project from command line: http://gatling.io/docs/2.1.4/extensions/maven_archetype.html

But I got the following failure:

[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: gatling-highcharts-maven-archetype:2.1.2
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.a.a.d
[INFO] Parameter: artifactId, Value: testing-gatling
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: testing
[INFO] Parameter: packageInPathFormat, Value: testing
[INFO] Parameter: package, Value: testing
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: com.a.a.d
[INFO] Parameter: artifactId, Value: testing-gatling
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:33 min
[INFO] Finished at: 2015-02-11T17:03:39-08:00
[INFO] Final Memory: 15M/246M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project testing-gatling: org.apache.maven.archetype.exception.InvalidPackaging: Unable to add module to the current project as it is not of packaging type ‘pom’ → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

After I updated my Maven to the latest version 3.2.5, I’m able to create a project from command line and then import it to Eclipse. However, I still cannot create a new project in Eclipse.

Gatling 2.1 requires Scala 2.11, not 2.10.

So I install Eclipse 4.4 (Luna) and install Scala IDE 2.11 plugin. However, I’m still getting the same error when I try to create a new project. Again, creating a project from command line then import it to Eclipse works, but the latest version of Gatling I can get this way is 2.1.2.

We don’t republish sub-projects that don’t need it.
Use the latest available archetype and edit the gatling version in the pom.