| <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> |
| |
| <parent> |
| <groupId>eclipselink.example.mysports</groupId> |
| <artifactId>bom</artifactId> |
| <version>2.4.2-SNAPSHOT</version> |
| <relativePath>..</relativePath> |
| </parent> |
| |
| <artifactId>application</artifactId> |
| <packaging>war</packaging> |
| <name>MySports WebApp</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>persistence</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.eclipse.persistence</groupId> |
| <artifactId>eclipselink</artifactId> |
| <version>${eclipselink.version}</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>commonj.sdo</artifactId> |
| <groupId>commonj.sdo</groupId> |
| </exclusion> |
| </exclusions> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- EclipseLink JPA-RS Web Fragment --> |
| <dependency> |
| <groupId>org.eclipse.persistence</groupId> |
| <artifactId>org.eclipse.persistence.jpars</artifactId> |
| <version>${eclipselink.version}</version> |
| </dependency> |
| |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.11</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>admin.services</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>admin.services</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| <version>10.9.1.0</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax</groupId> |
| <artifactId>javaee-api</artifactId> |
| <version>6.0</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.faces</groupId> |
| <artifactId>jsf-impl</artifactId> |
| <version>1.2_15</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>persistence</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.0</version> |
| <configuration> |
| <source>1.6</source> |
| <target>1.6</target> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.3</version> |
| <configuration> |
| <webXml>src/main/webapp/WEB-INF/web.xml</webXml> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.12.4</version> |
| <configuration> |
| <argLine>-javaagent:../persistence/target/persistence-${eclipselink.version}.jar</argLine> |
| <systemProperties> |
| <property> |
| <name>derby.stream.error.file</name> |
| <value>target/derby.log</value> |
| </property> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>mysql</id> |
| <activation> |
| <property> |
| <name>mysql</name> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <version>5.1.22</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.12.4</version> |
| <configuration> |
| <systemProperties> |
| <property> |
| <name>javax.persistence.jdbc.url</name> |
| <value>jdbc:mysql://localhost:3306/mysports</value> |
| </property> |
| <property> |
| <name>javax.persistence.jdbc.driver</name> |
| <value>com.mysql.jdbc.Driver</value> |
| </property> |
| <property> |
| <name>javax.persistence.jdbc.user</name> |
| <value>mysports</value> |
| </property> |
| <property> |
| <name>javax.persistence.jdbc.password</name> |
| <value>mysports</value> |
| </property> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |