1<?xml version="1.0" encoding="UTF-8"?> 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/maven-v4_0_0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 <artifactId>antlr-complete</artifactId> 5 <packaging>jar</packaging> 6 7 <name>ANTLR 3 Complete</name> 8 <description>Complete distribution for ANTLR 3</description> 9 10 <!-- 11 12 Inherit from the ANTLR master pom, which tells us what 13 version we are and allows us to inherit dependencies 14 and so on. 15 16 --> 17 <parent> 18 <groupId>org.antlr</groupId> 19 <artifactId>antlr-master</artifactId> 20 <version>3.5.2</version> 21 </parent> 22 23 <url>http://antlr.org/</url> 24 25 <!-- 26 The complete distribution includes the following modules and their dependencies: 27 ANTLR 3 Tool 28 ANTLR 3 Runtime 29 gUnit for ANTLR 3 30 StringTemplate 4 (dependency of code generator in the ANTLR 3 Tool) 31 StringTemplate 3 (dependency of grammars with output=template) 32 ANTLR 2.7.7 (dependency of template parser in StringTemplate 3) 33 --> 34 <dependencies> 35 36 <dependency> 37 <groupId>org.antlr</groupId> 38 <artifactId>antlr</artifactId> 39 <version>${project.version}</version> 40 <scope>compile</scope> 41 </dependency> 42 43 <dependency> 44 <groupId>org.antlr</groupId> 45 <artifactId>antlr-runtime</artifactId> 46 <version>${project.version}</version> 47 <scope>compile</scope> 48 </dependency> 49 50 <dependency> 51 <groupId>org.antlr</groupId> 52 <artifactId>gunit</artifactId> 53 <version>${project.version}</version> 54 <scope>compile</scope> 55 </dependency> 56 57 </dependencies> 58 59 <build> 60 61 <plugins> 62 63 <plugin> 64 <groupId>org.apache.maven.plugins</groupId> 65 <artifactId>maven-shade-plugin</artifactId> 66 <version>2.0</version> 67 <configuration> 68 <minimizeJar>false</minimizeJar> 69 <createSourcesJar>true</createSourcesJar> 70 <filters> 71 <filter> 72 <artifact>org.antlr:antlr-complete</artifact> 73 <includes> 74 <include>META-INF/**</include> 75 </includes> 76 </filter> 77 </filters> 78 <transformers> 79 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 80 <mainClass>org.antlr.Tool</mainClass> 81 </transformer> 82 </transformers> 83 </configuration> 84 <executions> 85 <execution> 86 <id>complete-no-st3</id> 87 <phase>package</phase> 88 <goals> 89 <goal>shade</goal> 90 </goals> 91 <configuration> 92 <createDependencyReducedPom>false</createDependencyReducedPom> 93 <shadedArtifactAttached>true</shadedArtifactAttached> 94 <shadedClassifierName>no-st3</shadedClassifierName> 95 <filters> 96 <filter> 97 <artifact>antlr:antlr</artifact> 98 <excludes> 99 <exclude>**</exclude> 100 </excludes> 101 </filter> 102 <filter> 103 <artifact>org.antlr:stringtemplate</artifact> 104 <excludes> 105 <exclude>**</exclude> 106 </excludes> 107 </filter> 108 </filters> 109 </configuration> 110 </execution> 111 112 <execution> 113 <id>complete</id> 114 <phase>package</phase> 115 <goals> 116 <goal>shade</goal> 117 </goals> 118 <configuration> 119 <createDependencyReducedPom>false</createDependencyReducedPom> 120 <shadedArtifactAttached>false</shadedArtifactAttached> 121 </configuration> 122 </execution> 123 </executions> 124 </plugin> 125 126 <plugin> 127 <groupId>org.apache.maven.plugins</groupId> 128 <artifactId>maven-javadoc-plugin</artifactId> 129 <configuration> 130 <includeDependencySources>true</includeDependencySources> 131 </configuration> 132 </plugin> 133 </plugins> 134 135 </build> 136 137</project> 138