Home | History | Annotate | Download | only in gunit-maven-plugin
      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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     35   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     36 
     37     <!--
     38         The ANTLR Maven artifacts are now released via the Sonotype OSS
     39         repository, which means that they are synced to Maven central 
     40         within a few minutes of hitting the release repo for Sonotype.
     41         To enable this, we inherit from the Sonotype provided parent
     42         pom. However, we must also configure our .m2/settings.xml to include
     43         the snapshot and staging server and the sonotype password. This 
     44         means that only ANTLR developers can released the artifacts, but
     45         anyone can build locally.
     46       -->
     47     <parent>
     48         <groupId>org.sonatype.oss</groupId>
     49         <artifactId>oss-parent</artifactId>
     50         <version>7</version>
     51     </parent> 
     52     
     53     <modelVersion>4.0.0</modelVersion>
     54 
     55     <prerequisites>
     56         <maven>2.0</maven>
     57     </prerequisites>
     58 
     59     <groupId>org.antlr</groupId>
     60     <artifactId>maven-gunit-plugin</artifactId>
     61     <packaging>maven-plugin</packaging>
     62     <version>3.4</version>
     63 
     64     <name>Maven plugin for gUnit ANTLR V3.4</name>
     65 	<description>A Maven plugin for incorporating gUnit testing of grammars</description>
     66     <url>http://antlr.org</url>
     67 
     68     <properties>
     69         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     70     </properties>
     71 
     72     <!-- Where do we track bugs for this project?
     73       -->
     74     <issueManagement>
     75         <system>JIRA</system>
     76         <url>http://antlr.org/jira/browse/ANTLR</url>
     77     </issueManagement>
     78 
     79     <!-- Location of the license description for this project
     80       -->
     81     <licenses>
     82         <license>
     83             <distribution>repo</distribution>
     84             <name>The BSD License</name>
     85             <url>http://www.antlr.org/LICENSE.txt </url>
     86         </license>
     87     </licenses>
     88 
     89     <profiles>
     90         <profile>
     91             <id>release-sign-artifacts</id>
     92             <activation>
     93                 <property>
     94                     <name>deploy</name>
     95                     <value>true</value>
     96                 </property>
     97             </activation>
     98             <build>
     99                 <plugins>
    100                     <plugin>
    101                         <groupId>org.apache.maven.plugins</groupId>
    102                         <artifactId>maven-gpg-plugin</artifactId>
    103                         <version>1.3</version>
    104                         <executions>
    105                             <execution>
    106                                 <id>sign-artifacts</id>
    107                                 <phase>verify</phase>
    108                                 <goals>
    109                                    <goal>sign</goal>
    110                                 </goals>
    111                             </execution>
    112                         </executions>
    113                     </plugin>
    114                 </plugins>
    115             </build>
    116         </profile>
    117     </profiles>
    118     
    119     <!-- Ancilliary information for completeness
    120       -->
    121     <inceptionYear>2009</inceptionYear>
    122 
    123     <mailingLists>
    124         <mailingList>
    125             <archive>http://antlr.markmail.org/</archive>
    126             <otherArchives>
    127                 <otherArchive>http://www.antlr.org/pipermail/antlr-interest/</otherArchive>
    128             </otherArchives>
    129             <name>ANTLR Users</name>
    130             <subscribe>http://www.antlr.org/mailman/listinfo/antlr-interest/</subscribe>
    131             <unsubscribe>http://www.antlr.org/mailman/options/antlr-interest/</unsubscribe>
    132             <post>antlr-interest (a] antlr.org</post>
    133         </mailingList>
    134     </mailingLists>
    135 
    136     <organization>
    137         <name>ANTLR.org</name>
    138         <url>http://www.antlr.org</url>
    139     </organization>
    140     <!-- ============================================================================= -->
    141 
    142     <!--
    143 
    144      What are we depedent on for the Mojos to execute? We need the
    145      plugin API itself and of course we need the ANTLR Tool and runtime
    146      and any of their dependencies, which we inherit. The Tool itself provides
    147      us with all the dependencies, so we need only name it here.
    148       -->
    149     <dependencies>
    150 
    151         <!--
    152           The things we need to build the target language recognizer
    153           -->
    154         <dependency>
    155             <groupId>org.apache.maven</groupId>
    156             <artifactId>maven-plugin-api</artifactId>
    157             <version>2.0</version>
    158             <scope>compile</scope>
    159         </dependency>
    160 
    161         <dependency>
    162             <groupId>org.apache.maven</groupId>
    163             <artifactId>maven-project</artifactId>
    164             <version>2.0</version>
    165         </dependency>
    166 
    167         <dependency>
    168             <groupId>org.codehaus.plexus</groupId>
    169             <artifactId>plexus-compiler-api</artifactId>
    170             <version>1.5.3</version>
    171         </dependency>
    172 
    173         <!--
    174          The version of ANTLR tool that this version of the plugin controls.
    175          We have decided that this should be in lockstep with ANTLR itself, other
    176          than -1 -2 -3 etc patch releases.
    177           -->
    178         <dependency>
    179             <groupId>org.antlr</groupId>
    180             <artifactId>antlr</artifactId>
    181             <version>3.4</version>
    182         </dependency>
    183 
    184         <!--
    185          Dependency on the gUnit artifact.
    186         -->
    187         <dependency>
    188             <groupId>${groupId}</groupId>
    189             <artifactId>gunit</artifactId>
    190             <version>3.4</version>
    191         </dependency>
    192 
    193         <!--
    194           Testing requirements...
    195           -->
    196         <dependency>
    197 
    198             <groupId>junit</groupId>
    199             <artifactId>junit</artifactId>
    200             <version>4.8.2</version>
    201             <scope>test</scope>
    202 
    203         </dependency>
    204 
    205         <dependency>
    206             <groupId>org.apache.maven.shared</groupId>
    207             <artifactId>maven-plugin-testing-harness</artifactId>
    208             <version>1.0</version>
    209             <scope>test</scope>
    210         </dependency>
    211         
    212     </dependencies>
    213     
    214     <build>
    215 
    216         <defaultGoal>install</defaultGoal>
    217         <plugins>
    218             
    219             <plugin>
    220                 <artifactId>maven-compiler-plugin</artifactId>
    221                 <version>2.0.2</version>
    222                 <configuration>
    223                     <source>1.6</source>
    224                     <target>jsr14</target>
    225                 </configuration>
    226             </plugin>
    227             
    228             <plugin>
    229                 <groupId>org.apache.maven.plugins</groupId>
    230                 <artifactId>maven-project-info-reports-plugin</artifactId>
    231                 <version>2.4</version>
    232                 <configuration>
    233                     <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
    234                 </configuration>
    235             </plugin>
    236 
    237             <plugin>  
    238                 <groupId>org.apache.maven.plugins</groupId>
    239                 <artifactId>maven-source-plugin</artifactId>
    240                 <version>2.1.2</version>
    241                 <executions>
    242                     <execution>
    243                         <id>attach-sources</id>
    244                         <goals>
    245                             <goal>jar</goal>
    246                         </goals>
    247                     </execution>
    248                 </executions>
    249             </plugin>
    250 			
    251             <plugin>
    252 				<groupId>org.apache.maven.plugins</groupId>
    253 				<artifactId>maven-javadoc-plugin</artifactId>
    254                 <version>2.8</version>
    255 				<executions>
    256 					<execution>
    257 						<id>attach-javadocs</id>
    258 						<goals>
    259 							<goal>jar</goal>
    260 						</goals>
    261 					</execution>
    262 				</executions>
    263 			</plugin>
    264             
    265         </plugins>
    266 
    267     </build>
    268 
    269 </project>
    270