• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>demo</artifactId>
6  <version>8.13.31</version>
7  <packaging>war</packaging>
8  <url>https://github.com/google/libphonenumber/</url>
9  <parent>
10    <groupId>com.googlecode.libphonenumber</groupId>
11    <artifactId>libphonenumber-parent</artifactId>
12    <version>8.13.31</version>
13  </parent>
14
15  <properties>
16    <app.deploy.project>libphonenumber-hrd</app.deploy.project>
17    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
19    <maven.compiler.source>11</maven.compiler.source>
20    <maven.compiler.target>11</maven.compiler.target>
21    <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
22    <archiveClasses>true</archiveClasses>
23    <soy.root>${project.basedir}/src/main/resources/com/google/phonenumbers/demo</soy.root>
24    <soy.srcs>${soy.root}/input_form.soy,${soy.root}/result.soy,${soy.root}/result_error.soy,${soy.root}/result_file.soy</soy.srcs>
25    <soy.parser.output>${project.build.directory}/generated-sources/com/google/phonenumbers/demo/template/</soy.parser.output>
26    <soy.compiler.output>${project.build.directory}/${project.build.finalName}/WEB-INF/lib/soy-templates.jar</soy.compiler.output>
27    <soy.package>com.google.phonenumbers.demo.template</soy.package>
28  </properties>
29
30  <prerequisites>
31    <maven>3.5</maven>
32  </prerequisites>
33
34  <dependencies>
35    <!-- Compile/runtime dependencies -->
36    <dependency>
37      <artifactId>soy</artifactId>
38      <groupId>com.google.template</groupId>
39      <version>2022-07-20</version>
40    </dependency>
41    <dependency>
42      <artifactId>appengine-maven-plugin</artifactId>
43      <groupId>com.google.cloud.tools</groupId>
44      <version>2.4.4</version>
45    </dependency>
46    <dependency>
47      <groupId>javax.servlet</groupId>
48      <artifactId>servlet-api</artifactId>
49      <version>2.5</version>
50      <type>jar</type>
51      <scope>provided</scope>
52    </dependency>
53    <dependency>
54      <groupId>commons-io</groupId>
55      <artifactId>commons-io</artifactId>
56      <version>2.13.0</version>
57    </dependency>
58    <dependency>
59      <groupId>commons-fileupload</groupId>
60      <artifactId>commons-fileupload</artifactId>
61      <version>1.5</version>
62    </dependency>
63    <dependency>
64      <groupId>commons-lang</groupId>
65      <artifactId>commons-lang</artifactId>
66      <version>2.6</version>
67    </dependency>
68    <dependency>
69      <groupId>com.googlecode.libphonenumber</groupId>
70      <artifactId>libphonenumber</artifactId>
71      <version>8.13.31</version>
72    </dependency>
73    <dependency>
74      <groupId>com.googlecode.libphonenumber</groupId>
75      <artifactId>geocoder</artifactId>
76      <version>2.225</version>
77    </dependency>
78    <dependency>
79      <groupId>com.googlecode.libphonenumber</groupId>
80      <artifactId>carrier</artifactId>
81      <version>1.215</version>
82    </dependency>
83  </dependencies>
84
85  <build>
86    <!-- for hot reload of the web application-->
87    <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
88    <plugins>
89      <plugin>
90        <groupId>com.google.cloud.tools</groupId>
91        <artifactId>appengine-maven-plugin</artifactId>
92        <version>2.4.4</version>
93        <configuration>
94        </configuration>
95      </plugin>
96      <plugin>
97        <artifactId>maven-compiler-plugin</artifactId>
98        <configuration>
99          <source>8</source>
100          <target>8</target>
101        </configuration>
102        <groupId>org.apache.maven.plugins</groupId>
103      </plugin>
104      <plugin>
105        <groupId>org.apache.maven.plugins</groupId>
106        <artifactId>maven-war-plugin</artifactId>
107        <version>3.4.0</version>
108      </plugin>
109      <plugin>
110        <groupId>org.codehaus.mojo</groupId>
111        <artifactId>exec-maven-plugin</artifactId>
112        <version>3.1.0</version>
113        <executions>
114          <execution>
115            <!-- soy-parser generates template classes in
116            com.google.phonenumbers.demo.template package -->
117            <id>soy-parser</id>
118            <goals>
119              <goal>exec</goal>
120            </goals>
121            <phase>generate-sources</phase>
122            <configuration>
123              <executable>java</executable>
124              <arguments>
125                <argument>-classpath</argument>
126                <classpath />
127                <argument>com.google.template.soy.SoyParseInfoGenerator</argument>
128                <argument>--generateInvocationBuilders</argument>
129                <argument>--javaPackage</argument>
130                <argument>${soy.package}</argument>
131                <argument>--javaClassNameSource</argument>
132                <argument>filename</argument>
133                <argument>--srcs</argument>
134                <argument>${soy.srcs}</argument>
135                <argument>--outputDirectory</argument>
136                <argument>${soy.parser.output}</argument>
137              </arguments>
138              <sourceRoot>${soy.parser.output}</sourceRoot>
139            </configuration>
140          </execution>
141          <execution>
142            <!-- soy-compiler compiles templates so that we can use SoySauce
143            instead of Tofu. -->
144            <id>soy-compiler</id>
145            <goals>
146              <goal>exec</goal>
147            </goals>
148            <phase>verify</phase>
149            <configuration>
150              <executable>java</executable>
151              <arguments>
152                <argument>-classpath</argument>
153                <classpath />
154                <argument>com.google.template.soy.SoyToJbcSrcCompiler</argument>
155                <argument>--srcs</argument>
156                <argument>${soy.srcs}</argument>
157                <argument>--output</argument>
158                <argument>${soy.compiler.output}</argument>
159              </arguments>
160            </configuration>
161          </execution>
162        </executions>
163      </plugin>
164      <plugin>
165        <groupId>org.apache.maven.plugins</groupId>
166        <artifactId>maven-javadoc-plugin</artifactId>
167        <version>3.5.0</version>
168        <configuration>
169          <!-- SoyInfoParser does not generate valid javadoc and
170          <excludePackageNames> does not work for /generated-sources for
171          some reason-->
172          <failOnError>false</failOnError>
173        </configuration>
174      </plugin>
175    </plugins>
176  </build>
177</project>
178
179