| 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 |
<groupId>org.antlr</groupId> |
| 5 |
<artifactId>antlr-master</artifactId> |
| 6 |
<version>3.x</version> |
| 7 |
<packaging>pom</packaging> |
| 8 |
<properties> |
| 9 |
<debian.hasPackageVersion/> |
| 10 |
<debian.originalVersion>3.2</debian.originalVersion> |
| 11 |
<debian.package>libantlr3-java</debian.package> |
| 12 |
<debian.mavenRules>org.antlr antlr-master * s/3\..*/3.x/ *</debian.mavenRules> |
| 13 |
</properties> |
| 14 |
|
| 15 |
<name>ANTLR Master build control POM</name> |
| 16 |
<url>http://maven.apache.org</url> |
| 17 |
<!-- |
| 18 |
What version of ANTLR are we building? This sets the |
| 19 |
the version number for all other things that are built |
| 20 |
as part of an ANTLR release, unless they override or |
| 21 |
ignore it. We do this via a properites file for this |
| 22 |
pom. |
| 23 |
--> |
| 24 |
<!-- |
| 25 |
This is the master pom for building the ANTLR |
| 26 |
toolset and runtime (Java) at the specific level |
| 27 |
defined above. Hence we specify here the modules that |
| 28 |
this pom will build when we build this pom |
| 29 |
--> |
| 30 |
<modules> |
| 31 |
<module>runtime/Java</module> |
| 32 |
<module>tool</module> |
| 33 |
<module>antlr3-maven-plugin</module> |
| 34 |
</modules> |
| 35 |
<!-- |
| 36 |
|
| 37 |
Define where the ANTLR releated jars are deployed both for |
| 38 |
the main ANTLR repository, which syncs with the maven main |
| 39 |
repository, and the snapshot repository, which can be |
| 40 |
used by developers that need the latest development version of |
| 41 |
something, but is used here to show maven where to deploy |
| 42 |
snapshots and releases. |
| 43 |
--> |
| 44 |
<distributionManagement> |
| 45 |
<repository> |
| 46 |
<id>antlr-repo</id> |
| 47 |
<name>ANTLR Testing repository</name> |
| 48 |
<url>scpexe://antlr.org/home/mavensync/antlr-repo</url> |
| 49 |
</repository> |
| 50 |
<snapshotRepository> |
| 51 |
<id>antlr-snapshot</id> |
| 52 |
<name>ANTLR Testing Snapshot Repository</name> |
| 53 |
<url>scpexe://antlr.org/home/mavensync/antlr-snapshot</url> |
| 54 |
</snapshotRepository> |
| 55 |
</distributionManagement> |
| 56 |
<!-- |
| 57 |
|
| 58 |
Inform Maven of the ANTLR snapshot repository, which it will |
| 59 |
need to consult to get the latest snapshot build of the runtime |
| 60 |
if it was not built and installed locally. |
| 61 |
--> |
| 62 |
<repositories> |
| 63 |
<!-- |
| 64 |
This is the ANTLR repository. |
| 65 |
--> |
| 66 |
<repository> |
| 67 |
<id>antlr-snapshot</id> |
| 68 |
<name>ANTLR Testing Snapshot Repository</name> |
| 69 |
<url>http://antlr.org/antlr-snapshot</url> |
| 70 |
<snapshots> |
| 71 |
<enabled>true</enabled> |
| 72 |
<updatePolicy>always</updatePolicy> |
| 73 |
</snapshots> |
| 74 |
</repository> |
| 75 |
</repositories> |
| 76 |
<!-- |
| 77 |
|
| 78 |
Tell Maven which other artifacts we need in order to |
| 79 |
build, run and test the ANTLR jars. |
| 80 |
This is the master pom, and so it only contains those |
| 81 |
dependencies that are common to all the modules below |
| 82 |
or are just included for test |
| 83 |
--> |
| 84 |
<dependencyManagement> |
| 85 |
<dependencies> |
| 86 |
<dependency> |
| 87 |
<groupId>junit</groupId> |
| 88 |
<artifactId>junit</artifactId> |
| 89 |
<version>4.x</version> |
| 90 |
<scope>test</scope> |
| 91 |
</dependency> |
| 92 |
<dependency> |
| 93 |
<groupId>antlr</groupId> |
| 94 |
<artifactId>antlr</artifactId> |
| 95 |
<version>2.x</version> |
| 96 |
<scope>compile</scope> |
| 97 |
</dependency> |
| 98 |
<dependency> |
| 99 |
<groupId>org.antlr</groupId> |
| 100 |
<artifactId>stringtemplate</artifactId> |
| 101 |
<version>3.x</version> |
| 102 |
<scope>compile</scope> |
| 103 |
</dependency> |
| 104 |
</dependencies> |
| 105 |
</dependencyManagement> |
| 106 |
<build> |
| 107 |
<defaultGoal>install</defaultGoal> |
| 108 |
<!-- |
| 109 |
The following filter definition means that both the master |
| 110 |
project and the sub projects will read in a file in the same |
| 111 |
directory as the pom.xml is located and set any properties |
| 112 |
that are defined there in the standard x=y format. These |
| 113 |
properties can then be referenced via ${x} in any resource |
| 114 |
file specified in any pom. So, there is a master antlr.config |
| 115 |
file in the same location as this pom.xml file and here you can |
| 116 |
define anything that is relevant to all the modules that we |
| 117 |
build here. However each module also has an antlr.config file |
| 118 |
where you can override property values from the master file or |
| 119 |
define things that are only relevant to that module. |
| 120 |
--> |
| 121 |
<filters> |
| 122 |
<filter>antlr.config</filter> |
| 123 |
</filters> |
| 124 |
<resources> |
| 125 |
<resource> |
| 126 |
<directory>src/main/resources</directory> |
| 127 |
<filtering>true</filtering> |
| 128 |
</resource> |
| 129 |
</resources> |
| 130 |
<plugins> |
| 131 |
<plugin> |
| 132 |
<artifactId>maven-compiler-plugin</artifactId> |
| 133 |
<configuration> |
| 134 |
<source>1.5</source> |
| 135 |
<target>jsr14</target> |
| 136 |
<sourceDirectory>src</sourceDirectory> |
| 137 |
</configuration> |
| 138 |
</plugin> |
| 139 |
<plugin> |
| 140 |
<artifactId>maven-surefire-plugin</artifactId> |
| 141 |
</plugin> |
| 142 |
</plugins> |
| 143 |
<extensions> |
| 144 |
</extensions> |
| 145 |
</build> |
| 146 |
</project> |