diff --git a/README.md b/README.md
index ea64eab..5213926 100644
--- a/README.md
+++ b/README.md
@@ -194,7 +194,7 @@ To install and run from [Maven](https://maven.apache.org/), configure an artifac
Please look at [pom.xml](https://github.com/ethauvin/semver/blob/master/examples/java/pom.xml) in the [Java example](https://github.com/ethauvin/semver/tree/master/examples/java) directory for a sample:
```bash
-mvn compile exec:java
+mvn verify
```
### Gradle
diff --git a/examples/java/pom.xml b/examples/java/pom.xml
index 38776a4..6d1f0a3 100644
--- a/examples/java/pom.xml
+++ b/examples/java/pom.xml
@@ -10,57 +10,55 @@
Example
- 1.2.0
+ 1.2.0
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.8.0
-
- 1.8
- 1.8
- UTF-8
- src/generated/java
-
-
- net.thauvin.erik
- semver
- ${semver}
-
-
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 1.6.0
-
-
- my-execution
- package
-
- java
-
-
-
-
- com.example.Example
-
-
-
-
-
-
net.thauvin.erik
semver
- ${semver}
+ ${semver.version}
compile
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.0
+
+ 1.8
+ 1.8
+ UTF-8
+ src/generated/java
+
+
+ net.thauvin.erik
+ semver
+ ${semver.version}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.6.0
+
+
+ run
+ verify
+
+ java
+
+
+
+
+ com.example.Example
+
+
+
+