|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <parent> |
| 6 | + <groupId>io.vertx</groupId> |
| 7 | + <artifactId>vertx-examples</artifactId> |
| 8 | + <version>3.0.0-SNAPSHOT</version> |
| 9 | + <relativePath>../../pom.xml</relativePath> |
| 10 | + </parent> |
| 11 | + |
| 12 | + <modelVersion>4.0.0</modelVersion> |
| 13 | + |
| 14 | + <artifactId>vertx-docker-example-fabric</artifactId> |
| 15 | + <name>Sample Docker Image for Fabric8</name> |
| 16 | + |
| 17 | + <properties> |
| 18 | + <!-- Metadata to generate the kubernates.json - ignore them if you don't plan to use kubernates / fabric8 --> |
| 19 | + <docker.image>vertx/vertx3-example-fabric8</docker.image> |
| 20 | + <fabric8.label.container>vert.x</fabric8.label.container> |
| 21 | + <fabric8.label.group>example</fabric8.label.group> |
| 22 | + <docker.port.container.http>8080</docker.port.container.http> |
| 23 | + </properties> |
| 24 | + |
| 25 | + |
| 26 | + <dependencies> |
| 27 | + <dependency> |
| 28 | + <groupId>io.vertx</groupId> |
| 29 | + <artifactId>vertx-core</artifactId> |
| 30 | + <version>3.0.0-SNAPSHOT</version> |
| 31 | + </dependency> |
| 32 | + </dependencies> |
| 33 | + |
| 34 | + <build> |
| 35 | + <plugins> |
| 36 | + <plugin> |
| 37 | + <artifactId>maven-compiler-plugin</artifactId> |
| 38 | + <version>3.1</version> |
| 39 | + <configuration> |
| 40 | + <source>1.8</source> |
| 41 | + <target>1.8</target> |
| 42 | + </configuration> |
| 43 | + </plugin> |
| 44 | + |
| 45 | + <plugin> |
| 46 | + <groupId>org.jolokia</groupId> |
| 47 | + <artifactId>docker-maven-plugin</artifactId> |
| 48 | + <version>0.11.5</version> |
| 49 | + <executions> |
| 50 | + <execution> |
| 51 | + <id>build</id> |
| 52 | + <phase>package</phase> |
| 53 | + <goals> |
| 54 | + <goal>build</goal> |
| 55 | + </goals> |
| 56 | + </execution> |
| 57 | + </executions> |
| 58 | + <configuration> |
| 59 | + <images> |
| 60 | + <image> |
| 61 | + <name>${docker.image}</name> |
| 62 | + <build> |
| 63 | + <from>vertx/vertx3</from> |
| 64 | + <tags> |
| 65 | + <tag>${project.version}</tag> |
| 66 | + </tags> |
| 67 | + <ports> |
| 68 | + <port>8080</port> |
| 69 | + </ports> |
| 70 | + <command>vertx run io.vertx.example.HelloWorldVerticle -cp |
| 71 | + /usr/verticles/${project.artifactId}-${project.version}.jar |
| 72 | + </command> |
| 73 | + <assembly> |
| 74 | + <mode>dir</mode> |
| 75 | + <basedir>/usr/verticles</basedir> |
| 76 | + <descriptor>assembly.xml</descriptor> |
| 77 | + </assembly> |
| 78 | + </build> |
| 79 | + </image> |
| 80 | + </images> |
| 81 | + </configuration> |
| 82 | + </plugin> |
| 83 | + |
| 84 | + <plugin> |
| 85 | + <groupId>io.fabric8</groupId> |
| 86 | + <artifactId>fabric8-maven-plugin</artifactId> |
| 87 | + <version>2.1.4</version> |
| 88 | + <executions> |
| 89 | + <execution> |
| 90 | + <id>json</id> |
| 91 | + <phase>generate-resources</phase> |
| 92 | + <goals> |
| 93 | + <goal>json</goal> |
| 94 | + </goals> |
| 95 | + </execution> |
| 96 | + <execution> |
| 97 | + <id>attach</id> |
| 98 | + <phase>package</phase> |
| 99 | + <goals> |
| 100 | + <goal>attach</goal> |
| 101 | + </goals> |
| 102 | + </execution> |
| 103 | + </executions> |
| 104 | + </plugin> |
| 105 | + |
| 106 | + <plugin> |
| 107 | + <artifactId>maven-deploy-plugin</artifactId> |
| 108 | + <configuration> |
| 109 | + <!-- should not be deployed --> |
| 110 | + <skip>true</skip> |
| 111 | + </configuration> |
| 112 | + </plugin> |
| 113 | + </plugins> |
| 114 | + </build> |
| 115 | +</project> |
0 commit comments