Home | History | Annotate | Download | only in 2
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3   Copyright (C) 2013 Google, Inc.
      4 
      5   Licensed under the Apache License, Version 2.0 (the "License");
      6   you may not use this file except in compliance with the License.
      7   You may obtain a copy of the License at
      8 
      9        http://www.apache.org/licenses/LICENSE-2.0
     10 
     11   Unless required by applicable law or agreed to in writing, software
     12   distributed under the License is distributed on an "AS IS" BASIS,
     13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   See the License for the specific language governing permissions and
     15   limitations under the License.
     16 -->
     17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     18   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     19   <modelVersion>4.0.0</modelVersion>
     20 
     21   <parent>
     22     <groupId>org.sonatype.oss</groupId>
     23     <artifactId>oss-parent</artifactId>
     24     <version>7</version>
     25   </parent>
     26 
     27   <groupId>com.google.auto</groupId>
     28   <artifactId>auto-parent</artifactId>
     29   <packaging>pom</packaging>
     30   <version>2</version>
     31   <name>Auto (Parent)</name>
     32   <description>A collection of code generators for Java.</description>
     33   <url>https://github.com/google/auto</url>
     34 
     35   <properties>
     36     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     37     <java.version>1.6</java.version>
     38   </properties>
     39 
     40   <scm>
     41     <url>http://github.com/google/auto</url>
     42     <connection>scm:git:git://github.com/google/auto.git</connection>
     43     <developerConnection>scm:git:ssh://git (a] github.com/google/auto.git</developerConnection>
     44     <tag>HEAD</tag>
     45   </scm>
     46 
     47   <issueManagement>
     48     <system>GitHub Issues</system>
     49     <url>http://github.com/google/auto/issues</url>
     50   </issueManagement>
     51 
     52   <licenses>
     53     <license>
     54       <name>Apache 2.0</name>
     55       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
     56     </license>
     57   </licenses>
     58 
     59   <organization>
     60     <name>Google, Inc.</name>
     61     <url>http://www.google.com</url>
     62   </organization>
     63 
     64   <build>
     65     <plugins>
     66       <plugin>
     67         <groupId>org.apache.maven.plugins</groupId>
     68         <artifactId>maven-compiler-plugin</artifactId>
     69         <version>3.1</version>
     70         <configuration>
     71           <source>${java.version}</source>
     72           <target>${java.version}</target>
     73           <compilerArgument>-Xlint:all</compilerArgument>
     74           <showWarnings>true</showWarnings>
     75           <showDeprecation>true</showDeprecation>
     76         </configuration>
     77       </plugin>
     78       <plugin>
     79         <groupId>org.apache.maven.plugins</groupId>
     80         <artifactId>maven-checkstyle-plugin</artifactId>
     81         <version>2.11</version>
     82         <configuration>
     83           <consoleOutput>true</consoleOutput>
     84           <configLocation>checkstyle.xml</configLocation>
     85           <failOnViolation>false</failOnViolation>
     86         </configuration>
     87       </plugin>
     88     </plugins>
     89     <pluginManagement>
     90       <plugins>
     91         <plugin>
     92           <artifactId>maven-invoker-plugin</artifactId>
     93           <version>1.8</version>
     94         </plugin>
     95       </plugins>
     96     </pluginManagement>
     97   </build>
     98 
     99   <profiles>
    100     <profile>
    101       <id>default-profile</id>
    102       <activation>
    103         <activeByDefault>true</activeByDefault>
    104         <file>
    105           <exists>${java.home}/../lib/tools.jar</exists>
    106         </file>
    107       </activation>
    108       <properties>
    109         <toolsjar>${java.home}/../lib/tools.jar</toolsjar>
    110       </properties>
    111     </profile>
    112     <profile>
    113       <id>mac-profile</id>
    114       <activation>
    115         <activeByDefault>false</activeByDefault>
    116         <file>
    117           <exists>${java.home}/../Classes/classes.jar</exists>
    118         </file>
    119       </activation>
    120       <properties>
    121         <toolsjar>${java.home}/../Classes/classes.jar</toolsjar>
    122       </properties>
    123     </profile>
    124     <profile>
    125       <id>release-sign-artifacts</id>
    126       <activation>
    127         <property>
    128           <name>performRelease</name>
    129           <value>true</value>
    130         </property>
    131       </activation>
    132       <build>
    133         <plugins>
    134           <plugin>
    135             <groupId>org.apache.maven.plugins</groupId>
    136             <artifactId>maven-gpg-plugin</artifactId>
    137             <executions>
    138               <execution>
    139                 <id>sign-artifacts</id>
    140                 <phase>verify</phase>
    141                 <goals>
    142                   <goal>sign</goal>
    143                 </goals>
    144               </execution>
    145             </executions>
    146           </plugin>
    147         </plugins>
    148       </build>
    149     </profile>
    150   </profiles>
    151 </project>
    152