Last active
October 29, 2015 13:58
-
-
Save cescoffier/80c6cdd4e0600d9acf86 to your computer and use it in GitHub Desktop.
Pom with docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>io.vertx.devoxx</groupId> | |
<artifactId>micro-service-workshop</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<properties> | |
<vertx.version>3.1.0</vertx.version> | |
</properties> | |
<modules> | |
<module>data-provisioning</module> | |
<module>data-storage-service</module> | |
<module>data-storage-client</module> | |
<module>eventbus-to-hawkular-bridge</module> | |
</modules> | |
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-dependencies</artifactId> | |
<version>${vertx.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-core</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-hazelcast</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-codegen</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>2.3</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<transformers> | |
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
<manifestEntries> | |
<Main-Class>io.vertx.core.Launcher</Main-Class> | |
<Main-Verticle>${main.verticle}</Main-Verticle> | |
</manifestEntries> | |
</transformer> | |
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> | |
<resource>META-INF/services/io.vertx.core.spi.VerticleFactory</resource> | |
</transformer> | |
</transformers> | |
<artifactSet> | |
</artifactSet> | |
<outputFile>${project.build.directory}/${project.artifactId}-${project.version}-fat.jar</outputFile> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.jolokia</groupId> | |
<artifactId>docker-maven-plugin</artifactId> | |
<version>0.13.6</version> | |
<configuration> | |
<images> | |
<image> | |
<name>vertx-devoxx/${project.artifactId}:${project.version}</name> | |
<build> | |
<from>java:openjdk-8u66-jre</from> | |
<tags> | |
<tag>latest</tag> | |
</tags> | |
<entryPoint> | |
<exec> | |
<arg>java</arg> | |
<arg>-jar</arg> | |
<arg>/opt/vertx/vertx-service-fat.jar</arg> | |
<arg>--conf=/opt/vertx/config.json</arg> | |
<arg>--cluster</arg> | |
</exec> | |
</entryPoint> | |
<assembly> | |
<mode>dir</mode> | |
<basedir>/opt/vertx</basedir> | |
<descriptor>${project.basedir}/src/main/docker/assembly.xml</descriptor> | |
</assembly> | |
</build> | |
</image> | |
</images> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-resources-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>add-groovy-sources</id> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>copy-resources</goal> | |
</goals> | |
<configuration> | |
<outputDirectory>${project.build.outputDirectory}</outputDirectory> | |
<resources> | |
<resource> | |
<directory>${project.basedir}/src/main/groovy</directory> | |
</resource> | |
</resources> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.3</version> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
<annotationProcessors> | |
<annotationProcessor>io.vertx.codegen.CodeGenProcessor</annotationProcessor> | |
</annotationProcessors> | |
<compilerArgs> | |
<arg>-AoutputDirectory=${project.basedir}/src/main</arg> | |
</compilerArgs> | |
<generatedSourcesDirectory>${project.basedir}/src/main/generated</generatedSourcesDirectory> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
<parent> | |
<groupId>io.vertx.devoxx</groupId> | |
<artifactId>micro-service-workshop</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
</parent> | |
<artifactId>data-storage-service</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<name>Data Storage Service</name> | |
<properties> | |
<main.verticle>io.vertx.devoxx.data.impl.DataStorageVerticle</main.verticle> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-mongo-client</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-codegen</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-service-proxy</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-lang-groovy</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.vertx</groupId> | |
<artifactId>vertx-lang-js</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.jolokia</groupId> | |
<artifactId>docker-maven-plugin</artifactId> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment