Need info -Maven Setup in IDE( IntelliJ/Eclipse) for Gatling 2.0.0-SNAPSHOT

Hello,

I’m new user for Gatling, with testing background.

I would like to use Gatling with Maven Plugin, to run baseline performance tests as maven job with CI Server.
Based on earlier posts, I thought of using Gatling 2.0.0-SNAPSHOT, however can’t find this in Maven central repository.

I have tried approach outlined in following url, however can’t find archetype for Gatling 2.0.0-SNAPSHOT, only seeing for Gatling 1.5.6 or Gatling 2.0.0-M3/2.0.0-M3a .
http://java.dzone.com/articles/how-create-and-run-gatling-20

So I have created Maven archetype:quickstart and updated with following pom.xml. however seeing below errors on trying to perform maven compile, seeing following error

[ERROR] Failed to execute goal on project performance: Could not resolve dependencies for project com.mygov.alpha:performance:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: io.gatling:gatling-app:jar:2.0.0-SNAPSHOT, io.gatling:gatling-core:jar:2.0.0-SNAPSHOT, io.gatling:gatling-http:jar:2.0.0-SNAPSHOT, io.gatling:gatling-jms:jar:2.0.0-SNAPSHOT, io.gatling:gatling-jdbc:jar:2.0.0-SNAPSHOT, io.gatling:gatling-redis:jar:2.0.0-SNAPSHOT, io.gatling:gatling-metrics:jar:2.0.0-SNAPSHOT, io.gatling:gatling-charts:jar:2.0.0-SNAPSHOT, io.gatling:gatling-recorder:jar:2.0.0-SNAPSHOT: Could not find artifact io.gatling:gatling-app:jar:2.0.0-SNAPSHOT in excilys (http://repository.excilys.com/content/groups/public) → [Help 1]


4.0.0

com.test.alpha
Performance
1.0.0-SNAPSHOT
jar

Performance
http://maven.apache.org

<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<scala.version>2.10.2</scala.version>
UTF-8
2.0.0-SNAPSHOT
<gatling.version>2.0.0-SNAPSHOT</gatling.version>
<gatling-highcharts.version>2.0.0-SNAPSHOT</gatling-highcharts.version>
<scala-maven-plugin.version>3.1.5</scala-maven-plugin.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

junit junit 4.11 test io.gatling gatling-app ${gatling.version} io.gatling gatling-recorder ${gatling.version} io.gatling.highcharts gatling-charts-highcharts ${gatling-highcharts.version} test org.scala-lang scala-library ${scala.version} io.gatling gatling-maven-plugin ${gatling-maven-version} net.alchim31.maven scala-maven-plugin ${scala-maven-plugin.version} compile testCompile -Xms64m -Xmx1024m Engine Engine Recorder Recorder io.gatling gatling-maven-plugin ${gatling-maven-version} test execute src/test/scala/fkp/pac *.scala

Thanks & Regards,
Raj

Below issues is resolved, after following below url

https://github.com/excilys/gatling-maven-plugin-demo

Apologies for not seeing this before.

Thanks,
Raj

Glad it helped.

https://github.com/excilys/gatling-maven-plugin-demo

This is still using 2M3a. Please let me know if you have the one which supports 2.0.0 Snapshot version

Should be OK now, thanks for reporting

Getting compilation error in pom after update to RC version

The project (/Users/sgs/gatling-maven-plugin-demo/pom.xml) has 1 error
[ERROR] Non-parseable POM /Users/sgs/gatling-maven-plugin-demo/pom.xml: comment started on line 46 and column 12 was not closed (position: START_TAG seen …\n\t\n\n… @58:1) caused by: java.io.EOFException: no more data available - expected end tags to close start tag from line 44 and start tag from line 39 and start tag from line 38 and start tag from line 34 and start tag from line 33 and start tag from line 32 and start tag from line 1, parser stopped on START_TAG seen …\n\t\n\n… @58:1 @ line 58, column 1 → [Help 2]
[ERROR]

fixed

Hi,

I am a new user to Gatling. when trying to add the Gatling artifactId does not seem to work i keep getting the following message.

Message: Can’t resolve Archetype io.gatling.highcharts:gatling-highcharts-maven-archetype:2.2.0
org.eclipse.core.runtime.CoreException: Could not resolve artifact io.gatling.highcharts:gatling-highcharts-maven-archetype:pom:2.2.0

steps are:
using scala ide
new project (maven)
add archetype
entering the following

io.gatling.highcharts
gatling-highcharts-maven-archetype
2.2.0

Message above is what i am getting.

Thanks

Rishi Davda

Same issue i am getting while using Gatling Maven Plugin in my pom.xml

<!-- Gatling Maven plugin that runs the load-simulation. -->
<plugin>
  <groupId>io.gatling</groupId>
  <artifactId>gatling-maven-plugin</artifactId>
  <version>2.4.4</version>
  <configuration>
    <simulationClass>com.example.perf.simulations.HttpSimulation</simulationClass>
  </configuration>

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: io.gatling.highcharts:gatling-charts-highcharts:jar -> duplicate declaration of version ${gatling.version} @ line 56, column 17
[WARNING] 'build.plugins.plugin.version' for org.scala-tools:maven-scala-plugin is missing. @ line 77, column 15
[ERROR] 'dependencies.dependency.version' for io.gatling.highcharts:gatling-charts-highcharts:jar must be a valid version but is '${gatling.version}'. @ line 59, column 16
 @