192 lines
7.9 KiB
XML
192 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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>com.baeldung.singletonsession</groupId>
|
|
<artifactId>ejb-beans</artifactId>
|
|
<name>ejb-beans</name>
|
|
|
|
<parent>
|
|
<groupId>com.baeldung.spring.ejb</groupId>
|
|
<artifactId>spring-ejb</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian</groupId>
|
|
<artifactId>arquillian-bom</artifactId>
|
|
<version>${arquillian-bom.version}</version>
|
|
<scope>import</scope>
|
|
<type>pom</type>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<!-- https://mvnrepository.com/artifact/javax/javaee-api -->
|
|
<dependency>
|
|
<groupId>javax</groupId>
|
|
<artifactId>javaee-api</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.openejb</groupId>
|
|
<artifactId>tomee-embedded</artifactId>
|
|
<version>${tomee-embedded.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-context</artifactId>
|
|
<version>${springframework.version}</version>
|
|
</dependency>
|
|
<!-- Dependency for EJB javax -->
|
|
<dependency>
|
|
<groupId>javax.ejb</groupId>
|
|
<artifactId>javax.ejb-api</artifactId>
|
|
<version>${javax.ejb-api.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Spring JMS -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-jms</artifactId>
|
|
<version>${springframework.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>commons-logging</artifactId>
|
|
<groupId>commons-logging</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!-- ActiveMQ -->
|
|
<dependency>
|
|
<groupId>org.apache.activemq</groupId>
|
|
<artifactId>activemq-broker</artifactId>
|
|
<version>${activemq.broker.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.activemq.tooling</groupId>
|
|
<artifactId>activemq-junit</artifactId>
|
|
<version>${activemq.junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.junit</groupId>
|
|
<artifactId>arquillian-junit-container</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>wildfly-managed-arquillian</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.wildfly</groupId>
|
|
<artifactId>wildfly-arquillian-container-managed</artifactId>
|
|
<version>${wildfly.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>${maven-dependency-plugin.version}</version>
|
|
<configuration>
|
|
<skip>${maven.test.skip}</skip>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.wildfly</groupId>
|
|
<artifactId>wildfly-dist</artifactId>
|
|
<version>${wildfly.version}</version>
|
|
<type>zip</type>
|
|
<overWrite>false</overWrite>
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
<configuration>
|
|
<!-- Fork every test because it will launch a separate AS instance -->
|
|
<forkMode>always</forkMode>
|
|
<systemProperties>
|
|
<property>
|
|
<name>java.util.logging.config.file</name>
|
|
<value>src/test/resources/logging.properties</value>
|
|
</property>
|
|
</systemProperties>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>arquillian-glassfish-embedded</id>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.container</groupId>
|
|
<artifactId>arquillian-glassfish-embedded-3.1</artifactId>
|
|
<version>${arquillian-glassfish-embedded-3.1.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.glassfish.main.extras</groupId>
|
|
<artifactId>glassfish-embedded-all</artifactId>
|
|
<version>${glassfish-embedded-all.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>${maven-war-plugin.version}</version>
|
|
<configuration>
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<properties>
|
|
<arquillian-bom.version>1.1.13.Final</arquillian-bom.version>
|
|
<tomee-embedded.version>1.7.5</tomee-embedded.version>
|
|
<glassfish-embedded-all.version>3.1.2</glassfish-embedded-all.version>
|
|
<arquillian-glassfish-embedded-3.1.version>1.0.0.CR4</arquillian-glassfish-embedded-3.1.version>
|
|
<wildfly.version>8.2.1.Final</wildfly.version>
|
|
<javax.ejb-api.version>3.2</javax.ejb-api.version>
|
|
<springframework.version>5.2.3.RELEASE</springframework.version>
|
|
<activemq.broker.version>5.10.2</activemq.broker.version>
|
|
<activemq.junit.version>5.13.1</activemq.junit.version>
|
|
<mockito.version>2.21.0</mockito.version>
|
|
<maven-dependency-plugin.version>2.8</maven-dependency-plugin.version>
|
|
<wildfly-ejb.version>8.2.1.Final</wildfly-ejb.version>
|
|
</properties>
|
|
|
|
</project> |