• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2
3 [The "BSD license"]
4
5 ANTLR        - Copyright (c) 2005-2010 Terence Parr
6 Maven Plugin - Copyright (c) 2009      Jim Idle
7
8 All rights reserved.
9
10 Redistribution and use in source and binary forms, with or without
11 modification, are permitted provided that the following conditions
12 are met:
13 1. Redistributions of source code must retain the above copyright
14    notice, this list of conditions and the following disclaimer.
15 2. Redistributions in binary form must reproduce the above copyright
16    notice, this list of conditions and the following disclaimer in the
17    documentation and/or other materials provided with the distribution.
18 3. The name of the author may not be used to endorse or promote products
19    derived from this software without specific prior written permission.
20
21 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32  -->
33
34
35
36<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">
37
38    <!-- Maven model we are inheriting from
39      -->
40    <modelVersion>4.0.0</modelVersion>
41
42    <!--
43
44     Now that the ANTLR project has adopted Maven with a vengence,
45     all ANTLR tools will be grouped under org.antlr and will be
46     controlled by a project member.
47     -->
48    <groupId>org.antlr</groupId>
49
50
51    <!--
52
53     This is the ANTLR plugin for ANTLR version 3.1.3 and above. It might
54     have been best to change the name of the plugin as the 3.1.2 plugins
55     behave a little differently, however for the sake of one transitional
56     phase to a much better plugin, it was decided that the name should
57     remain the same.
58      -->
59    <artifactId>antlr3-maven-plugin</artifactId>
60    <packaging>maven-plugin</packaging>
61
62    <parent>
63        <groupId>org.antlr</groupId>
64        <artifactId>antlr-master</artifactId>
65        <version>3.5.2</version>
66    </parent>
67
68    <name>ANTLR 3 Maven plugin</name>
69    <prerequisites>
70        <maven>2.0</maven>
71    </prerequisites>
72
73    <!--
74     Where does our actual project live on the interwebs.
75      -->
76    <url>http://antlr.org</url>
77
78    <properties>
79        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
80    </properties>
81
82    <description>
83
84This is the brand new, re-written from scratch plugin for ANTLR v3.
85
86Previous valiant efforts all suffered from being unable to modify the ANTLR Tool
87itself to provide support not just for Maven oriented things but any other tool
88that might wish to invoke ANTLR without resorting to the command line interface.
89
90Rather than try to shoe-horn new code into the existing Mojo (in fact I think that
91by incorporating a patch supplied by someone I ended up with tow versions of the
92Mojo, I elected to rewrite everything from scratch, including the documentation, so
93that we might end up with a perfect Mojo that can do everything that ANTLR v3 supports
94such as imported grammar processing, proper support for library directories and
95locating token files from generated sources, and so on.
96
97In the end I decided to also change the the ANTLR Tool.java code so that it
98would be the provider of all the things that a build tool needs, rather than
99delegating things to 5 different tools. So, things like dependencies, dependency
100sorting, option tracking, generating sources and so on are all folded back
101in to ANTLR's Tool.java code, where they belong, and they now provide a
102public interface to anyone that might want to interface with them.
103
104One other goal of this rewrite was to completely document the whole thing
105to death. Hence even this pom has more comments than funcitonal elements,
106in case I get run over by a bus or fall off a cliff while skiing.
107
108Jim Idle - March 2009
109
110    </description>
111
112    <developers>
113
114        <developer>
115            <name>Jim Idle</name>
116            <url>http://www.temporal-wave.com</url>
117            <roles>
118                <role>Originator, version 3.1.3</role>
119            </roles>
120        </developer>
121
122        <developer>
123            <name>Terence Parr</name>
124            <url>http://antlr.org/wiki/display/~admin/Home</url>
125            <roles>
126                <role>Project lead - ANTLR</role>
127            </roles>
128        </developer>
129
130        <developer>
131            <name>David Holroyd</name>
132            <url>http://david.holroyd.me.uk/</url>
133            <roles>
134                <role>Originator - prior version</role>
135            </roles>
136        </developer>
137
138        <developer>
139            <name>Kenny MacDermid</name>
140            <url>mailto:kenny "at" kmdconsulting.ca</url>
141            <roles>
142                <role>Contributor - prior versions</role>
143            </roles>
144        </developer>
145
146    </developers>
147
148    <!-- ============================================================================= -->
149
150    <!--
151
152     What are we depedent on for the Mojos to execute? We need the
153     plugin API itself and of course we need the ANTLR Tool and runtime
154     and any of their dependencies, which we inherit. The Tool itself provides
155     us with all the dependencies, so we need only name it here.
156      -->
157    <dependencies>
158
159        <!--
160          The things we need to build the target language recognizer
161          -->
162        <dependency>
163            <groupId>org.apache.maven</groupId>
164            <artifactId>maven-plugin-api</artifactId>
165            <version>2.0</version>
166            <scope>compile</scope>
167        </dependency>
168
169        <dependency>
170            <groupId>org.apache.maven</groupId>
171            <artifactId>maven-project</artifactId>
172            <version>2.0</version>
173        </dependency>
174
175        <dependency>
176            <groupId>org.codehaus.plexus</groupId>
177            <artifactId>plexus-compiler-api</artifactId>
178            <version>2.0</version>
179        </dependency>
180
181        <!--
182         The version of ANTLR tool that this version of the plugin controls.
183         We have decided that this should be in lockstep with ANTLR itself, other
184         than -1 -2 -3 etc patch releases.
185          -->
186        <dependency>
187            <groupId>org.antlr</groupId>
188            <artifactId>antlr</artifactId>
189            <version>${project.version}</version>
190        </dependency>
191
192        <dependency>
193            <groupId>org.apache.maven.shared</groupId>
194            <artifactId>maven-plugin-testing-harness</artifactId>
195            <version>1.1</version>
196            <scope>test</scope>
197        </dependency>
198
199    </dependencies>
200
201    <build>
202
203        <plugins>
204
205            <plugin>
206                <groupId>org.apache.maven.plugins</groupId>
207                <artifactId>maven-site-plugin</artifactId>
208                <version>3.3</version>
209            </plugin>
210
211            <plugin>
212                <groupId>org.apache.maven.plugins</groupId>
213                <artifactId>maven-project-info-reports-plugin</artifactId>
214                <version>2.7</version>
215                <configuration>
216                    <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
217                </configuration>
218            </plugin>
219
220        </plugins>
221
222    </build>
223
224    <reporting>
225        <plugins>
226            <plugin>
227                <groupId>org.apache.maven.plugins</groupId>
228                <artifactId>maven-plugin-plugin</artifactId>
229                <version>3.2</version>
230            </plugin>
231        </plugins>
232    </reporting>
233</project>
234