|
1 |
| -<project> |
2 |
| - <modelVersion>4.0.0</modelVersion> |
3 |
| - <groupId>antlr</groupId> |
4 |
| - <artifactId>antlrall</artifactId> |
5 |
| - <version>2.7.2</version> |
| 1 | +<!-- |
| 2 | + ~ Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. |
| 3 | + ~ Use of this file is governed by the BSD 3-clause license that |
| 4 | + ~ can be found in the LICENSE.txt file in the project root. |
| 5 | + --> |
| 6 | + |
| 7 | +<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"> |
| 8 | + <modelVersion>4.0.0</modelVersion> |
| 9 | + <parent> |
| 10 | + <groupId>org.antlr</groupId> |
| 11 | + <artifactId>antlr4-master</artifactId> |
| 12 | + <version>4.13.2</version> |
| 13 | + </parent> |
| 14 | + <artifactId>antlr4</artifactId> |
| 15 | + <name>ANTLR 4 Tool</name> |
| 16 | + <url>http://www.antlr.org</url> |
| 17 | + <description>The ANTLR 4 grammar compiler.</description> |
| 18 | + |
| 19 | + <prerequisites> |
| 20 | + <maven>3.8</maven> |
| 21 | + </prerequisites> |
| 22 | + |
| 23 | + <dependencies> |
| 24 | + <dependency> |
| 25 | + <groupId>org.antlr</groupId> |
| 26 | + <artifactId>antlr4-runtime</artifactId> |
| 27 | + <version>${project.version}</version> |
| 28 | + </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>org.antlr</groupId> |
| 31 | + <artifactId>antlr-runtime</artifactId> |
| 32 | + <version>3.5.3</version> |
| 33 | + </dependency> |
| 34 | + <dependency> |
| 35 | + <groupId>org.antlr</groupId> |
| 36 | + <artifactId>ST4</artifactId> |
| 37 | + <version>4.3.4</version> |
| 38 | + </dependency> |
| 39 | + <dependency> |
| 40 | + <groupId>org.abego.treelayout</groupId> |
| 41 | + <artifactId>org.abego.treelayout.core</artifactId> |
| 42 | + <version>1.0.3</version> |
| 43 | + </dependency> |
| 44 | + <dependency> |
| 45 | + <groupId>com.ibm.icu</groupId> |
| 46 | + <artifactId>icu4j</artifactId> |
| 47 | + <version>72.1</version> |
| 48 | + </dependency> |
| 49 | + </dependencies> |
| 50 | + <build> |
| 51 | + <sourceDirectory>src</sourceDirectory> |
| 52 | + <testResources> |
| 53 | + <testResource> |
| 54 | + <directory>test</directory> |
| 55 | + </testResource> |
| 56 | + </testResources> |
| 57 | + <plugins> |
| 58 | + <plugin> <!-- create src jar --> |
| 59 | + <groupId>org.apache.maven.plugins</groupId> |
| 60 | + <artifactId>maven-source-plugin</artifactId> |
| 61 | + <version>3.2.1</version> |
| 62 | + <executions> |
| 63 | + <execution> |
| 64 | + <goals> |
| 65 | + <goal>jar</goal> |
| 66 | + </goals> |
| 67 | + </execution> |
| 68 | + </executions> |
| 69 | + </plugin> |
| 70 | + <plugin> <!-- create javadoc jar --> |
| 71 | + <groupId>org.apache.maven.plugins</groupId> |
| 72 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 73 | + <version>3.3.1</version> |
| 74 | + <configuration> |
| 75 | + <javadocVersion>11</javadocVersion> |
| 76 | + <failOnError>false</failOnError> |
| 77 | + </configuration> |
| 78 | + <executions> |
| 79 | + <execution> |
| 80 | + <phase>deploy</phase> |
| 81 | + <goals> |
| 82 | + <goal>javadoc</goal> |
| 83 | + </goals> |
| 84 | + </execution> |
| 85 | + </executions> |
| 86 | + </plugin> |
| 87 | + <plugin> <!-- include code-generated sources --> |
| 88 | + <groupId>org.codehaus.mojo</groupId> |
| 89 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 90 | + <version>3.2.0</version> |
| 91 | + <executions> |
| 92 | + <execution> |
| 93 | + <phase>generate-sources</phase> |
| 94 | + <goals> |
| 95 | + <goal>add-source</goal> |
| 96 | + </goals> |
| 97 | + <configuration> |
| 98 | + <sources> |
| 99 | + <source>${project.build.directory}/generated-sources/antlr4-tool-codegen</source> |
| 100 | + </sources> |
| 101 | + </configuration> |
| 102 | + </execution> |
| 103 | + </executions> |
| 104 | + </plugin> |
| 105 | + <plugin> <!-- this makes a fat jar with all dependencies --> |
| 106 | + <groupId>org.apache.maven.plugins</groupId> |
| 107 | + <artifactId>maven-shade-plugin</artifactId> |
| 108 | + <version>3.2.4</version> |
| 109 | + <executions> |
| 110 | + <execution> |
| 111 | + <phase>package</phase> |
| 112 | + <configuration> |
| 113 | + <minimizeJar>false</minimizeJar> |
| 114 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 115 | + <shadedArtifactAttached>true</shadedArtifactAttached> |
| 116 | + <shadedClassifierName>complete</shadedClassifierName> |
| 117 | + <artifactSet> |
| 118 | + <excludes> |
| 119 | + <exclude>com.ibm.icu:*</exclude> |
| 120 | + </excludes> |
| 121 | + </artifactSet> |
| 122 | + </configuration> |
| 123 | + <goals> |
| 124 | + <goal>shade</goal> |
| 125 | + </goals> |
| 126 | + </execution> |
| 127 | + </executions> |
| 128 | + </plugin> |
| 129 | + <!-- can't get this to add bundle items <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-tool</Bundle-SymbolicName> </instructions> </configuration> <goals> <goal>manifest</goal> </goals> </execution> </executions> </plugin> --> |
| 130 | + <plugin> <!-- this just jars up tool stuff and sets main class --> |
| 131 | + <artifactId>maven-jar-plugin</artifactId> |
| 132 | + <version>3.2.0</version> |
| 133 | + <configuration> |
| 134 | + <archive> |
| 135 | + <manifest> |
| 136 | + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 137 | + <mainClass>org.antlr.v4.Tool</mainClass> |
| 138 | + </manifest> |
| 139 | + </archive> |
| 140 | + </configuration> |
| 141 | + </plugin> |
| 142 | + <plugin> |
| 143 | + <groupId>org.antlr</groupId> |
| 144 | + <artifactId>antlr3-maven-plugin</artifactId> |
| 145 | + <version>3.5.3</version> |
| 146 | + <configuration> |
| 147 | + <sourceDirectory>src</sourceDirectory> |
| 148 | + <verbose>true</verbose> |
| 149 | + </configuration> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <goals> |
| 153 | + <goal>antlr</goal> |
| 154 | + </goals> |
| 155 | + </execution> |
| 156 | + </executions> |
| 157 | + </plugin> |
| 158 | + <plugin><!-- workaround for https://github.com/antlr/antlr3/pull/209 --> |
| 159 | + <groupId>com.google.code.maven-replacer-plugin</groupId> |
| 160 | + <artifactId>replacer</artifactId> |
| 161 | + <version>1.5.3</version> |
| 162 | + <executions> |
| 163 | + <execution> |
| 164 | + <id>fix-antlr3-RB</id> |
| 165 | + <phase>process-sources</phase> |
| 166 | + <goals> |
| 167 | + <goal>replace</goal> |
| 168 | + </goals> |
| 169 | + </execution> |
| 170 | + </executions> |
| 171 | + <configuration> |
| 172 | + <basedir>${project.build.directory}/generated-sources/antlr3/org/antlr/v4</basedir> |
| 173 | + <includes> |
| 174 | + <include>parse/*.java</include> |
| 175 | + <include>codegen/*.java</include> |
| 176 | + </includes> |
| 177 | + <replacements> |
| 178 | + <replacement> |
| 179 | + <token>(// .ANTLR .+) ....-..-.. ..:..:..</token> |
| 180 | + <value>$1</value> |
| 181 | + </replacement> |
| 182 | + <replacement> |
| 183 | + <token>(// elements: ).*</token> |
| 184 | + <value>$1</value> |
| 185 | + </replacement> |
| 186 | + </replacements> |
| 187 | + <regex>true</regex> |
| 188 | + </configuration> |
| 189 | + </plugin> |
| 190 | + <plugin> |
| 191 | + <groupId>com.webguys</groupId> |
| 192 | + <artifactId>string-template-maven-plugin</artifactId> |
| 193 | + <version>1.1</version> |
| 194 | + <!-- this nonsense is for some reason needed to make this plugin work with maven 3 --> |
| 195 | + <dependencies> |
| 196 | + <dependency> |
| 197 | + <groupId>org.twdata.maven</groupId> |
| 198 | + <artifactId>mojo-executor</artifactId> |
| 199 | + <version>2.1.0</version> |
| 200 | + </dependency> |
| 201 | + </dependencies> |
| 202 | + <configuration> |
| 203 | + <templates> |
| 204 | + <template> |
| 205 | + <directory>${basedir}/resources/org/antlr/v4/tool/templates</directory> |
| 206 | + <name>unicodedata</name> |
| 207 | + <target>${basedir}/target/generated-sources/tool/src/org/antlr/v4/unicode/UnicodeData.java</target> |
| 208 | + <controller> |
| 209 | + <className>org.antlr.v4.unicode.UnicodeDataTemplateController</className> |
| 210 | + <sourceVersion>11</sourceVersion> |
| 211 | + <targetVersion>11</targetVersion> |
| 212 | + <method>getProperties</method> |
| 213 | + </controller> |
| 214 | + </template> |
| 215 | + </templates> |
| 216 | + </configuration> |
| 217 | + <executions> |
| 218 | + <execution> |
| 219 | + <phase>generate-sources</phase> |
| 220 | + <goals> |
| 221 | + <goal>render</goal> |
| 222 | + </goals> |
| 223 | + </execution> |
| 224 | + </executions> |
| 225 | + </plugin> |
| 226 | + </plugins> |
| 227 | + </build> |
6 | 228 | </project>
|
0 commit comments