aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 96cda18..e38c500 100644
--- a/pom.xml
+++ b/pom.xml
@@ -144,6 +144,7 @@
<webappDirectory>${webappDirectory}</webappDirectory>
</configuration>
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -153,6 +154,46 @@
<target>1.6</target>
</configuration>
</plugin>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <id>debug</id>
+ <phase>process-resources</phase>
+ <configuration>
+ <target>
+ <delete
+ file="${webappDirectory}/WEB-INF/classes/META-INF/persistence.xml" />
+ <copy
+ file="${webappDirectory}/WEB-INF/classes/META-INF/persistence_debug.xml"
+ tofile="${webappDirectory}/WEB-INF/classes/META-INF/persistence.xml" />
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>release</id>
+ <phase>prepare-package</phase>
+ <configuration>
+ <target>
+ <delete
+ file="${webappDirectory}/WEB-INF/classes/META-INF/persistence.xml" />
+ <copy
+ file="${webappDirectory}/WEB-INF/classes/META-INF/persistence_release.xml"
+ tofile="${webappDirectory}/WEB-INF/classes/META-INF/persistence.xml" />
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
</plugins>
</build>