492 lines
17 KiB
XML
492 lines
17 KiB
XML
<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.example.crud</groupId>
|
|
<artifactId>crud-jpa-tutorial</artifactId>
|
|
<packaging>jar</packaging>
|
|
<version>5.0</version>
|
|
<name>CRUD JPA Application</name>
|
|
<url>http://www.example.come</url>
|
|
|
|
<properties>
|
|
<encoding>UTF-8</encoding>
|
|
<java.version>1.8</java.version>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<org.datanucleus.version>5.1.0-release</org.datanucleus.version>
|
|
<aspectj.version>1.8.10</aspectj.version>
|
|
<metrics.version>3.2.2</metrics.version>
|
|
<spring.version>5.0.2.RELEASE</spring.version>
|
|
<spring-data-releasetrain.version>Kay-SR2</spring-data-releasetrain.version>
|
|
</properties>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-milestones</id>
|
|
<name>Spring Milestones</name>
|
|
<url>https://repo.spring.io/libs-milestone</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
<repository>
|
|
<id>clojars.org</id>
|
|
<url>http://clojars.org/repo</url>
|
|
</repository>
|
|
<repository>
|
|
<id>maven.apache.org</id>
|
|
<url>http://repo.maven.apache.org/maven2/</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-framework-bom</artifactId>
|
|
<version>5.0.0.RC2</version>
|
|
<scope>import</scope>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-releasetrain</artifactId>
|
|
<version>${spring-data-releasetrain.version}</version>
|
|
<scope>import</scope>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-core</artifactId>
|
|
<version>${org.datanucleus.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-api-jpa</artifactId>
|
|
<version>${org.datanucleus.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>javax.persistence</artifactId>
|
|
<version>2.2.0-m3</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>1.2.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-access</artifactId>
|
|
<version>1.2.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
<version>1.8.0-alpha2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>log4j-over-slf4j</artifactId>
|
|
<version>1.8.0-alpha2</version>
|
|
</dependency>
|
|
|
|
<!-- MongoDB -->
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-mongodb</artifactId>
|
|
<version>${org.datanucleus.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mongodb</groupId>
|
|
<artifactId>mongo-java-driver</artifactId>
|
|
<version>3.4.2</version>
|
|
</dependency>
|
|
|
|
<!-- Cassandra -->
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-cassandra</artifactId>
|
|
<version>${org.datanucleus.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.datastax.cassandra</groupId>
|
|
<artifactId>cassandra-driver-core</artifactId>
|
|
<version>3.2.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.datastax.cassandra</groupId>
|
|
<artifactId>cassandra-driver-extras</artifactId>
|
|
<version>3.2.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.datastax.cassandra</groupId>
|
|
<artifactId>cassandra-driver-mapping</artifactId>
|
|
<version>3.2.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.hdrhistogram</groupId>
|
|
<artifactId>HdrHistogram</artifactId>
|
|
<version>2.1.9</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-cache</artifactId>
|
|
<version>5.1.0-m1</version>
|
|
<!--
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>net.sf.ehcache</groupId>
|
|
<artifactId>ehcache-core</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
-->
|
|
</dependency>
|
|
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-guava</artifactId>
|
|
<version>5.0.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-jodatime</artifactId>
|
|
<version>5.0.0-release</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-java8</artifactId>
|
|
<version>4.2.3</version>
|
|
</dependency>
|
|
-->
|
|
|
|
<dependency>
|
|
<groupId>javax.cache</groupId>
|
|
<artifactId>cache-api</artifactId>
|
|
<version>1.0.0-PFD</version>
|
|
</dependency>
|
|
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.ehcache</groupId>
|
|
<artifactId>ehcache</artifactId>
|
|
<version>3.3.1</version>
|
|
</dependency>
|
|
-->
|
|
|
|
<dependency>
|
|
<groupId>net.sf.ehcache</groupId>
|
|
<artifactId>ehcache-core</artifactId>
|
|
<version>2.6.11</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.sf.ehcache</groupId>
|
|
<artifactId>ehcache</artifactId>
|
|
<version>2.10.4</version>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.sf.ehcache</groupId>
|
|
<artifactId>ehcache-jgroupsreplication</artifactId>
|
|
<version>1.7</version>
|
|
</dependency>
|
|
|
|
<!-- depending on a use case, one should use Spring Context or Spring Boot jars -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-context</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-context-support</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-jpa</artifactId>
|
|
<version>2.0.5.RELEASE</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-keyvalue</artifactId>
|
|
<version>2.0.5.RELEASE</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-orm</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-tx</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.security</groupId>
|
|
<artifactId>spring-security-web</artifactId>
|
|
<version>5.0.0.M2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-aspects</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
<!-- ... -->
|
|
|
|
<dependency>
|
|
<groupId>joda-time</groupId>
|
|
<artifactId>joda-time</artifactId>
|
|
<version>2.9.9</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.16.16</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.12</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
<artifactId>metrics-core</artifactId>
|
|
<version>${metrics.version}</version>
|
|
</dependency>
|
|
|
|
<!--
|
|
<dependency>
|
|
<groupId>com.codahale.metrics</groupId>
|
|
<artifactId>metrics-annotation</artifactId>
|
|
<version>${metrics-version}</version>
|
|
</dependency>
|
|
-->
|
|
|
|
<dependency>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
<artifactId>metrics-logback</artifactId>
|
|
<version>3.2.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
<artifactId>metrics-jvm</artifactId>
|
|
<version>${metrics.version}</version>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
<artifactId>metrics-healthchecks</artifactId>
|
|
<version>${metrics.version}</version>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
<artifactId>metrics-graphite</artifactId>
|
|
<version>${metrics.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
<artifactId>metrics-ehcache</artifactId>
|
|
<version>${metrics.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.ryantenney.metrics</groupId>
|
|
<artifactId>metrics-spring</artifactId>
|
|
<version>3.1.3</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.riemann</groupId>
|
|
<artifactId>metrics3-riemann-reporter</artifactId>
|
|
<version>0.4.5</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>defunkt</groupId>
|
|
<artifactId>logback-riemann-appender</artifactId>
|
|
<version>0.4.0</version>
|
|
</dependency>
|
|
|
|
<!--
|
|
<dependency>
|
|
<groupId>io.astefanutti.metrics.aspectj</groupId>
|
|
<artifactId>metrics-aspectj</artifactId>
|
|
<version>1.2.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.glassfish.web</groupId>
|
|
<artifactId>javax.el</artifactId>
|
|
<version>2.2.6</version>
|
|
</dependency>
|
|
-->
|
|
|
|
<dependency>
|
|
<groupId>javax.inject</groupId>
|
|
<artifactId>javax.inject</artifactId>
|
|
<version>1</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${basedir}</directory>
|
|
<includes>
|
|
<include>*.log</include>
|
|
</includes>
|
|
</fileset>
|
|
<fileset>
|
|
<directory>${basedir}/testDB</directory>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.5.1</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>aspectj-maven-plugin</artifactId>
|
|
<version>1.10</version>
|
|
<configuration>
|
|
<!-- aspectLibraries>
|
|
<aspectLibrary>
|
|
<groupId>io.astefanutti.metrics.aspectj</groupId>
|
|
<artifactId>metrics-aspectj</artifactId>
|
|
</aspectLibrary>
|
|
</aspectLibraries -->
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
<goal>test-compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<showWeaveInfo/>
|
|
<forceAjcCompile>true</forceAjcCompile>
|
|
<sources/>
|
|
<weaveDirectories>
|
|
<weaveDirectory>${project.build.directory}/classes</weaveDirectory>
|
|
</weaveDirectories>
|
|
<complianceLevel>${java.version}</complianceLevel>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
<Xlint>ignore</Xlint>
|
|
<!--
|
|
<aspectLibraries>
|
|
<aspectLibrary>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjrt</artifactId>
|
|
</aspectLibrary>
|
|
<aspectLibrary>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-aspects</artifactId>
|
|
</aspectLibrary>
|
|
</aspectLibraries>
|
|
-->
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjrt</artifactId>
|
|
<version>${aspectj.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjtools</artifactId>
|
|
<version>${aspectj.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<!-- DataNucleus compile time weaving -->
|
|
<plugin>
|
|
<groupId>org.datanucleus</groupId>
|
|
<artifactId>datanucleus-maven-plugin</artifactId>
|
|
<configuration>
|
|
<api>JPA</api>
|
|
<persistenceUnitName>crud</persistenceUnitName>
|
|
<persistenceUnitName>mongo</persistenceUnitName>
|
|
<verbose>true</verbose>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>enhance</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>1.1</version>
|
|
<configuration>
|
|
<mainClass>com.example.crud.Main</mainClass>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>2.2.1</version>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>${basedir}/assembly.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|