[maven-release-plugin] prepare release libphonenumber-3.6
[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</artifactId>
6   <version>3.6</version>
7   <packaging>jar</packaging>
8   <name>libphonenumber</name>
9   <url>http://code.google.com/p/libphonenumber/</url>
10
11   <parent>
12     <groupId>org.sonatype.oss</groupId>
13     <artifactId>oss-parent</artifactId>
14     <version>7</version>
15   </parent>
16
17   <description>
18     Google's common Java library for parsing, formatting, storing and validating international phone numbers.
19     Optimized for running on smartphones.
20   </description>
21
22   <organization>
23     <name>Google</name>
24     <url>http://www.google.com/</url>
25   </organization>
26
27   <licenses>
28     <license>
29       <name>The Apache Software License, Version 2.0</name>
30       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
31     </license>
32   </licenses>
33
34   <scm>
35     <connection>scm:svn:http://libphonenumber.googlecode.com/svn/tags/libphonenumber-3.6</connection>
36     <developerConnection>scm:svn:https://libphonenumber.googlecode.com/svn/tags/libphonenumber-3.6</developerConnection>
37     <url>scm:svn:http://libphonenumber.googlecode.com/svn/tags/libphonenumber-3.6</url>
38   </scm>
39
40   <properties>
41     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42   </properties>
43
44   <developers>
45     <developer>
46       <id>jia.shao.peng</id>
47       <name>Shaopeng Jia</name>
48       <email>jia.shao.peng@gmail.com</email>
49       <organization>Google</organization>
50       <roles>
51         <role>owner</role>
52         <role>developer</role>
53       </roles>
54     </developer>
55     <developer>
56       <id>lararennie</id>
57       <name>Lara Rennie</name>
58       <email>lararennie@google.com</email>
59       <organization>Google</organization>
60       <roles>
61         <role>developer</role>
62       </roles>
63     </developer>
64   </developers>
65
66   <contributors>
67     <contributor>
68       <name>tronikos</name>
69       <email>tronikos@gmail.com</email>
70     </contributor>
71     <contributor>
72       <name>g1smd.email</name>
73       <email>g1smd.email@gmail.com</email>
74     </contributor>
75     <contributor>
76       <name>Philippe Liard</name>
77       <email>philip.liard@gmail.com</email>
78     </contributor>
79   </contributors>
80
81   <build>
82     <sourceDirectory>src</sourceDirectory>
83     <testSourceDirectory>test</testSourceDirectory>
84     <resources>
85       <resource>
86         <directory>src/com/google/i18n/phonenumbers/data</directory>
87         <targetPath>com/google/i18n/phonenumbers/data</targetPath>
88       </resource>
89     </resources>
90     <testResources>
91       <testResource>
92         <directory>test/com/google/i18n/phonenumbers/data</directory>
93         <targetPath>com/google/i18n/phonenumbers/data</targetPath>
94       </testResource>
95       <testResource>
96         <directory>test/com/google/i18n/phonenumbers/geocoding/testing_data</directory>
97         <targetPath>com/google/i18n/phonenumbers/geocoding/testing_data</targetPath>
98       </testResource>
99     </testResources>
100     <plugins>
101       <plugin>
102         <groupId>org.apache.maven.plugins</groupId>
103         <artifactId>maven-jar-plugin</artifactId>
104         <version>2.3.1</version>
105         <configuration>
106           <excludes>
107             <exclude>**/geocoding/</exclude>
108           </excludes>
109         </configuration>
110       </plugin>
111       <plugin>
112         <groupId>org.apache.maven.plugins</groupId>
113         <artifactId>maven-source-plugin</artifactId>
114         <version>2.1.2</version>
115         <executions>
116           <execution>
117             <id>attach-sources</id>
118             <goals>
119               <goal>jar</goal>
120             </goals>
121           </execution>
122         </executions>
123       </plugin>
124       <plugin>
125         <groupId>org.apache.maven.plugins</groupId>
126         <artifactId>maven-javadoc-plugin</artifactId>
127         <version>2.7</version>
128         <executions>
129           <execution>
130             <id>attach-javadocs</id>
131             <goals>
132               <goal>jar</goal>
133             </goals>
134           </execution>
135         </executions>
136       </plugin>
137       <plugin>
138         <artifactId>maven-release-plugin</artifactId>
139         <version>2.0-beta-7</version>
140         <configuration>
141           <tagBase>
142             https://libphonenumber.googlecode.com/svn/tags/
143           </tagBase>
144         </configuration>
145       </plugin>
146       <plugin>
147         <groupId>org.apache.maven.plugins</groupId>
148         <artifactId>maven-compiler-plugin</artifactId>
149         <version>2.3.2</version>
150         <configuration>
151           <source>1.5</source>
152           <target>1.5</target>
153         </configuration>
154       </plugin>
155     </plugins>
156   </build>
157
158   <profiles>
159     <profile>
160       <id>release-sign-artifacts</id>
161       <activation>
162         <property>
163           <name>performRelease</name>
164           <value>true</value>
165         </property>
166       </activation>
167       <build>
168         <plugins>
169           <plugin>
170             <groupId>org.apache.maven.plugins</groupId>
171             <artifactId>maven-gpg-plugin</artifactId>
172             <version>1.1</version>
173             <executions>
174               <execution>
175                 <id>sign-artifacts</id>
176                 <phase>verify</phase>
177                 <goals>
178                   <goal>sign</goal>
179                 </goals>
180               </execution>
181             </executions>
182           </plugin>
183         </plugins>
184       </build>
185     </profile>
186     <!-- Development profile that triggers the metadata generation. -->
187     <profile>
188       <id>dev</id>
189       <build>
190         <plugins>
191           <plugin>
192             <groupId>org.codehaus.mojo</groupId>
193             <artifactId>exec-maven-plugin</artifactId>
194             <version>1.2</version>
195             <executions>
196               <execution>
197                 <id>build-metadata</id>
198                 <phase>generate-sources</phase>
199                 <goals>
200                   <goal>exec</goal>
201                 </goals>
202                 <configuration>
203                   <executable>java</executable>
204                   <arguments>
205                     <argument>-jar</argument>
206                     <argument>../tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
207                     <argument>BuildMetadataProtoFromXml</argument>
208                     <argument>../resources/PhoneNumberMetaData.xml</argument>
209                     <argument>src</argument>
210                     <argument>false</argument> <!-- Not for testing. -->
211                     <argument>false</argument> <!-- No lite metadata. -->
212                   </arguments>
213                 </configuration>
214               </execution>
215               <execution>
216                 <id>build-test-metadata</id>
217                 <phase>generate-test-sources</phase>
218                 <goals>
219                   <goal>exec</goal>
220                 </goals>
221                 <configuration>
222                   <executable>java</executable>
223                   <arguments>
224                     <argument>-jar</argument>
225                     <argument>../tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
226                     <argument>BuildMetadataProtoFromXml</argument>
227                     <argument>../resources/PhoneNumberMetaDataForTesting.xml</argument>
228                     <argument>test</argument>
229                     <argument>true</argument> <!-- For testing. -->
230                     <argument>false</argument> <!-- No lite metadata. -->
231                   </arguments>
232                 </configuration>
233               </execution>
234               <execution>
235                 <id>build-geo-data</id>
236                 <phase>generate-sources</phase>
237                 <goals>
238                   <goal>exec</goal>
239                 </goals>
240                 <configuration>
241                   <executable>java</executable>
242                   <arguments>
243                     <argument>-jar</argument>
244                     <argument>../tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
245                     <argument>GenerateAreaCodeData</argument>
246                     <argument>../resources/geocoding</argument>
247                     <argument>src/com/google/i18n/phonenumbers/geocoding/data</argument>
248                     <argument>false</argument> <!-- Not for testing. -->
249                   </arguments>
250                 </configuration>
251               </execution>
252               <execution>
253                 <id>build-geo-test-data</id>
254                 <phase>generate-test-sources</phase>
255                 <goals>
256                   <goal>exec</goal>
257                 </goals>
258                 <configuration>
259                   <executable>java</executable>
260                   <arguments>
261                     <argument>-jar</argument>
262                     <argument>../tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
263                     <argument>GenerateAreaCodeData</argument>
264                     <argument>../resources/test/geocoding</argument>
265                     <argument>test/com/google/i18n/phonenumbers/geocoding/testing_data</argument>
266                     <argument>true</argument> <!-- For testing. -->
267                   </arguments>
268                 </configuration>
269               </execution>
270             </executions>
271           </plugin>
272         </plugins>
273       </build>
274     </profile>
275   </profiles>
276
277   <dependencies>
278     <dependency>
279       <groupId>junit</groupId>
280       <artifactId>junit</artifactId>
281       <version>4.8.1</version>
282       <scope>test</scope>
283     </dependency>
284   </dependencies>
285
286 </project>