| <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>com.example</groupId> |
| <artifactId>junit-dependency-test</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <version.hamcrest>1.3</version.hamcrest> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>___ARTIFACT_ID___</artifactId> |
| <version>___VERSION___</version> |
| </dependency> |
| |
| <!-- |
| This dependency must be included *before* junit, because said JAR |
| contains an old hamcrest-core version. This is problematic at |
| runtime; see JunitDependencyTest. |
| If junit-dep has the right contents, the order should not matter. |
| --> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-core</artifactId> |
| <version>${version.hamcrest}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-library</artifactId> |
| <version>${version.hamcrest}</version> |
| </dependency> |
| </dependencies> |
| |
| <repositories> |
| <repository> |
| <id>Sonatype</id> |
| <url>https://oss.sonatype.org/content/groups/public</url> |
| <snapshots><enabled>true</enabled></snapshots> |
| <releases><enabled>true</enabled></releases> |
| </repository> |
| </repositories> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>1.5</source> |
| <target>1.5</target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |