@ -20,7 +20,9 @@
<maven.compiler.target > 1.8</maven.compiler.target>
<maven.compiler.showDeprecation > true</maven.compiler.showDeprecation>
<archiveClasses > true</archiveClasses>
<soy.root > src/main/resources/com/google/phonenumbers/demo</soy.root>
<soy.root > ${project.basedir}/src/main/resources/com/google/phonenumbers/demo</soy.root>
<soy.srcs > ${soy.root}/input_form.soy,${soy.root}/result.soy,${soy.root}/result_error.soy,${soy.root}/result_file.soy</soy.srcs>
<soy.output.dir > ${project.build.directory}/${project.build.finalName}/WEB-INF/lib/</soy.output.dir>
<soy.package > com.google.phonenumbers.demo.template</soy.package>
</properties>
@ -83,32 +85,6 @@
<!-- for hot reload of the web application -->
<outputDirectory > ${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<plugins >
<plugin >
<groupId > org.codehaus.mojo</groupId>
<artifactId > exec-maven-plugin</artifactId>
<version > 3.1.0</version>
<executions >
<execution >
<goals >
<goal > java</goal>
</goals>
</execution>
</executions>
<configuration >
<mainClass > com.google.template.soy.SoyParseInfoGenerator</mainClass>
<arguments >
<argument > --generateInvocationBuilders</argument>
<argument > --javaPackage</argument>
<argument > ${soy.package}</argument>
<argument > --javaClassNameSource</argument>
<argument > filename</argument>
<argument > --srcs</argument>
<argument > ${soy.root}/input_form.soy,${soy.root}/result.soy,${soy.root}/result_error.soy,${soy.root}/result_file.soy</argument>
<argument > --outputDirectory</argument>
<argument > src/main/java/com/google/phonenumbers/demo/template/</argument>
</arguments>
</configuration>
</plugin>
<plugin >
<groupId > com.google.cloud.tools</groupId>
<artifactId > appengine-maven-plugin</artifactId>
@ -124,6 +100,56 @@
</configuration>
<groupId > org.apache.maven.plugins</groupId>
</plugin>
<plugin >
<groupId > org.codehaus.mojo</groupId>
<artifactId > exec-maven-plugin</artifactId>
<version > 3.1.0</version>
<executions >
<execution >
<!-- soy - parser generates template classes in
com.google.phonenumbers.demo.template package and isn't tied to a
build lifecycle, i.e. it needs to be run manually with
"mvn exec:java@soy-parser" -->
<id > soy-parser</id>
<goals >
<goal > java</goal>
</goals>
<configuration >
<mainClass > com.google.template.soy.SoyParseInfoGenerator</mainClass>
<arguments >
<argument > --generateInvocationBuilders</argument>
<argument > --javaPackage</argument>
<argument > ${soy.package}</argument>
<argument > --javaClassNameSource</argument>
<argument > filename</argument>
<argument > --srcs</argument>
<argument > ${soy.srcs}</argument>
<argument > --outputDirectory</argument>
<argument > ${project.basedir}/src/main/java/com/google/phonenumbers/demo/template/</argument>
</arguments>
</configuration>
</execution>
<execution >
<!-- soy - compiler compiles templates so that we can use SoySauce
instead of Tofu and it's tied to the build lifecycle (it's part of
install phase). -->
<id > soy-compiler</id>
<goals >
<goal > java</goal>
</goals>
<phase > install</phase>
<configuration >
<mainClass > com.google.template.soy.SoyToJbcSrcCompiler</mainClass>
<arguments >
<argument > --srcs</argument>
<argument > ${soy.srcs}</argument>
<argument > --output</argument>
<argument > ${soy.output.dir}/soy-templates.jar</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-javadoc-plugin</artifactId>