-
-
Save andresetevejob/b87147ddf5ff02ccb0ca425d8c97ad99 to your computer and use it in GitHub Desktop.
pom.xml Struts2 REST + OpenJPA + Jetty Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.hoan</groupId> | |
<artifactId>Shop</artifactId> | |
<packaging>war</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>Shop Maven Webapp</name> | |
<url>http://maven.apache.org</url> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.struts</groupId> | |
<artifactId>struts2-core</artifactId> | |
<version>2.3.8</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.struts</groupId> | |
<artifactId>struts2-rest-plugin</artifactId> | |
<version>2.3.8</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.struts</groupId> | |
<artifactId>struts2-convention-plugin</artifactId> | |
<version>2.3.8</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.openjpa</groupId> | |
<artifactId>openjpa-all</artifactId> | |
<version>2.2.1</version> | |
</dependency> | |
<dependency> | |
<groupId>org.eclipse.jetty</groupId> | |
<artifactId>jetty-server</artifactId> | |
<version>8.1.8.v20121106</version> | |
</dependency> | |
<dependency> | |
<groupId>jstl</groupId> | |
<artifactId>jstl</artifactId> | |
<version>1.2</version> | |
</dependency> | |
<dependency> | |
<groupId>mysql</groupId> | |
<artifactId>mysql-connector-java</artifactId> | |
<version>5.1.22</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<finalName>Shop</finalName> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.0</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
<version>8.1.8.v20121106</version> | |
<configuration> | |
<scanIntervalSeconds>5</scanIntervalSeconds> | |
<stopKey>foo</stopKey> | |
<stopPort>9999</stopPort> | |
</configuration> | |
<executions> | |
<execution> | |
<id>start-jetty</id> | |
<phase>pre-integration-test</phase> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
<configuration> | |
<scanIntervalSeconds>0</scanIntervalSeconds> | |
<daemon>true</daemon> | |
</configuration> | |
</execution> | |
<execution> | |
<id>stop-jetty</id> | |
<phase>post-integration-test</phase> | |
<goals> | |
<goal>stop</goal> | |
</goals> | |
</execution> | |
</executions> | |
<!-- execute mvn jetty:run to run the server --> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.openjpa</groupId> | |
<artifactId>openjpa-maven-plugin</artifactId> | |
<version>2.2.1</version> | |
<configuration> | |
<includes>**/entities/*.class</includes> | |
<excludes>**/entities/XML*.class</excludes> | |
<addDefaultConstructor>true</addDefaultConstructor> | |
<enforcePropertyRestrictions>true</enforcePropertyRestrictions> | |
</configuration> | |
<executions> | |
<execution> | |
<id>enhancer</id> | |
<phase>process-classes</phase> | |
<goals> | |
<goal>enhance</goal> | |
</goals> | |
</execution> | |
</executions> | |
<!-- execute mvn openjpa:enhance to enhance entities --> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment