Add Eric's pom for mvn plugin.

This commit is contained in:
Terence Parr 2015-01-12 16:50:53 -08:00
parent 7b06987335
commit bfeef34748
1 changed files with 284 additions and 169 deletions

View File

@ -1,207 +1,286 @@
<!-- <!-- [The "BSD license"] ANTLR - Copyright (c) 2005-2010 Terence Parr Maven
Plugin - Copyright (c) 2009 Jim Idle All rights reserved. Redistribution
[The "BSD license"] and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met: 1. Redistributions of source
ANTLR - Copyright (c) 2005-2010 Terence Parr code must retain the above copyright notice, this list of conditions and
Maven Plugin - Copyright (c) 2009 Jim Idle the following disclaimer. 2. Redistributions in binary form must reproduce
the above copyright notice, this list of conditions and the following disclaimer
All rights reserved. in the documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
Redistribution and use in source and binary forms, with or without derived from this software without specific prior written permission. THIS
modification, are permitted provided that the following conditions SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
are met: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
1. Redistributions of source code must retain the above copyright AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
notice, this list of conditions and the following disclaimer. AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
2. Redistributions in binary form must reproduce the above copyright OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
notice, this list of conditions and the following disclaimer in the GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
documentation and/or other materials provided with the distribution. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3. The name of the author may not be used to endorse or promote products LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
derived from this software without specific prior written permission. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. -->
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<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"> <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> <modelVersion>4.0.0</modelVersion>
<parent> <!-- <parent>
<groupId>org.antlr</groupId> <groupId>org.sonatype.oss</groupId>
<artifactId>antlr4-master</artifactId> <artifactId>oss-parent</artifactId>
<version>4.4-SNAPSHOT</version> <version>7</version>
</parent> </parent>
-->
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId> <artifactId>antlr4-maven-plugin</artifactId>
<packaging>maven-plugin</packaging> <version>4.5</version>
<packaging>maven-plugin</packaging>
<name>ANTLR 4 Maven plugin</name> <name>ANTLR 4 Maven plugin</name>
<description>Maven plugin for ANTLR 4 grammars</description> <description>Maven plugin for ANTLR 4 grammars</description>
<url>http://www.antlr.org</url> <url>http://www.antlr.org</url>
<organization>
<name>ANTLR</name>
<url>http://www.antlr.org</url>
</organization>
<licenses>
<license>
<name>The BSD License</name>
<url>http://www.antlr.org/license.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Terence Parr</name>
<url>http://parrt.cs.usfca.edu</url>
<roles>
<role>Project lead - ANTLR</role>
</roles>
</developer>
<developer>
<name>Sam Harwell</name>
<url>http://tunnelvisionlabs.com</url>
<roles>
<role>Developer - Coauthor of tool, C# target</role>
</roles>
</developer>
<developer>
<name>Eric Vergnaud</name>
<roles>
<role>Developer - JavaScript, C#, Python 2, Python 3</role>
</roles>
</developer>
<developer>
<name>Jim Idle</name>
<email>jimi@idle.ws</email>
<url>http://www.linkedin.com/in/jimidle</url>
<roles>
<role>Developer - Maven Plugin</role>
</roles>
</developer>
</developers>
<mailingLists>
<mailingList>
<name>antlr-discussion</name>
<archive>https://groups.google.com/forum/?fromgroups#!forum/antlr-discussion</archive>
</mailingList>
</mailingLists>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/antlr/antlr4/issues</url>
</issueManagement>
<scm>
<url>https://github.com/antlr/antlr4/tree/master</url>
<connection>scm:git:git://github.com/antlr/antlr4.git</connection>
<developerConnection>scm:git:git@github.com:antlr/antlr4.git</developerConnection>
<tag>HEAD</tag>
</scm>
<prerequisites> <prerequisites>
<maven>3.0</maven> <maven>3.0</maven>
</prerequisites> </prerequisites>
<!-- Ancilliary information for completeness
-->
<inceptionYear>2009</inceptionYear>
<!-- ============================================================================= --> <!-- Ancilliary information for completeness -->
<inceptionYear>2009</inceptionYear>
<!-- <!-- ============================================================================= -->
What are we depedent on for the Mojos to execute? We need the <!-- What are we depedent on for the Mojos to execute? We need the plugin
plugin API itself and of course we need the ANTLR Tool and runtime API itself and of course we need the ANTLR Tool and runtime and any of their
and any of their dependencies, which we inherit. The Tool itself provides dependencies, which we inherit. The Tool itself provides us with all the
us with all the dependencies, so we need only name it here. dependencies, so we need only name it here. -->
--> <dependencies>
<dependencies>
<!-- <!-- The things we need to build the target language recognizer -->
The things we need to build the target language recognizer <dependency>
--> <groupId>org.apache.maven</groupId>
<dependency> <artifactId>maven-plugin-api</artifactId>
<groupId>org.apache.maven</groupId> <version>3.0.5</version>
<artifactId>maven-plugin-api</artifactId> <scope>compile</scope>
<version>3.0.5</version> </dependency>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId> <artifactId>maven-project</artifactId>
<version>2.2.1</version> <version>2.2.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.codehaus.plexus</groupId> <groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-api</artifactId> <artifactId>plexus-compiler-api</artifactId>
<version>2.2</version> <version>2.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.sonatype.plexus</groupId> <groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-build-api</artifactId> <artifactId>plexus-build-api</artifactId>
<version>0.0.7</version> <version>0.0.7</version>
</dependency> </dependency>
<!-- <!-- The version of ANTLR tool that this version of the plugin controls.
The version of ANTLR tool that this version of the plugin controls. We have decided that this should be in lockstep with ANTLR itself, other
We have decided that this should be in lockstep with ANTLR itself, other than -1 -2 -3 etc patch releases. -->
than -1 -2 -3 etc patch releases. <dependency>
--> <groupId>org.antlr</groupId>
<dependency> <artifactId>antlr4</artifactId>
<groupId>org.antlr</groupId> <version>${project.version}</version>
<artifactId>antlr4</artifactId> </dependency>
<version>${project.version}</version>
</dependency>
<!-- <!-- Testing requirements... -->
Testing requirements... <dependency>
-->
<dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.11</version> <version>4.11</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven.shared</groupId> <groupId>org.apache.maven.shared</groupId>
<artifactId>maven-plugin-testing-harness</artifactId> <artifactId>maven-plugin-testing-harness</artifactId>
<version>1.1</version> <version>1.1</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId> <artifactId>maven-plugin-annotations</artifactId>
<version>3.2</version> <version>3.2</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<defaultGoal>install</defaultGoal> <build>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<plugins> <defaultGoal>install</defaultGoal>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.3</version>
<configuration>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version> <version>3.1</version>
<configuration> <configuration>
<!-- see http://jira.codehaus.org/browse/MNG-5346 --> <showWarnings>true</showWarnings>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> <showDeprecation>true</showDeprecation>
</configuration> <source>1.6</source>
<executions> <target>1.6</target>
<execution> <compilerArgs>
<id>mojo-descriptor</id> <arg>-Xlint</arg>
<goals> <arg>-Xlint:-serial</arg>
<goal>descriptor</goal> </compilerArgs>
</goals>
</execution>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration> </configuration>
</plugin> </plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>3.3</version> <version>2.4</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<!-- override the version inherited from the parent -->
<version>2.2.1</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version> <!-- override the version inherited from the parent -->
<version>2.9.1</version>
<configuration> <configuration>
<quiet>true</quiet> <quiet>true</quiet>
</configuration> </configuration>
@ -209,9 +288,45 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>2.3</version> <!-- override the version inherited from the parent -->
<version>1.4</version>
</plugin> </plugin>
</plugins> <plugin>
</reporting> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<!-- override the version inherited from the parent -->
<version>2.4.2</version><!--$NO-MVN-MAN-VER$-->
<configuration>
<arguments>-Psonatype-oss-release ${release.arguments}</arguments>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration>
<quiet>true</quiet>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
</plugin>
</plugins>
</reporting>
</project> </project>