aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorJulien Eluard <[email protected]>2013-10-16 08:31:41 -0300
committerJulien Eluard <[email protected]>2013-10-16 08:31:41 -0300
commitf89c0a958b01ae732ac16c1dfdae15a9715f735a (patch)
treeec5533143d60fc5d249d146a4fe77a76d503c8d8 /example
parent941c16dbe976c4acfa5faa24214e351b56b58791 (diff)
Added a basic example demoing maven integration. Improves #13.
Diffstat (limited to 'example')
-rw-r--r--example/pom.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/example/pom.xml b/example/pom.xml
new file mode 100644
index 0000000..1665b33
--- /dev/null
+++ b/example/pom.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" 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">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.semver</groupId>
+ <artifactId>example</artifactId>
+ <version>0.1.1-SNAPSHOT</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0.1</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.semver</groupId>
+ <artifactId>enforcer-rule</artifactId>
+ <version>0.9.17</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>check</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireBackwardCompatibility implementation="org.semver.enforcer.RequireBackwardCompatibility">
+ <compatibilityType>BACKWARD_COMPATIBLE_IMPLEMENTER</compatibilityType>
+ </requireBackwardCompatibility>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>