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.3</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 <plugins> 61 <plugin> 62 <groupId>org.apache.maven.plugins</groupId> 63 <artifactId>maven-shade-plugin</artifactId> 64 <version>2.0</version> 65 <configuration> 66 <minimizeJar>false</minimizeJar> 67 <createSourcesJar>true</createSourcesJar> 68 <filters> 69 <filter> 70 <artifact>org.antlr:antlr-complete</artifact> 71 <includes> 72 <include>META-INF/**</include> 73 </includes> 74 </filter> 75 </filters> 76 <transformers> 77 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 78 <mainClass>org.antlr.Tool</mainClass> 79 </transformer> 80 </transformers> 81 </configuration> 82 <executions> 83 <execution> 84 <id>complete-no-st3</id> 85 <phase>package</phase> 86 <goals> 87 <goal>shade</goal> 88 </goals> 89 <configuration> 90 <createDependencyReducedPom>false</createDependencyReducedPom> 91 <shadedArtifactAttached>true</shadedArtifactAttached> 92 <shadedClassifierName>no-st3</shadedClassifierName> 93 <filters> 94 <filter> 95 <artifact>antlr:antlr</artifact> 96 <excludes> 97 <exclude>**</exclude> 98 </excludes> 99 </filter> 100 <filter> 101 <artifact>org.antlr:stringtemplate</artifact> 102 <excludes> 103 <exclude>**</exclude> 104 </excludes> 105 </filter> 106 </filters> 107 </configuration> 108 </execution> 109 110 <execution> 111 <id>complete</id> 112 <phase>package</phase> 113 <goals> 114 <goal>shade</goal> 115 </goals> 116 <configuration> 117 <createDependencyReducedPom>false</createDependencyReducedPom> 118 <shadedArtifactAttached>false</shadedArtifactAttached> 119 </configuration> 120 </execution> 121 </executions> 122 </plugin> 123 124 <plugin> <!-- create javadoc jar --> 125 <groupId>org.apache.maven.plugins</groupId> 126 <artifactId>maven-javadoc-plugin</artifactId> 127 <version>3.3.1</version> 128 <configuration> 129 <javadocVersion>1.8</javadocVersion> 130 <failOnError>false</failOnError> 131 </configuration> 132 <executions> 133 <execution> 134 <phase>deploy</phase> 135 <goals> 136 <goal>javadoc</goal> 137 </goals> 138 </execution> 139 </executions> 140 </plugin> 141 </plugins> 142 143 </build> 144 145</project> 146