summaryrefslogtreecommitdiff
path: root/runtime/Java/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/Java/pom.xml')
-rw-r--r--runtime/Java/pom.xml181
1 files changed, 118 insertions, 63 deletions
diff --git a/runtime/Java/pom.xml b/runtime/Java/pom.xml
index 9824ffd..29627bc 100644
--- a/runtime/Java/pom.xml
+++ b/runtime/Java/pom.xml
@@ -1,66 +1,121 @@
+<!--
+ ~ Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.
+ ~ Use of this file is governed by the BSD 3-clause license that
+ ~ can be found in the LICENSE.txt file in the project root.
+ -->
+
<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.4-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
- <artifactId>antlr4-runtime</artifactId>
- <name>ANTLR 4 Runtime</name>
- <description>The ANTLR 4 Runtime</description>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr4-master</artifactId>
+ <version>4.6</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+ <artifactId>antlr4-runtime</artifactId>
+ <name>ANTLR 4 Runtime</name>
+ <description>The ANTLR 4 Runtime</description>
+
+ <properties>
+ <!-- Assumes dot is in the system path, or specified for the build. -->
+ <dot.path>dot</dot.path>
+ </properties>
- <build>
- <sourceDirectory>src</sourceDirectory>
- <plugins>
- <plugin>
- <groupId>org.antlr</groupId>
- <artifactId>antlr4-maven-plugin</artifactId>
- <version>4.5</version>
- <executions>
- <execution>
- <id>antlr</id>
- <configuration>
- <sourceDirectory>src</sourceDirectory>
- </configuration>
- <goals>
- <goal>antlr4</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>2.5.4</version>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>org.antlr.antlr4-runtime-osgi</Bundle-SymbolicName>
- <Implementation-Title>ANTLR 4 Runtime</Implementation-Title>
- <Implementation-Vendor>ANTLR</Implementation-Vendor>
- <Implementation-Vendor-Id>org.antlr</Implementation-Vendor-Id>
- <Implementation-Version>${project.version}</Implementation-Version>
- </instructions>
- </configuration>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <archive>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <plugins>
+ <plugin> <!-- create src jar -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin> <!-- run dot on the images used by PredictionContext.java -->
+ <groupId>us.bryon</groupId>
+ <artifactId>graphviz-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <phase>deploy</phase>
+ <goals>
+ <goal>dot</goal>
+ </goals>
+ <configuration>
+ <dot>${dot.path}</dot>
+ <destdir>${project.build.directory}/apidocs</destdir>
+ <output>svg</output>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin> <!-- create javadoc jar -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.10.4</version>
+ <configuration>
+ <javadocVersion>1.7</javadocVersion>
+ <failOnError>false</failOnError>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>javadoc</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr4-maven-plugin</artifactId>
+ <version>4.5.3</version> <!-- use older version to process XPathLexer.g4, avoiding cyclic build dependency -->
+ <executions>
+ <execution>
+ <id>antlr</id>
+ <configuration>
+ <sourceDirectory>src</sourceDirectory>
+ </configuration>
+ <goals>
+ <goal>antlr4</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.5.4</version>
+ <executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.antlr.antlr4-runtime</Bundle-SymbolicName>
+ </instructions>
+ </configuration>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>3.0.0</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>