[maven-release-plugin] prepare release libphonenumber-7.0.4
[platform/upstream/libphonenumber.git] / java / pom.xml
index a428ddc..9ad04ec 100644 (file)
@@ -2,11 +2,10 @@
 <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">
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.googlecode.libphonenumber</groupId>
-  <artifactId>libphonenumber</artifactId>
-  <version>3.7-SNAPSHOT</version>
-  <packaging>jar</packaging>
-  <name>libphonenumber</name>
-  <url>http://code.google.com/p/libphonenumber/</url>
+  <artifactId>libphonenumber-parent</artifactId>
+  <version>7.0.4</version>
+  <packaging>pom</packaging>
+  <url>https://github.com/googlei18n/libphonenumber/</url>
 
   <parent>
     <groupId>org.sonatype.oss</groupId>
   </licenses>
 
   <scm>
-    <connection>scm:svn:http://libphonenumber.googlecode.com/svn/trunk/java/</connection>
-    <developerConnection>scm:svn:https://libphonenumber.googlecode.com/svn/trunk/java/</developerConnection>
-    <url>scm:svn:http://libphonenumber.googlecode.com/svn/trunk/java/</url>
+    <connection>scm:git:https://github.com/googlei18n/libphonenumber.git</connection>
+    <developerConnection>scm:git:git@github.com:googlei18n/libphonenumber.git</developerConnection>
+    <url>https://github.com/googlei18n/libphonenumber/</url>
   </scm>
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <!-- Property used by the exec plugin that is also overridden by the release plugin as it
-         changes the working directory. -->
-    <exec-path-prefix>..</exec-path-prefix>
   </properties>
 
   <developers>
     </contributor>
   </contributors>
 
+  <modules>
+    <module>libphonenumber</module>
+    <module>internal/prefixmapper</module>
+    <module>carrier</module>
+    <module>geocoder</module>
+    <module>demo</module>
+  </modules>
+
   <build>
-    <sourceDirectory>src</sourceDirectory>
-    <testSourceDirectory>test</testSourceDirectory>
-    <resources>
-      <resource>
-        <directory>src/com/google/i18n/phonenumbers/data</directory>
-        <targetPath>com/google/i18n/phonenumbers/data</targetPath>
-      </resource>
-    </resources>
-    <testResources>
-      <testResource>
-        <directory>test/com/google/i18n/phonenumbers/data</directory>
-        <targetPath>com/google/i18n/phonenumbers/data</targetPath>
-      </testResource>
-      <testResource>
-        <directory>test/com/google/i18n/phonenumbers/geocoding/testing_data</directory>
-        <targetPath>com/google/i18n/phonenumbers/geocoding/testing_data</targetPath>
-      </testResource>
-    </testResources>
     <plugins>
       <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>exec-maven-plugin</artifactId>
-        <version>1.2</version>
-        <executions>
-          <execution>
-            <id>build-metadata</id>
-            <phase>generate-sources</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>java</executable>
-              <arguments>
-                <argument>-jar</argument>
-                <argument>${exec-path-prefix}/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
-                <argument>BuildMetadataProtoFromXml</argument>
-                <argument>${exec-path-prefix}/resources/PhoneNumberMetaData.xml</argument>
-                <argument>src</argument>
-                <argument>false</argument> <!-- Not for testing. -->
-                <argument>false</argument> <!-- No lite metadata. -->
-              </arguments>
-            </configuration>
-          </execution>
-          <execution>
-            <id>build-test-metadata</id>
-            <phase>generate-test-sources</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>java</executable>
-              <arguments>
-                <argument>-jar</argument>
-                <argument>${exec-path-prefix}/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
-                <argument>BuildMetadataProtoFromXml</argument>
-                <argument>${exec-path-prefix}/resources/PhoneNumberMetaDataForTesting.xml</argument>
-                <argument>test</argument>
-                <argument>true</argument> <!-- For testing. -->
-                <argument>false</argument> <!-- No lite metadata. -->
-              </arguments>
-            </configuration>
-          </execution>
-          <execution>
-            <id>build-geo-data</id>
-            <phase>generate-sources</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>java</executable>
-              <arguments>
-                <argument>-jar</argument>
-                <argument>${exec-path-prefix}/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
-                <argument>GenerateAreaCodeData</argument>
-                <argument>${exec-path-prefix}/resources/geocoding</argument>
-                <argument>src/com/google/i18n/phonenumbers/geocoding/data</argument>
-                <argument>false</argument> <!-- Not for testing. -->
-              </arguments>
-            </configuration>
-          </execution>
-          <execution>
-            <id>build-geo-test-data</id>
-            <phase>generate-test-sources</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>java</executable>
-              <arguments>
-                <argument>-jar</argument>
-                <argument>${exec-path-prefix}/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
-                <argument>GenerateAreaCodeData</argument>
-                <argument>${exec-path-prefix}/resources/test/geocoding</argument>
-                <argument>test/com/google/i18n/phonenumbers/geocoding/testing_data</argument>
-                <argument>true</argument> <!-- For testing. -->
-              </arguments>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>2.3.1</version>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.12</version>
         <configuration>
-          <excludes>
-            <exclude>**/geocoding/</exclude>
-          </excludes>
+          <forkMode>never</forkMode>
+          <includes>
+            <include>**/*Test.java</include>
+          </includes>
         </configuration>
       </plugin>
       <plugin>
       </plugin>
       <plugin>
         <artifactId>maven-release-plugin</artifactId>
-        <version>2.0-beta-7</version>
+        <version>2.2.1</version>
         <configuration>
-          <tagBase>
-            https://libphonenumber.googlecode.com/svn/tags/
-          </tagBase>
+          <tagNameFormat>libphonenumber-@{project.version}</tagNameFormat>
         </configuration>
       </plugin>
       <plugin>
         </plugins>
       </build>
     </profile>
-    <profile>
-      <id>push-to-central-repository</id>
-      <activation>
-        <property>
-          <name>push</name>
-          <value>true</value>
-        </property>
-      </activation>
-      <properties>
-        <exec-path-prefix>../..</exec-path-prefix>
-      </properties>
-    </profile>
   </profiles>
 
   <dependencies>