83 lines
3.1 KiB
XML
83 lines
3.1 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/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<artifactId>app</artifactId>
|
|
<groupId>pl.myboardgames</groupId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>module-ear</artifactId>
|
|
<packaging>ear</packaging>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>pl.myboardgames</groupId>
|
|
<artifactId>module-web</artifactId>
|
|
<type>war</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>pl.myboardgames</groupId>
|
|
<artifactId>module-ejb</artifactId>
|
|
<type>ejb</type>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>pl.myboardgames</groupId>
|
|
<artifactId>module-ear</artifactId>
|
|
<type>ear</type>
|
|
<overWrite>true</overWrite>
|
|
<destFileName>myboardgames.ear</destFileName>
|
|
<version>1.0-SNAPSHOT</version>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<outputDirectory>${project.basedir}/../docker/deployments</outputDirectory>
|
|
<stripVersion>true</stripVersion>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>1.6.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<executable>docker-compose</executable>
|
|
<workingDirectory>../docker</workingDirectory>
|
|
<arguments>
|
|
<argument>up</argument>
|
|
<argument>-d</argument>
|
|
<argument>--build</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|