[maven-release-plugin] prepare release libphonenumber-5.2
[platform/upstream/libphonenumber.git] / java / pom.xml
1 <?xml version="1.0"?>
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/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <groupId>com.googlecode.libphonenumber</groupId>
5   <artifactId>libphonenumber-parent</artifactId>
6   <version>5.2</version>
7   <packaging>pom</packaging>
8   <url>http://code.google.com/p/libphonenumber/</url>
9
10   <parent>
11     <groupId>org.sonatype.oss</groupId>
12     <artifactId>oss-parent</artifactId>
13     <version>7</version>
14   </parent>
15
16   <description>
17     Google's common Java library for parsing, formatting, storing and validating international phone numbers.
18     Optimized for running on smartphones.
19   </description>
20
21   <organization>
22     <name>Google</name>
23     <url>http://www.google.com/</url>
24   </organization>
25
26   <licenses>
27     <license>
28       <name>The Apache Software License, Version 2.0</name>
29       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
30     </license>
31   </licenses>
32
33   <scm>
34     <connection>scm:svn:http://libphonenumber.googlecode.com/svn/tags/libphonenumber-5.2</connection>
35     <developerConnection>scm:svn:https://libphonenumber.googlecode.com/svn/tags/libphonenumber-5.2</developerConnection>
36     <url>scm:svn:http://libphonenumber.googlecode.com/svn/tags/libphonenumber-5.2</url>
37   </scm>
38
39   <properties>
40     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41   </properties>
42
43   <developers>
44     <developer>
45       <id>jia.shao.peng</id>
46       <name>Shaopeng Jia</name>
47       <email>jia.shao.peng@gmail.com</email>
48       <organization>Google</organization>
49       <roles>
50         <role>owner</role>
51         <role>developer</role>
52       </roles>
53     </developer>
54     <developer>
55       <id>lararennie</id>
56       <name>Lara Rennie</name>
57       <email>lararennie@google.com</email>
58       <organization>Google</organization>
59       <roles>
60         <role>developer</role>
61       </roles>
62     </developer>
63   </developers>
64
65   <contributors>
66     <contributor>
67       <name>tronikos</name>
68       <email>tronikos@gmail.com</email>
69     </contributor>
70     <contributor>
71       <name>g1smd.email</name>
72       <email>g1smd.email@gmail.com</email>
73     </contributor>
74     <contributor>
75       <name>Philippe Liard</name>
76       <email>philip.liard@gmail.com</email>
77     </contributor>
78   </contributors>
79
80   <modules>
81     <module>libphonenumber</module>
82     <module>geocoder</module>
83     <module>demo</module>
84   </modules>
85
86   <build>
87     <plugins>
88       <plugin>
89         <groupId>org.apache.maven.plugins</groupId>
90         <artifactId>maven-surefire-plugin</artifactId>
91         <version>2.12</version>
92         <configuration>
93           <forkMode>never</forkMode>
94           <includes>
95             <include>**/*Test.java</include>
96           </includes>
97         </configuration>
98       </plugin>
99       <plugin>
100         <groupId>org.apache.maven.plugins</groupId>
101         <artifactId>maven-source-plugin</artifactId>
102         <version>2.1.2</version>
103         <executions>
104           <execution>
105             <id>attach-sources</id>
106             <goals>
107               <goal>jar</goal>
108             </goals>
109           </execution>
110         </executions>
111       </plugin>
112       <plugin>
113         <groupId>org.apache.maven.plugins</groupId>
114         <artifactId>maven-javadoc-plugin</artifactId>
115         <version>2.7</version>
116         <executions>
117           <execution>
118             <id>attach-javadocs</id>
119             <goals>
120               <goal>jar</goal>
121             </goals>
122           </execution>
123         </executions>
124       </plugin>
125       <plugin>
126         <artifactId>maven-release-plugin</artifactId>
127         <version>2.2.1</version>
128         <configuration>
129           <tagBase>https://libphonenumber.googlecode.com/svn/tags/</tagBase>
130           <tagNameFormat>libphonenumber-@{project.version}</tagNameFormat>
131         </configuration>
132       </plugin>
133       <plugin>
134         <groupId>org.apache.maven.plugins</groupId>
135         <artifactId>maven-compiler-plugin</artifactId>
136         <version>2.3.2</version>
137         <configuration>
138           <source>1.5</source>
139           <target>1.5</target>
140         </configuration>
141       </plugin>
142     </plugins>
143   </build>
144
145   <profiles>
146     <profile>
147       <id>release-sign-artifacts</id>
148       <activation>
149         <property>
150           <name>performRelease</name>
151           <value>true</value>
152         </property>
153       </activation>
154       <build>
155         <plugins>
156           <plugin>
157             <groupId>org.apache.maven.plugins</groupId>
158             <artifactId>maven-gpg-plugin</artifactId>
159             <version>1.1</version>
160             <executions>
161               <execution>
162                 <id>sign-artifacts</id>
163                 <phase>verify</phase>
164                 <goals>
165                   <goal>sign</goal>
166                 </goals>
167               </execution>
168             </executions>
169           </plugin>
170         </plugins>
171       </build>
172     </profile>
173   </profiles>
174
175   <dependencies>
176     <dependency>
177       <groupId>junit</groupId>
178       <artifactId>junit</artifactId>
179       <version>4.8.1</version>
180       <scope>test</scope>
181     </dependency>
182   </dependencies>
183
184 </project>