archetype-resources.pom.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: Apache-2.0 Copyright Blazebit --> <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>\${groupId}</groupId> <artifactId>\${artifactId}</artifactId> <version>\${version}</version> <packaging>war</packaging> <name>Blazebit Persistence DeltaSpike Data Sample</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <version.blaze-persistence>${project.version}</version.blaze-persistence> <version.deltaspike>1.9.3</version.deltaspike> <version.weld>2.4.5.Final</version.weld> <version.hibernate>5.0.12.Final</version.hibernate> <!-- For Hibernate 5.2 use "5.2" --> <version.integration-hibernate>5</version.integration-hibernate> <version.eclipselink>2.6.4</version.eclipselink> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.apache.deltaspike.distribution</groupId> <artifactId>distributions-bom</artifactId> <version>\${version.deltaspike}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-bom</artifactId> <version>\${version.blaze-persistence}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <version>3.1.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <!-- Enable the following to use preview features e.g. Java 14 records --> <!-- <compilerArgs>--enable-preview</compilerArgs>--> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M3</version> <configuration> <trimStackTrace>false</trimStackTrace> <!-- Enable the following to use preview features e.g. Java 14 records --> <!-- <argLine>--enable-preview</argLine>--> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.jboss.spec</groupId> <artifactId>jboss-javaee-7.0</artifactId> <version>1.1.0.Final</version> <type>pom</type> <scope>provided</scope> </dependency> <!-- Core dependencies --> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-core-api</artifactId> </dependency> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-core-impl</artifactId> </dependency> <!-- Entity View dependencies --> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-entity-view-api</artifactId> </dependency> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-entity-view-impl</artifactId> </dependency> <!-- DeltaSpike and CDI integration dependencies --> <dependency> <groupId>org.apache.deltaspike.modules</groupId> <artifactId>deltaspike-data-module-api</artifactId> </dependency> <dependency> <groupId>org.apache.deltaspike.modules</groupId> <artifactId>deltaspike-data-module-impl</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.deltaspike.core</groupId> <artifactId>deltaspike-core-impl</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-integration-entity-view-cdi</artifactId> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>blaze-persistence-integration-deltaspike-data-api</artifactId> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>blaze-persistence-integration-deltaspike-data-impl-1.8</artifactId> </dependency> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-entity-view-processor</artifactId> </dependency> <!-- JDK9+ dependencies --> <dependency> <groupId>jakarta.xml.bind</groupId> <artifactId>jakarta.xml.bind-api</artifactId> <version>2.3.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>jakarta.transaction</groupId> <artifactId>jakarta.transaction-api</artifactId> <version>1.3.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>jakarta.activation</groupId> <artifactId>jakarta.activation-api</artifactId> <version>1.2.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>jakarta.annotation</groupId> <artifactId>jakarta.annotation-api</artifactId> <version>1.3.5</version> <scope>provided</scope> </dependency> <!-- Test dependencies --> <dependency> <groupId>org.apache.deltaspike.cdictrl</groupId> <artifactId>deltaspike-cdictrl-weld</artifactId> <scope>test</scope> <exclusions> <exclusion> <artifactId>weld-api</artifactId> <groupId>org.jboss.weld</groupId> </exclusion> <exclusion> <artifactId>jboss-logging</artifactId> <groupId>org.jboss.logging</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.jboss.weld.se</groupId> <artifactId>weld-se-core</artifactId> <version>\${version.weld}</version> <scope>test</scope> <exclusions> <exclusion> <groupId>org.jboss</groupId> <artifactId>jandex</artifactId> </exclusion> </exclusions> </dependency> <!-- Since we are including a module-info.class file, we need at least 2.0.4.Final --> <dependency> <groupId>org.jboss</groupId> <artifactId>jandex</artifactId> <version>2.0.4.Final</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.4.200</version> <scope>test</scope> </dependency> </dependencies> <profiles> <profile> <id>wildfly</id> <activation> <activeByDefault>true</activeByDefault> </activation> <dependencies> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-integration-hibernate-${version.integration-hibernate}</artifactId> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>\${version.hibernate}</version> <scope>test</scope> </dependency> <!-- IntelliJ apparently needs the annotation processor here --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-jpamodelgen</artifactId> <version>\${version.hibernate}</version> <scope>provided</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <executions> <execution> <id>process</id> <goals> <goal>process</goal> </goals> <phase>generate-sources</phase> <configuration> <!-- source output directory --> <outputDirectory>\${project.build.directory}/metamodel</outputDirectory> <processors> <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor> <processor>com.blazebit.persistence.view.processor.EntityViewAnnotationProcessor</processor> </processors> </configuration> </execution> </executions> <dependencies> <!-- Metamodel --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-jpamodelgen</artifactId> <version>\${version.hibernate}</version> </dependency> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-entity-view-processor</artifactId> </dependency> </dependencies> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-source-metamodel</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>\${project.build.directory}/metamodel</source> </sources> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>glassfish</id> <dependencies> <dependency> <groupId>com.blazebit</groupId> <artifactId>blaze-persistence-integration-eclipselink</artifactId> </dependency> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>javax.persistence</artifactId> <version>2.1.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>eclipselink</artifactId> <version>\${version.eclipselink}</version> <scope>test</scope> </dependency> <!-- IntelliJ apparently needs the annotation processor here --> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId> <version>\${version.eclipselink}</version> <scope>provided</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>\${additional.source.directory}</source> <source>\${project.build.directory}/generated-sources/metamodel</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <executions> <execution> <id>process</id> <goals> <goal>process</goal> </goals> <phase>generate-sources</phase> <configuration> <!-- source output directory --> <outputDirectory>\${project.build.directory}/generated-sources/metamodel</outputDirectory> <processors> <processor>org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor</processor> </processors> <optionMap> <eclipselink.persistencexml>\${basedir}/src/main/resources/META-INF/persistence.xml</eclipselink.persistencexml> </optionMap> </configuration> </execution> </executions> <dependencies> <!-- Metamodel --> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId> <version>\${version.eclipselink}</version> </dependency> </dependencies> </plugin> </plugins> </build> </profile> </profiles> </project>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy