From af76d3294e4138c319e716b1414fedbf86ca6d6c Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Fri, 30 Nov 2012 12:26:25 -0600 Subject: [PATCH 1/3] Configure the maven-source-plugin and maven-javadoc-plugin in the parent POM --- antlr4-maven-plugin/pom.xml | 28 ---------------------------- pom.xml | 28 ++++++++++++++++++++++++++++ runtime/Java/pom.xml | 28 ---------------------------- tool/pom.xml | 28 ---------------------------- 4 files changed, 28 insertions(+), 84 deletions(-) diff --git a/antlr4-maven-plugin/pom.xml b/antlr4-maven-plugin/pom.xml index 2ef68f7fd..51d12627f 100644 --- a/antlr4-maven-plugin/pom.xml +++ b/antlr4-maven-plugin/pom.xml @@ -189,34 +189,6 @@ - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9 - - - attach-javadocs - - jar - - - - - diff --git a/pom.xml b/pom.xml index a62a55afb..91ed4b6e1 100644 --- a/pom.xml +++ b/pom.xml @@ -69,6 +69,34 @@ + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9 + + + attach-javadocs + + jar + + + + + org.apache.maven.plugins maven-jar-plugin diff --git a/runtime/Java/pom.xml b/runtime/Java/pom.xml index 596c96225..e27e7275b 100644 --- a/runtime/Java/pom.xml +++ b/runtime/Java/pom.xml @@ -44,34 +44,6 @@ -Xlint:-serial - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9 - - - attach-javadocs - - jar - - - - diff --git a/tool/pom.xml b/tool/pom.xml index 4da90ec60..33d39b596 100644 --- a/tool/pom.xml +++ b/tool/pom.xml @@ -108,34 +108,6 @@ - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9 - - - attach-javadocs - - jar - - - - - maven-surefire-plugin 2.12.4 From 8a3298e07513f928889733428a7f730579f8c99a Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Fri, 30 Nov 2012 12:28:39 -0600 Subject: [PATCH 2/3] Configure the maven-compiler-plugin in the parent POM, including the use of a bootstrap classpath to build a Java 6-compatible jar even when Java 7 is used to build it --- antlr4-maven-plugin/pom.xml | 14 ------------- pom.xml | 42 +++++++++++++++++++++++++++++++++++++ runtime/Java/pom.xml | 16 -------------- tool/pom.xml | 9 -------- 4 files changed, 42 insertions(+), 39 deletions(-) diff --git a/antlr4-maven-plugin/pom.xml b/antlr4-maven-plugin/pom.xml index 51d12627f..8e6b19591 100644 --- a/antlr4-maven-plugin/pom.xml +++ b/antlr4-maven-plugin/pom.xml @@ -136,20 +136,6 @@ - - maven-compiler-plugin - 2.5.1 - - 1.6 - 1.6 - true - true - - - - - - org.apache.maven.plugins maven-plugin-plugin diff --git a/pom.xml b/pom.xml index 91ed4b6e1..4f5b617e7 100644 --- a/pom.xml +++ b/pom.xml @@ -54,6 +54,10 @@ UTF-8 UTF-8 + ${env.JAVA5_HOME} + ${env.JAVA6_HOME} + ${java6.home}/jre/lib/rt.jar + ${java6.home}/jre/lib/rt.jar @@ -69,6 +73,44 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.0 + + src + true + true + + + + + default-compile + + 1.6 + 1.6 + -Xlint:-serial + + ${bootclasspath.compile} + + + + + + default-testCompile + + 1.6 + 1.6 + -Xlint:-serial + + ${bootclasspath.testCompile} + + + + + + + org.apache.maven.plugins maven-source-plugin diff --git a/runtime/Java/pom.xml b/runtime/Java/pom.xml index e27e7275b..8a33d2382 100644 --- a/runtime/Java/pom.xml +++ b/runtime/Java/pom.xml @@ -29,22 +29,6 @@ src - - - maven-compiler-plugin - 2.5.1 - - 1.6 - 1.6 - true - true - - - - -Xlint:-serial - - - diff --git a/tool/pom.xml b/tool/pom.xml index 33d39b596..04355a7a4 100644 --- a/tool/pom.xml +++ b/tool/pom.xml @@ -99,15 +99,6 @@ - - maven-compiler-plugin - 2.5.1 - - 1.6 - 1.6 - - - maven-surefire-plugin 2.12.4 From 6de457096472a2d9fa066c3f1681a2f62497c16a Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Fri, 30 Nov 2012 12:28:58 -0600 Subject: [PATCH 3/3] Explicitly specify the compile scope --- tool/pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tool/pom.xml b/tool/pom.xml index 04355a7a4..da4eddae6 100644 --- a/tool/pom.xml +++ b/tool/pom.xml @@ -25,16 +25,19 @@ org.antlr antlr4-runtime ${project.version} + compile org.antlr antlr-runtime 3.5.1-SNAPSHOT + compile org.antlr ST4 4.0.7-SNAPSHOT + compile