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

1,127 views
Skip to first unread message

Guest

unread,
Jul 8, 2014, 5:50:15 AM7/8/14
to gat...@googlegroups.com
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 .


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]

 
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.test.alpha</groupId>
  <artifactId>Performance</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>Performance</name>

  <properties>

          <maven.compiler.source>1.7</maven.compiler.source>
          <maven.compiler.target>1.7</maven.compiler.target>
          <scala.version>2.10.2</scala.version>
          <encoding>UTF-8</encoding>
          <gatling-maven-version>2.0.0-SNAPSHOT</gatling-maven-version>
          <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>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>

      <dependency>
          <groupId>io.gatling</groupId>
          <artifactId>gatling-app</artifactId>
          <version>${gatling.version}</version>
      </dependency>
      <dependency>
          <groupId>io.gatling</groupId>
          <artifactId>gatling-recorder</artifactId>
          <version>${gatling.version}</version>
      </dependency>
      <dependency>
          <groupId>io.gatling.highcharts</groupId>
          <artifactId>gatling-charts-highcharts</artifactId>
          <version>${gatling-highcharts.version}</version>
          <scope>test</scope>
      </dependency>
      <dependency>
          <groupId>org.scala-lang</groupId>
          <artifactId>scala-library</artifactId>
          <version>${scala.version}</version>
      </dependency>
      <dependency>
          <groupId>io.gatling</groupId>
          <artifactId>gatling-maven-plugin</artifactId>
          <version>${gatling-maven-version}</version>
      </dependency>
  </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
                <version>${scala-maven-plugin.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <jvmArgs>
                        <jvmArg>-Xms64m</jvmArg>
                        <jvmArg>-Xmx1024m</jvmArg>
                    </jvmArgs>
                    <launchers>
                        <launcher>
                            <id>Engine</id>
                            <!--
                             Gatling Test Runner mvn scala:run -DLauncher=Engine
                            -->
                            <mainClass>Engine</mainClass>
                        </launcher>
                        <launcher>
                            <id>Recorder</id>
                            <!--
                             Gatling Test Recorder mvn scala:run -DLauncher=Recorder
                            -->
                            <mainClass>Recorder</mainClass>
                        </launcher>
                    </launchers>
                </configuration>
            </plugin>
            <plugin>
                <groupId>io.gatling</groupId>
                <artifactId>gatling-maven-plugin</artifactId>
                <version>${gatling-maven-version}</version>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <simulationsFolder>src/test/scala/fkp/pac</simulationsFolder>
                    <includes>
                        <include>*.scala</include>
                    </includes>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


Thanks & Regards,
Raj




Raja

unread,
Jul 8, 2014, 2:32:28 PM7/8/14
to gat...@googlegroups.com
Below issues is resolved, after following below url


Apologies for not seeing this before.

Thanks,
Raj 

Stéphane Landelle

unread,
Jul 8, 2014, 4:41:37 PM7/8/14
to gat...@googlegroups.com
Glad it helped.


--
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.

Santhosh Gotur

unread,
Aug 1, 2014, 7:54:22 PM8/1/14
to gat...@googlegroups.com
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

Stéphane Landelle

unread,
Aug 2, 2014, 2:49:05 AM8/2/14
to gat...@googlegroups.com
Should be OK now, thanks for reporting

Santhosh Gotur

unread,
Aug 2, 2014, 4:07:47 AM8/2/14
to gat...@googlegroups.com
 
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 ...</plugins>\n\t</build>\n</project>\n... @58:1) caused by: java.io.EOFException: no more data available - expected end tags </configuration></execution></executions></plugin></plugins></build></project> to close start tag <configuration> from line 44 and start tag <execution> from line 39 and start tag <executions> from line 38 and start tag <plugin> from line 34 and start tag <plugins> from line 33 and start tag <build> from line 32 and start tag <project> from line 1, parser stopped on START_TAG seen ...</plugins>\n\t</build>\n</project>\n... @58:1 @ line 58, column 1 -> [Help 2]
[ERROR] 

Stéphane Landelle

unread,
Aug 2, 2014, 4:09:57 AM8/2/14
to gat...@googlegroups.com
fixed
Message has been deleted

Rishi Davda

unread,
Sep 7, 2016, 6:12:12 AM9/7/16
to Gatling User Group
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
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-highcharts-maven-archetype</artifactId>
<version>2.2.0</version>

Message above is what i am getting.

Thanks

Rishi Davda 

sargam....@squareboat.com

unread,
Jan 30, 2018, 1:03:14 AM1/30/18
to Gatling User Group
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
 @ 
Reply all
Reply to author
Forward
0 new messages