<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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.tunnelvisionlabs</groupId> <artifactId>antlr4-master</artifactId> <version>4.5</version> </parent> <artifactId>antlr4</artifactId> <name>ANTLR 4 Tool</name> <description>The ANTLR 4 grammar compiler.</description> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>com.tunnelvisionlabs</groupId> <artifactId>antlr4-runtime</artifactId> <version>${project.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.tunnelvisionlabs</groupId> <artifactId>antlr4-annotations</artifactId> <version>${project.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.antlr</groupId> <artifactId>antlr-runtime</artifactId> <version>3.5.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.antlr</groupId> <artifactId>ST4</artifactId> <version>4.0.8</version> <scope>compile</scope> </dependency> </dependencies> <profiles> <profile> <id>sonatype-oss-release</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <includeDependencySources>true</includeDependencySources> <dependencySourceIncludes> <dependencySourceInclude>com.tunnelvisionlabs:antlr4-*</dependencySourceInclude> </dependencySourceIncludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.2</version> <inherited>false</inherited> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <minimizeJar>true</minimizeJar> <createDependencyReducedPom>false</createDependencyReducedPom> <shadedArtifactAttached>true</shadedArtifactAttached> <createSourcesJar>true</createSourcesJar> <shadedClassifierName>complete</shadedClassifierName> <filters> <filter> <artifact>com.tunnelvisionlabs:antlr4-runtime</artifact> <includes> <include>org/antlr/v4/runtime/**</include> </includes> </filter> <filter> <artifact>com.tunnelvisionlabs:antlr4-annotations</artifact> <includes> <include>org/antlr/v4/runtime/**</include> </includes> </filter> </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>org.antlr.v4.Tool</mainClass> </transformer> </transformers> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <build> <sourceDirectory>src</sourceDirectory> <resources> <resource> <directory>resources</directory> </resource> </resources> <testSourceDirectory>test</testSourceDirectory> <testResources> <testResource> <directory>test</directory> </testResource> </testResources> <plugins> <plugin> <groupId>org.antlr</groupId> <artifactId>antlr3-maven-plugin</artifactId> <version>3.5.2</version> <configuration> <sourceDirectory>src</sourceDirectory> <verbose>true</verbose> </configuration> <executions> <execution> <goals> <goal>antlr</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>