diff --git a/README.md b/README.md
index a76c940..f3eb044 100644
--- a/README.md
+++ b/README.md
@@ -1,27 +1,55 @@
# TestContainers Mule Module
-
+![Maven Central](https://img.shields.io/maven-central/v/com.mariocairone.mule/testcontainers-mule?style=flat-square) ![GitHub](https://img.shields.io/github/license/mariocairone/testcontainers-mule) ![GitHub issues](https://img.shields.io/github/issues/mariocairone/testcontainers-mule) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/mariocairone/testcontainers-mule?style=social)
## Docker Image
Mulesoft do not provide an official docker images for the mule runtime.
The module will use by default the docker image [mariocairone/mule-ee:latest](https://cloud.docker.com/repository/docker/mariocairone/mule-ee).
-## Install the Module
+## Setup
+
+As a dependency of your Maven project:
-To install the module in your local maven repository runt the following command
+```xml
+
+ com.mariocairone.mule
+ testcontainers-mule
+ 1.0.0
+
+```
+You can also build the `.jar` file yourself, assuming you have Maven and JDK 1.8+ installed:
```shell
mvn clean install
```
+The resulting `.jar` file will be located in the `target/` folder.
+
+You can also find `SNAPSHOT` builds of the latest and greatest changes to the master branch in the SonaType snapshots repository.
+
+To add that snapshot repository to your Maven pom.xml use the following snippet:
+```xml
+
+
+ oss-sonatype
+ oss-sonatype
+ https://oss.sonatype.org/content/repositories/snapshots/
+
+ true
+
+
+
+```
+
## Usage Example
The example below shows how to use the module to create a mule container with a deployed application in a Junit test class.
```java
-package com.mariocairone.testcontainers.mule;
+package com.mariocairone.mule.testcontainers;
+import org.junit.ClassRule;
import org.junit.BeforeClass;
import org.junit.Test;
import org.testcontainers.containers.wait.strategy.Wait;
@@ -29,7 +57,7 @@ import org.testcontainers.containers.wait.strategy.Wait;
public class MuleServerContainerTest {
-
+ @ClassRule
public static final MuleServerContainer mule = new MuleServerContainer()
.withDeployedApplications("target", "myApp*.zip")
.withExposedPorts(8081)
@@ -42,7 +70,6 @@ public class MuleServerContainerTest {
@BeforeClass
public static void init() {
- mule.start();
mulePort = mule.getFirstMappedPort();
}
diff --git a/pom.xml b/pom.xml
index eec0122..9fd049a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- com.mariocairone.testcontainers
+ com.mariocairone.mule
testcontainers-mule
1.0.0
diff --git a/src/main/java/com/mariocairone/testcontainers/mule/MuleServerContainer.java b/src/main/java/com/mariocairone/mule/testcontainers/MuleServerContainer.java
similarity index 98%
rename from src/main/java/com/mariocairone/testcontainers/mule/MuleServerContainer.java
rename to src/main/java/com/mariocairone/mule/testcontainers/MuleServerContainer.java
index eae773b..1ddc3d0 100644
--- a/src/main/java/com/mariocairone/testcontainers/mule/MuleServerContainer.java
+++ b/src/main/java/com/mariocairone/mule/testcontainers/MuleServerContainer.java
@@ -1,4 +1,4 @@
-package com.mariocairone.testcontainers.mule;
+package com.mariocairone.mule.testcontainers;
import java.io.File;
import java.io.FileFilter;