tweak pom so it compiles in `compile` phase and `install` phase but doesn't run tests correctly.

This commit is contained in:
Terence Parr 2015-06-26 13:33:32 -07:00 committed by parrt
parent f4709f2973
commit dec5d26a3d
4 changed files with 131 additions and 86 deletions

View File

@ -107,7 +107,7 @@
<dependency> <dependency>
<groupId>org.antlr</groupId> <groupId>org.antlr</groupId>
<artifactId>runtime-testsuite</artifactId> <artifactId>antlr4-runtime-testsuite</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>

16
pom.xml
View File

@ -62,8 +62,10 @@
<modules> <modules>
<module>runtime/Java</module> <module>runtime/Java</module>
<module>tool</module> <module>tool</module>
<module>runtime-testsuite</module>
<module>antlr4-maven-plugin</module> <module>antlr4-maven-plugin</module>
<module>antlr4-testgen-maven-plugin</module> <module>antlr4-testgen-maven-plugin</module>
<module>tool-testsuite</module>
</modules> </modules>
<properties> <properties>
@ -104,25 +106,13 @@
<directory>test</directory> <directory>test</directory>
</testResource> </testResource>
</testResources> </testResources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<profiles> <profiles>
<profile> <profile>
<id>rts</id> <id>rts</id>
<modules> <modules>
<module>runtime-testsuite</module> <module>antlr4-runtime-testsuite</module>
</modules> </modules>
</profile> </profile>
</profiles> </profiles>

View File

@ -7,7 +7,7 @@
<artifactId>antlr4-master</artifactId> <artifactId>antlr4-master</artifactId>
<version>4.5.1-SNAPSHOT</version> <version>4.5.1-SNAPSHOT</version>
</parent> </parent>
<artifactId>runtime-testsuite</artifactId> <artifactId>antlr4-runtime-testsuite</artifactId>
<name>ANTLR 4 Runtime Test Generator</name> <name>ANTLR 4 Runtime Test Generator</name>
<description>A collection of tests for ANTLR 4 Runtime libraries.</description> <description>A collection of tests for ANTLR 4 Runtime libraries.</description>
@ -44,6 +44,41 @@
<build> <build>
<sourceDirectory>src</sourceDirectory> <sourceDirectory>src</sourceDirectory>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<excludes>
<exclude>**/safari/*.java</exclude>
<exclude>**/chrome/*.java</exclude>
<exclude>**/firefox/*.java</exclude>
<exclude>**/explorer/*.java</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<testExcludes>
<exclude>**/safari/*.java</exclude>
<exclude>**/chrome/*.java</exclude>
<exclude>**/firefox/*.java</exclude>
<exclude>**/explorer/*.java</exclude>
</testExcludes>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>com.googlecode.maven-download-plugin</groupId> <groupId>com.googlecode.maven-download-plugin</groupId>
@ -52,63 +87,6 @@
<configuration> <configuration>
<skipCache>true</skipCache> <skipCache>true</skipCache>
</configuration> </configuration>
<executions>
<execution>
<id>python2</id>
<phase>generate-test-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/antlr/antlr4-python2/master/tool/test/org/antlr/v4/test/runtime/python2/BasePython2Test.java</url>
<outputFileName>generated-sources/org/antlr/v4/test/runtime/python2/BasePython2Test.java</outputFileName>
</configuration>
</execution>
<execution>
<id>python3</id>
<phase>generate-test-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/antlr/antlr4-python3/master/tool/test/org/antlr/v4/test/runtime/python3/BasePython3Test.java</url>
<outputFileName>generated-sources/org/antlr/v4/test/runtime/python3/BasePython3Test.java</outputFileName>
</configuration>
</execution>
<execution>
<id>python</id>
<phase>generate-test-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/antlr/antlr4-python3/master/tool/test/org/antlr/v4/test/runtime/python/BasePythonTest.java</url>
<outputFileName>generated-sources/org/antlr/v4/test/runtime/python/BasePythonTest.java</outputFileName>
</configuration>
</execution>
<execution>
<id>javascript</id>
<phase>generate-test-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/antlr/antlr4-javascript/master/tool/test/org/antlr/v4/test/runtime/javascript/node/BaseTest.java</url>
<outputFileName>generated-sources/org/antlr/v4/test/runtime/javascript/node/BaseTest.java</outputFileName>
</configuration>
</execution>
<execution>
<id>csharp</id>
<phase>generate-test-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/antlr/antlr4-csharp/master/tool/test/org/antlr/v4/test/runtime/csharp/BaseTest.java</url>
<outputFileName>generated-sources/org/antlr/v4/test/runtime/csharp/BaseTest.java</outputFileName>
</configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
@ -132,14 +110,6 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<antlr-python2-runtime>../../antlr4-python2/src</antlr-python2-runtime>
<antlr-python3-runtime>../../antlr4-python3/src</antlr-python3-runtime>
<antlr-csharp-runtime-project>../../antlr4-csharp/runtime/CSharp/Antlr4.Runtime/Antlr4.Runtime.mono.csproj</antlr-csharp-runtime-project>
<antlr-javascript-runtime>../../antlr4-javascript/src</antlr-javascript-runtime>
</systemPropertyVariables>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

85
tool-testsuite/pom.xml Normal file
View File

@ -0,0 +1,85 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.antlr</groupId>
<artifactId>antlr4-master</artifactId>
<version>4.5.1-SNAPSHOT</version>
</parent>
<artifactId>antlr4-tool-testsuite</artifactId>
<name>ANTLR 4 Tool Tests</name>
<description>A collection of tests for ANTLR 4 Runtime libraries.</description>
<prerequisites>
<maven>3.0</maven>
</prerequisites>
<inceptionYear>2009</inceptionYear>
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>ST4</artifactId>
<version>4.0.8</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime-testsuite</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<skipCache>true</skipCache>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<antlr-python2-runtime>../../antlr4-python2/src</antlr-python2-runtime>
<antlr-python3-runtime>../../antlr4-python3/src</antlr-python3-runtime>
<antlr-csharp-runtime-project>../../antlr4-csharp/runtime/CSharp/Antlr4.Runtime/Antlr4.Runtime.mono.csproj</antlr-csharp-runtime-project>
<antlr-javascript-runtime>../../antlr4-javascript/src</antlr-javascript-runtime>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>