| <?xml version="1.0" encoding="UTF-8"?> |
| <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> |
| <groupId>eclipselink.example.jpa-moxy</groupId> |
| <artifactId>jpa-moxy.simple</artifactId> |
| <version>2.6.0</version> |
| <packaging>jar</packaging> |
| |
| <name>JPA-MOXy Example</name> |
| |
| <scm> |
| <connection>git://git.eclipse.org/gitroot/eclipselink/examples.git</connection> |
| <url>http://git.eclipse.org/c/eclipselink/examples.git/</url> |
| </scm> |
| |
| <licenses> |
| <license> |
| <name>EPL: Eclipse Public License</name> |
| <url>http://www.eclipse.org/legal/epl-v10.html</url> |
| </license> |
| <license> |
| <name>EDL: Eclipse Distribution License</name> |
| <url>http://www.eclipse.org/org/documents/edl-v10.php</url> |
| </license> |
| </licenses> |
| |
| <developers> |
| <developer> |
| <name>Shaun Smith</name> |
| <organization>Oracle</organization> |
| <email>shaun.smith@oracle.com</email> |
| <url>onpersistence.blogspot.com</url> |
| </developer> |
| </developers> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <eclipselink.groupid>org.eclipse.persistence</eclipselink.groupid> |
| <eclipselink.version>2.6.0</eclipselink.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${eclipselink.groupid}</groupId> |
| <artifactId>javax.persistence</artifactId> |
| <version>2.1.0</version> |
| </dependency> |
| <dependency> |
| <groupId>${eclipselink.groupid}</groupId> |
| <artifactId>eclipselink</artifactId> |
| <version>${eclipselink.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| <version>10.11.1.1</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.12</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <defaultGoal>test</defaultGoal> |
| |
| <!-- ensure jaxb.properties copied to target/classes --> |
| <resources> |
| <resource> |
| <directory>src/main/java</directory> |
| <excludes> |
| <exclude>**/*.java</exclude> |
| </excludes> |
| </resource> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| </resources> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.3.2</version> |
| <configuration> |
| <systemProperties> |
| <property> |
| <key>derby.stream.error.file</key> |
| <value>target/derby.log</value> |
| </property> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.2</version> |
| <configuration> |
| <source>1.8</source> |
| <target>1.8</target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>initdb</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.3.2</version> |
| <configuration> |
| <cleanupDaemonThreads>false</cleanupDaemonThreads> |
| <mainClass>eclipselink.example.jpamoxy.simple.InitDB</mainClass> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>marshall-xml</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.3.2</version> |
| <configuration> |
| <mainClass>eclipselink.example.jpamoxy.simple.Marshall</mainClass> |
| <arguments> |
| <argument>xml</argument> |
| </arguments> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>marshall-json</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.3.2</version> |
| <configuration> |
| <mainClass>eclipselink.example.jpamoxy.simple.Marshall</mainClass> |
| <arguments> |
| <argument>json</argument> |
| </arguments> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>unmarshall-xml</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.3.2</version> |
| <configuration> |
| <mainClass>eclipselink.example.jpamoxy.simple.Unmarshall</mainClass> |
| <arguments> |
| <argument>xml</argument> |
| </arguments> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>unmarshall-json</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.3.2</version> |
| <configuration> |
| <mainClass>eclipselink.example.jpamoxy.simple.Unmarshall</mainClass> |
| <arguments> |
| <argument>json</argument> |
| </arguments> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |