diff --git a/antlr3-maven-archetype/pom.xml b/antlr3-maven-archetype/pom.xml index 31e9804e6..790caadfa 100644 --- a/antlr3-maven-archetype/pom.xml +++ b/antlr3-maven-archetype/pom.xml @@ -35,14 +35,11 @@ - - diff --git a/antlr3-maven-plugin/pom.xml b/antlr3-maven-plugin/pom.xml index 4c88ad32e..0b7294dae 100644 --- a/antlr3-maven-plugin/pom.xml +++ b/antlr3-maven-plugin/pom.xml @@ -34,53 +34,27 @@ - - 4.0.0 - - - org.antlr - - - - antlr3-maven-plugin - maven-plugin - org.antlr antlr-master 3.5.3-SNAPSHOT - + antlr3-maven-plugin + maven-plugin ANTLR 3 Maven plugin - - 2.0 - + + + 3.8.4 + UTF-8 + http://antlr.org - - UTF-8 - - - This is the brand new, re-written from scratch plugin for ANTLR v3. Previous valiant efforts all suffered from being unable to modify the ANTLR Tool @@ -106,11 +80,9 @@ to death. Hence even this pom has more comments than funcitonal elements, in case I get run over by a bus or fall off a cliff while skiing. Jim Idle - March 2009 - - Jim Idle http://www.temporal-wave.com @@ -159,25 +131,78 @@ Jim Idle - March 2009 + org.apache.maven maven-plugin-api - 2.0 - compile + 3.8.4 + provided + + + org.codehaus.plexus + plexus-compiler-api + 2.9.0 + + + org.sonatype.plexus + plexus-build-api + 0.0.7 + + + + org.antlr + antlr + 3.5.3-SNAPSHOT + + + + junit + junit + 4.13.2 + test + + + org.apache.maven.plugin-tools + maven-plugin-annotations + 3.6.2 + provided + + + io.takari.maven.plugins + takari-plugin-testing + 3.0.0 + test - org.apache.maven - maven-project - 2.0 + maven-core + 3.8.4 + provided + + + org.apache.maven + maven-compat + 3.8.4 + test - org.codehaus.plexus - plexus-compiler-api - 2.0 + plexus-utils + 3.4.1 + provided + + + org.slf4j + slf4j-api + 1.7.32 + + + org.slf4j + slf4j-simple + 1.7.32 - - 4.0.0 - - - 2.0 - - - org.antlr - maven-gunit-plugin - maven-plugin - - ANTLR 3 gUnit Maven plugin - A Maven plugin for incorporating gUnit testing of grammars - http://antlr.org - - org.antlr antlr-master 3.5.3-SNAPSHOT + maven-gunit-plugin + maven-plugin + ANTLR 3 gUnit Maven plugin + A Maven plugin for incorporating gUnit testing of grammars + http://antlr.org + 3.8.4 UTF-8 @@ -75,25 +61,68 @@ + org.apache.maven maven-plugin-api - 2.0 - compile + 3.8.4 + provided + + + org.codehaus.plexus + plexus-compiler-api + 2.9.0 + + + org.sonatype.plexus + plexus-build-api + 0.0.7 + + + + + junit + junit + 4.13.2 + test + + + org.apache.maven.plugin-tools + maven-plugin-annotations + 3.6.2 + provided + + + io.takari.maven.plugins + takari-plugin-testing + 3.0.0 + test - org.apache.maven - maven-project - 2.0 + maven-core + 3.8.4 + provided + + + org.apache.maven + maven-compat + 3.8.4 + test - org.codehaus.plexus - plexus-compiler-api - 2.0 + plexus-utils + 3.4.1 + provided + + + org.slf4j + slf4j-api + 1.7.32 - org.antlr gunit @@ -120,7 +145,6 @@ 1.1 test - diff --git a/gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/GUnitExecuteMojo.java b/gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/GUnitExecuteMojo.java index a7e231769..4f2ba8738 100644 --- a/gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/GUnitExecuteMojo.java +++ b/gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/GUnitExecuteMojo.java @@ -36,18 +36,22 @@ import org.antlr.gunit.gUnitExecutor; import org.antlr.gunit.AbstractTest; import org.antlr.gunit.Interp; +import org.apache.maven.plugin.logging.Log; +import org.apache.maven.plugins.annotations.Component; +import org.apache.maven.plugins.annotations.LifecyclePhase; +import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.Parameter; +import org.apache.maven.plugins.annotations.ResolutionScope; /** * Takes gUnit scripts and directly performs testing. - * - * @goal gunit - * - * @phase test - * @requiresDependencyResolution test - * @requiresProject true - * * @author Steve Ebersole */ +@Mojo( + name = "gunit", + defaultPhase = LifecyclePhase.TEST, + requiresDependencyResolution = ResolutionScope.TEST, + requiresProject = true) public class GUnitExecuteMojo extends AbstractMojo { public static final String ANTLR_GROUP_ID = "org.antlr"; public static final String ANTLR_ARTIFACT_NAME = "antlr"; @@ -55,60 +59,48 @@ public class GUnitExecuteMojo extends AbstractMojo { /** * INTERNAL : The Maven Project to which we are attached - * - * @parameter expression="${project}" - * @required */ + @Parameter(defaultValue = "${project}", required = true) private MavenProject project; /** * INTERNAL : The artifacts associated to the dependencies defined as part * of our configuration within the project to which we are being attached. - * - * @parameter expression="${plugin.artifacts}" - * @required - * @readonly */ + @Parameter(defaultValue = "${plugin.artifacts}", required = true, readonly = true) private List pluginArtifacts; /** * Specifies the directory containing the gUnit testing files. - * - * @parameter expression="${basedir}/src/test/gunit" - * @required */ + @Parameter(defaultValue = "${basedir}/src/test/gunit", required = true) private File sourceDirectory; /** * A set of patterns for matching files from the sourceDirectory that * should be included as gUnit source files. - * - * @parameter */ + @Parameter private Set includes; /** * A set of exclude patterns. - * - * @parameter */ + @Parameter private Set excludes; /** * Specifies directory to which gUnit reports should get written. - * - * @parameter expression="${basedir}/target/gunit-report" - * @required */ - private File reportDirectory; + @Parameter(defaultValue = "${basedir}/target/gunit-report", required = true) + private File reportDirectory; /** * Should gUnit functionality be completely by-passed? *

* By default we skip gUnit tests if the user requested that all testing be skipped using 'maven.test.skip'

- * - * @parameter expression="${maven.test.skip}" */ + @Parameter(defaultValue = "${maven.test.skip}") private boolean skip; public Set getIncludePatterns() { diff --git a/pom.xml b/pom.xml index 73f48fb10..8b9f1a734 100644 --- a/pom.xml +++ b/pom.xml @@ -7,6 +7,10 @@ 9 + + 3.8 + + 4.0.0 org.antlr antlr-master @@ -52,8 +56,6 @@ --> UTF-8 - ${java5.home}/lib/rt.jar - ${java6.home}/lib/rt.jar ${bootclasspath.java5} ${bootclasspath.java6} 1.8 @@ -62,6 +64,7 @@ 2.7.7 3.2.1 3.3.1 + 3.8.4