1 2 <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"> 3 <modelVersion>4.0.0</modelVersion> 4 5 <parent> 6 <groupId>com.tunnelvisionlabs</groupId> 7 <artifactId>antlr4-master</artifactId> 8 <version>4.5</version> 9 </parent> 10 11 <artifactId>antlr4</artifactId> 12 13 <name>ANTLR 4 Tool</name> 14 <description>The ANTLR 4 grammar compiler.</description> 15 16 <dependencies> 17 <dependency> 18 <groupId>junit</groupId> 19 <artifactId>junit</artifactId> 20 <version>4.11</version> 21 <scope>test</scope> 22 </dependency> 23 <dependency> 24 <groupId>com.tunnelvisionlabs</groupId> 25 <artifactId>antlr4-runtime</artifactId> 26 <version>${project.version}</version> 27 <scope>compile</scope> 28 </dependency> 29 <dependency> 30 <groupId>com.tunnelvisionlabs</groupId> 31 <artifactId>antlr4-annotations</artifactId> 32 <version>${project.version}</version> 33 <scope>compile</scope> 34 </dependency> 35 <dependency> 36 <groupId>org.antlr</groupId> 37 <artifactId>antlr-runtime</artifactId> 38 <version>3.5.2</version> 39 <scope>compile</scope> 40 </dependency> 41 <dependency> 42 <groupId>org.antlr</groupId> 43 <artifactId>ST4</artifactId> 44 <version>4.0.8</version> 45 <scope>compile</scope> 46 </dependency> 47 </dependencies> 48 49 <profiles> 50 <profile> 51 <id>sonatype-oss-release</id> 52 <build> 53 <plugins> 54 <plugin> 55 <groupId>org.apache.maven.plugins</groupId> 56 <artifactId>maven-javadoc-plugin</artifactId> 57 <configuration> 58 <includeDependencySources>true</includeDependencySources> 59 <dependencySourceIncludes> 60 <dependencySourceInclude>com.tunnelvisionlabs:antlr4-*</dependencySourceInclude> 61 </dependencySourceIncludes> 62 </configuration> 63 </plugin> 64 65 <plugin> 66 <groupId>org.apache.maven.plugins</groupId> 67 <artifactId>maven-shade-plugin</artifactId> 68 <version>2.2</version> 69 <inherited>false</inherited> 70 <executions> 71 <execution> 72 <phase>package</phase> 73 <goals> 74 <goal>shade</goal> 75 </goals> 76 <configuration> 77 <minimizeJar>true</minimizeJar> 78 <createDependencyReducedPom>false</createDependencyReducedPom> 79 <shadedArtifactAttached>true</shadedArtifactAttached> 80 <createSourcesJar>true</createSourcesJar> 81 <shadedClassifierName>complete</shadedClassifierName> 82 <filters> 83 <filter> 84 <artifact>com.tunnelvisionlabs:antlr4-runtime</artifact> 85 <includes> 86 <include>org/antlr/v4/runtime/**</include> 87 </includes> 88 </filter> 89 <filter> 90 <artifact>com.tunnelvisionlabs:antlr4-annotations</artifact> 91 <includes> 92 <include>org/antlr/v4/runtime/**</include> 93 </includes> 94 </filter> 95 </filters> 96 <transformers> 97 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 98 <mainClass>org.antlr.v4.Tool</mainClass> 99 </transformer> 100 </transformers> 101 </configuration> 102 </execution> 103 </executions> 104 </plugin> 105 </plugins> 106 </build> 107 </profile> 108 </profiles> 109 110 <build> 111 112 <sourceDirectory>src</sourceDirectory> 113 <resources> 114 <resource> 115 <directory>resources</directory> 116 </resource> 117 </resources> 118 119 <testSourceDirectory>test</testSourceDirectory> 120 <testResources> 121 <testResource> 122 <directory>test</directory> 123 </testResource> 124 </testResources> 125 126 <plugins> 127 128 <plugin> 129 <groupId>org.antlr</groupId> 130 <artifactId>antlr3-maven-plugin</artifactId> 131 <version>3.5.2</version> 132 <configuration> 133 <sourceDirectory>src</sourceDirectory> 134 <verbose>true</verbose> 135 </configuration> 136 <executions> 137 <execution> 138 <goals> 139 <goal>antlr</goal> 140 </goals> 141 </execution> 142 </executions> 143 </plugin> 144 145 <plugin> 146 <groupId>org.apache.maven.plugins</groupId> 147 <artifactId>maven-jar-plugin</artifactId> 148 <executions> 149 <execution> 150 <goals> 151 <goal>test-jar</goal> 152 </goals> 153 </execution> 154 </executions> 155 </plugin> 156 </plugins> 157 </build> 158 159 </project> 160