124 lines
3.6 KiB
XML
124 lines
3.6 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">
|
|
<groupId>pro.taskana</groupId>
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>2.0.2.RELEASE</version>
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
</parent>
|
|
<version>1.0.6-SNAPSHOT</version>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>taskana-rest-wildfly-example</artifactId>
|
|
<packaging>war</packaging>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<version>2.0.2.RELEASE</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>pro.taskana</groupId>
|
|
<artifactId>taskana-rest-spring</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>pro.taskana</groupId>
|
|
<artifactId>taskana-rest-configuration</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.plugin</groupId>
|
|
<artifactId>spring-plugin-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
<version>3.1.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.wildfly.plugins</groupId>
|
|
<artifactId>wildfly-maven-plugin</artifactId>
|
|
<version>2.0.0.Final</version>
|
|
<executions>
|
|
<execution>
|
|
<id>run-wildfly</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>start</goal>
|
|
</goals>
|
|
</execution>
|
|
<!-- Deploy the JDBC library -->
|
|
<!--<execution>
|
|
<id>deploy-driver</id>
|
|
<phase>install</phase>
|
|
<configuration>
|
|
<groupId>postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
<name>postgresql.jar</name>
|
|
</configuration>
|
|
<goals>
|
|
<goal>deploy-artifact</goal>
|
|
</goals>
|
|
</execution>-->
|
|
<!-- Add a data source -->
|
|
<execution>
|
|
<id>add-datasource</id>
|
|
<phase>install</phase>
|
|
<configuration>
|
|
<address>subsystem=datasources,data-source=java:/TaskanaDS</address>
|
|
<resources>
|
|
<resource>
|
|
<properties>
|
|
<jndi-name>java:/TaskanaDS</jndi-name>
|
|
<enabled>true</enabled>
|
|
<connection-url>jdbc:h2:mem:taskana;IGNORECASE=TRUE;LOCK_MODE=0</connection-url>
|
|
<driver-class>org.h2.Driver</driver-class>
|
|
<driver-name>h2</driver-name>
|
|
<user-name>sa</user-name>
|
|
<password>sa</password>
|
|
</properties>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
<goals>
|
|
<goal>add-resource</goal>
|
|
</goals>
|
|
</execution>
|
|
<!-- Deploy the application on install -->
|
|
<execution>
|
|
<id>wildfly-deploy</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>deploy</goal>
|
|
</goals>
|
|
</execution>
|
|
<!-- shutdown the application on install -->
|
|
<execution>
|
|
<id>wildfly-shutdown</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>shutdown</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project> |