mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
193 lines
7.9 KiB
XML
193 lines
7.9 KiB
XML
<?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">
|
|
<parent>
|
|
<artifactId>shamrock-examples-parent</artifactId>
|
|
<groupId>org.jboss.shamrock</groupId>
|
|
<version>1.0.0.Alpha1-SNAPSHOT</version>
|
|
<relativePath>../</relativePath>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>shamrock-strict-jpa-example</artifactId>
|
|
<description>An example that only contains JPA related tests running in strict mode</description>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jboss.shamrock</groupId>
|
|
<artifactId>shamrock-jaxrs-deployment</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.shamrock</groupId>
|
|
<artifactId>shamrock-jpa-deployment</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.postgresql</groupId>
|
|
<artifactId>postgresql-protean</artifactId>
|
|
<version>42.2.5-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<!-- test dependencies -->
|
|
<dependency>
|
|
<groupId>org.jboss.shamrock</groupId>
|
|
<artifactId>shamrock-junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.shamrock</groupId>
|
|
<artifactId>shamrock-graal</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.glassfish</groupId>
|
|
<artifactId>javax.json</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>shamrock-maven-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>native-image</id>
|
|
<activation>
|
|
<property>
|
|
<name>!no-native</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
<configuration>
|
|
<systemProperties>
|
|
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
|
|
</systemProperties>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>shamrock-maven-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>native-image</id>
|
|
<goals>
|
|
<goal>native-image</goal>
|
|
</goals>
|
|
<configuration>
|
|
<reportErrorsAtRuntime>false</reportErrorsAtRuntime>
|
|
<cleanupServer>true</cleanupServer>
|
|
<enableHttpUrlHandler>true</enableHttpUrlHandler>
|
|
<!-- Requires Protean Graal fork to work, will fail otherwise
|
|
<enableRetainedHeapReporting>true</enableRetainedHeapReporting>
|
|
<enableCodeSizeReporting>true</enableCodeSizeReporting>
|
|
-->
|
|
<graalvmHome>${graalvmHome}</graalvmHome>
|
|
<enableJni>false</enableJni>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>postgres</id>
|
|
<activation>
|
|
<property>
|
|
<name>!no-postgres</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>0.26.1</version>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>postgres:10.5</name>
|
|
<alias>postgresql</alias>
|
|
<run>
|
|
<env>
|
|
<POSTGRES_USER>hibernate_orm_test</POSTGRES_USER>
|
|
<POSTGRES_PASSWORD>hibernate_orm_test</POSTGRES_PASSWORD>
|
|
<POSTGRES_DB>hibernate_orm_test</POSTGRES_DB>
|
|
</env>
|
|
<ports>
|
|
<port>5432:5432</port>
|
|
</ports>
|
|
<wait>
|
|
<tcp>
|
|
<mode>mapped</mode>
|
|
<ports>
|
|
<port>5432</port>
|
|
</ports>
|
|
</tcp>
|
|
<time>10000</time>
|
|
</wait>
|
|
</run>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>docker-start</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>stop</goal>
|
|
<goal>start</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>docker-stop</id>
|
|
<phase>post-integration-test</phase>
|
|
<goals>
|
|
<goal>stop</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
|
|
</project>
|