# How to create a maven / gatling project?

**URL:** <https://community.gatling.io/t/how-to-create-a-maven-gatling-project/378>\
**Category:** Gatling (Open-Source)\
**Created:** [May 13, 2013, 12:31pm UTC](https://community.gatling.io/t/how-to-create-a-maven-gatling-project/378 "2013-05-13T12:31:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)\
**Post date:** [May 13, 2013, 12:31pm UTC](https://community.gatling.io/t/how-to-create-a-maven-gatling-project/378/1 "2013-05-13T12:31:07Z")

</div>

I am having a hard time understanding how to integrate Maven and Gatling into a project on windows 7

1. I installed Maven
2. installed Gatling
3. trying to create a Maven archetypefor Gatling but I have no idea how or if I need to

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [May 13, 2013, 12:32pm UTC](https://community.gatling.io/t/how-to-create-a-maven-gatling-project/378/2 "2013-05-13T12:32:46Z")

</div>

Here’s the full procedure: [https://github.com/excilys/gatling/wiki/Development-environment](https://github.com/excilys/gatling/wiki/Development-environment)

---

<div class="post-metadata">

**Author:** ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)\
**Post date:** [May 13, 2013, 12:44pm UTC](https://community.gatling.io/t/how-to-create-a-maven-gatling-project/378/3 "2013-05-13T12:44:12Z")

</div>

this is the command I am using to create the maven project  
mvn archetype:create -DarchetypeGroupId=com.excilys.ebi.gatling.highcharts -DarchetypeArtifactId=gatling-charts-highcharts -DarchetypeVersion=1.1.0 -DgroupId=com.excilys.ebi.gatling.highcharts -DartifactId=gatling-maven-plugin

---

<div class="post-metadata">

**Author:** ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)\
**Post date:** [May 13, 2013, 12:45pm UTC](https://community.gatling.io/t/how-to-create-a-maven-gatling-project/378/4 "2013-05-13T12:45:24Z")

</div>

this is what I am using to create the project in maven  
mvn archetype:create -DarchetypeGroupId=com.excilys.ebi.gatling.highcharts -DarchetypeArtifactId=gatling-charts-highcharts -DarchetypeVersion=1.1.0 -DgroupId=com.excilys.ebi.gatling.highcharts -DartifactId=gatling-maven-plugin

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [May 13, 2013, 12:53pm UTC](https://community.gatling.io/t/how-to-create-a-maven-gatling-project/378/5 "2013-05-13T12:53:47Z")

</div>

Sorry, wrong link: [https://github.com/excilys/gatling/wiki/Ide-integration](https://github.com/excilys/gatling/wiki/Ide-integration)

First, don’t use 1.1.0, please!!! Use at least 1.5.

Then, Gatling archetype is not hosted on maven central. If you want to generate the project from the command line instead of m2e as described in our documentation, you still have to declare the remote archetype catalog:

- [https://github.com/excilys/gatling/wiki/Ide-integration#wiki-archetype](https://github.com/excilys/gatling/wiki/Ide-integration#wiki-archetype)
- [http://maven.apache.org/archetype/maven-archetype-plugin/examples/generate-alternative-catalog.html](http://maven.apache.org/archetype/maven-archetype-plugin/examples/generate-alternative-catalog.html)

So, you have to add -DarchetypeCatalog=[http://repository.excilys.com/content/groups/public](http://repository.excilys.com/content/groups/public)

---

<div class="post-metadata">

**Author:** ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)\
**Post date:** [May 13, 2013, 7:05pm UTC](https://community.gatling.io/t/how-to-create-a-maven-gatling-project/378/6 "2013-05-13T19:05:28Z")

</div>

yep this worked, thanks…
