Tied exec:java to verify phase.
This commit is contained in:
parent
a9bcd354ed
commit
c0be96dd24
2 changed files with 43 additions and 45 deletions
|
@ -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
|
||||
|
|
|
@ -10,11 +10,19 @@
|
|||
<name>Example</name>
|
||||
|
||||
<properties>
|
||||
<semver>1.2.0</semver>
|
||||
<semver.version>1.2.0</semver.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.thauvin.erik</groupId>
|
||||
<artifactId>semver</artifactId>
|
||||
<version>${semver.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
@ -29,7 +37,7 @@
|
|||
<annotationProcessorPath>
|
||||
<groupId>net.thauvin.erik</groupId>
|
||||
<artifactId>semver</artifactId>
|
||||
<version>${semver}</version>
|
||||
<version>${semver.version}</version>
|
||||
</annotationProcessorPath>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
|
@ -40,8 +48,8 @@
|
|||
<version>1.6.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>my-execution</id>
|
||||
<phase>package</phase>
|
||||
<id>run</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>java</goal>
|
||||
</goals>
|
||||
|
@ -52,15 +60,5 @@
|
|||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.thauvin.erik</groupId>
|
||||
<artifactId>semver</artifactId>
|
||||
<version>${semver}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue