57 lines
1.8 KiB
XML
57 lines
1.8 KiB
XML
<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.yourname.scripts</groupId>
|
|
<artifactId>cparser-tests</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<dependencies>
|
|
<!-- JUnit for testing -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.13.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<!--
|
|
Configure Maven to recognize the main source directory outside the default
|
|
src/main/java by setting the sourceDirectory to ../../cparser relative to pom.xml.
|
|
Similarly, set the testSourceDirectory to the current directory where ParserTests.java resides.
|
|
-->
|
|
<sourceDirectory>../../cparser</sourceDirectory>
|
|
<testSourceDirectory>.</testSourceDirectory>
|
|
|
|
<plugins>
|
|
<!-- Compiler Plugin to specify Java version -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Surefire Plugin to run JUnit tests -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.22.2</version>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/ParserTests.java</include>
|
|
</includes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |