nazgul-core-model-parent
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>se.jguru.nazgul.core.poms.core-model-parent</groupId>
<artifactId>nazgul-core-model-parent</artifactId>
<version>3.0.0</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
~ #%L
~ Nazgul Project: nazgul-core-model-parent
~ %%
~ Copyright (C) 2010 - 2017 jGuru Europe AB
~ %%
~ Licensed under the jGuru Europe AB license (the "License"), based
~ on Apache License, Version 2.0; you may not use this file except
~ in compliance with the License.
~
~ You may obtain a copy of the License at
~
~ http://www.jguru.se/licenses/jguruCorporateSourceLicense-2.0.txt
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~ #L%
~
-->
<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>
<!-- +=============================================== -->
<!-- | Section 1: Project information -->
<!-- +=============================================== -->
<parent>
<groupId>se.jguru.nazgul.core.poms.core-api-parent</groupId>
<artifactId>nazgul-core-api-parent</artifactId>
<version>3.0.0</version>
<relativePath>../core-api-parent</relativePath>
</parent>
<groupId>se.jguru.nazgul.core.poms.core-model-parent</groupId>
<artifactId>nazgul-core-model-parent</artifactId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<url>${url.prefix}/${path.in.reactor}</url>
<properties>
<path.in.reactor>core/poms/core-model-parent</path.in.reactor>
</properties>
<!-- +=============================================== -->
<!-- | Section 2: Dependency (management) settings -->
<!-- +=============================================== -->
<dependencies>
<!--
Ensure that we don't run into problems with old versions of Xalan and Xerces.
-->
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<!-- +=============================================== -->
<!-- | Section 3: Build settings -->
<!-- +=============================================== -->
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${project.build.directory}/jaxb2/transformed</directory>
<includes>
<include>**/*.xsd</include>
</includes>
</resource>
</resources>
<plugins>
<!--
Configure the Surefire plugin to run using the "pertest" forkMode.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>pertest</forkMode>
<argLine>${surefire.argLine}</argLine>
<systemPropertyVariables>
<jpa_provider_class>${jpa.provider.class}</jpa_provider_class>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<!-- +=============================================== -->
<!-- | Section 5: Profiles -->
<!-- +=============================================== -->
<profiles>
<profile>
<id>eclipselink2</id>
<activation>
<property>
<name>!jpaProvider</name>
</property>
</activation>
<properties>
<jpa.provider.class>org.eclipse.persistence.jpa.PersistenceProvider</jpa.provider.class>
<surefire.javaagent>-javaagent:${basedir}/target/eclipselink.jar</surefire.javaagent>
<surefire.argLine>${surefire.javaagent} ${surefire.memconf} ${surefire.encoding}</surefire.argLine>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>2.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>${org.eclipse.persistence.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.1.0.Final</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!--
Use the dependency plugin to copy the EclipseLink runtime
to the target directory.
-->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>${org.eclipse.persistence.version}</version>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>eclipselink.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>openjpa2</id>
<activation>
<property>
<name>jpaProvider</name>
<value>openjpa2</value>
</property>
</activation>
<properties>
<openjpa.version>2.2.2</openjpa.version>
<openjpa.includes>se/jguru/nazgul/**/*.class</openjpa.includes>
<openjpa.excludes>se/jguru/nazgul/core/xmlbinding/spi/jaxb/transport/EntityWrapper.class</openjpa.excludes>
<openjpa.persistenceXmlPath>weaving/openjpa/v2/${project.artifactId}-persistence.xml</openjpa.persistenceXmlPath>
<openjpa.persistenceXmlFile>${project.basedir}/src/main/${openjpa.persistenceXmlPath}</openjpa.persistenceXmlFile>
<openjpa.persistenceXmlTestFile>${project.basedir}/src/test/${openjpa.persistenceXmlPath}</openjpa.persistenceXmlTestFile>
<jpa.provider.class>org.apache.openjpa.persistence.PersistenceProviderImpl</jpa.provider.class>
<surefire.argLine>-javaagent:${basedir}/target/openjpa.jar -Dfile.encoding=UTF-8 -Xmx1024m -XX:MaxPermSize=512m</surefire.argLine>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jpa_2.0_spec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
<version>${openjpa.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<!--
OpenJPA static enhancement.
-->
<plugin>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-maven-plugin</artifactId>
<version>${openjpa.version}</version>
<configuration>
<includes>${openjpa.includes}</includes>
<excludes>${openjpa.excludes}</excludes>
<addDefaultConstructor>true</addDefaultConstructor>
<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
</configuration>
<executions>
<execution>
<id>weave-openjpa-test-classes</id>
<phase>process-test-classes</phase>
<goals>
<goal>test-enhance</goal>
</goals>
<configuration>
<persistenceXmlFile>${openjpa.persistenceXmlTestFile}</persistenceXmlFile>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
<version>${openjpa.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!--
Use the dependency plugin to copy the OpenJPA runtime
to the target directory.
-->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
<version>${openjpa.version}</version>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>openjpa.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>hibernate</id>
<activation>
<property>
<name>jpaProvider</name>
<value>hibernate</value>
</property>
</activation>
<properties>
<!-- JPA-related properties -->
<jpa.provider.class>org.hibernate.jpa.HibernatePersistenceProvider</jpa.provider.class>
<!-- Hibernate versions -->
<hibernate.version>4.3.10.Final</hibernate.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<!-- +=============================================== -->
<!-- | Section 4: External systems -->
<!-- +=============================================== -->
<!--
Define repository settings for Maven's deploy and release plugins.
Moved to settings.xml, as per recommendation within Maven specs.
-->
<distributionManagement>
<site>
<id>github_site</id>
<name>GitHub Site for Nazgul Core</name>
<url>${site.top.url}/${path.in.reactor}</url>
</site>
</distributionManagement>
<!--
Define connections for Maven's VCS integration.
-->
<scm>
<connection>${scm.connection.url}</connection>
<developerConnection>${scm.devConnection.url}</developerConnection>
<url>${scm.url}</url>
<tag>nazgul-core-3.0.0</tag>
</scm>
</project>