|
| 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 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>com.miguno</groupId> |
| 8 | + <artifactId>java-docker-build</artifactId> |
| 9 | + <packaging>jar</packaging> |
| 10 | + <version>1.0.0-SNAPSHOT</version> |
| 11 | + <name>java-docker-build</name> |
| 12 | + |
| 13 | + <licenses> |
| 14 | + <license> |
| 15 | + <name>Apache License 2.0</name> |
| 16 | + <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> |
| 17 | + <distribution>repo</distribution> |
| 18 | + </license> |
| 19 | + </licenses> |
| 20 | + |
| 21 | + <properties> |
| 22 | + <java.version>8</java.version> |
| 23 | + <jersey.version>2.27</jersey.version> |
| 24 | + <junit.version>4.12</junit.version> |
| 25 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 26 | + </properties> |
| 27 | + |
| 28 | + <dependencyManagement> |
| 29 | + <dependencies> |
| 30 | + <dependency> |
| 31 | + <groupId>org.glassfish.jersey</groupId> |
| 32 | + <artifactId>jersey-bom</artifactId> |
| 33 | + <version>${jersey.version}</version> |
| 34 | + <type>pom</type> |
| 35 | + <scope>import</scope> |
| 36 | + </dependency> |
| 37 | + </dependencies> |
| 38 | + </dependencyManagement> |
| 39 | + |
| 40 | + <dependencies> |
| 41 | + |
| 42 | + <dependency> |
| 43 | + <groupId>org.glassfish.jersey.containers</groupId> |
| 44 | + <artifactId>jersey-container-grizzly2-http</artifactId> |
| 45 | + </dependency> |
| 46 | + |
| 47 | + <dependency> |
| 48 | + <groupId>org.glassfish.jersey.inject</groupId> |
| 49 | + <artifactId>jersey-hk2</artifactId> |
| 50 | + <exclusions> |
| 51 | + <exclusion> |
| 52 | + <groupId>javax.inject</groupId> |
| 53 | + <artifactId>javax.inject</artifactId> |
| 54 | + </exclusion> |
| 55 | + </exclusions> |
| 56 | + </dependency> |
| 57 | + |
| 58 | + <dependency> |
| 59 | + <groupId>junit</groupId> |
| 60 | + <artifactId>junit</artifactId> |
| 61 | + <version>${junit.version}</version> |
| 62 | + <scope>test</scope> |
| 63 | + </dependency> |
| 64 | + |
| 65 | + </dependencies> |
| 66 | + |
| 67 | + <build> |
| 68 | + <plugins> |
| 69 | + |
| 70 | + <plugin> |
| 71 | + <groupId>org.apache.maven.plugins</groupId> |
| 72 | + <artifactId>maven-compiler-plugin</artifactId> |
| 73 | + <version>3.7.0</version> |
| 74 | + <configuration> |
| 75 | + <source>${java.version}</source> |
| 76 | + <target>${java.version}</target> |
| 77 | + </configuration> |
| 78 | + </plugin> |
| 79 | + |
| 80 | + <plugin> |
| 81 | + <groupId>org.apache.maven.plugins</groupId> |
| 82 | + <artifactId>maven-shade-plugin</artifactId> |
| 83 | + <version>3.1.1</version> |
| 84 | + <configuration> |
| 85 | + <finalName>app</finalName> |
| 86 | + </configuration> |
| 87 | + <executions> |
| 88 | + <execution> |
| 89 | + <phase>package</phase> |
| 90 | + <goals> |
| 91 | + <goal>shade</goal> |
| 92 | + </goals> |
| 93 | + <configuration> |
| 94 | + <transformers> |
| 95 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 96 | + <mainClass>com.miguno.App</mainClass> |
| 97 | + </transformer> |
| 98 | + </transformers> |
| 99 | + </configuration> |
| 100 | + </execution> |
| 101 | + </executions> |
| 102 | + </plugin> |
| 103 | + |
| 104 | + </plugins> |
| 105 | + </build> |
| 106 | + |
| 107 | +</project> |
0 commit comments