Skip to content

Commit 322f019

Browse files
added plugin to create jar with dependencies
1 parent 0204c9f commit 322f019

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

dependency-reduced-pom.xml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>org.simplymequeeny</groupId>
5+
<artifactId>json-string-schema-generator</artifactId>
6+
<version>1.0.2-SNAPSHOT</version>
7+
<scm>
8+
<connection>scm:git:git://github.com/simplymequeeny/json-string-schema-generator.git</connection>
9+
<developerConnection>scm:git:[email protected]:simplymequeeny/json-string-schema-generator.git</developerConnection>
10+
<url>https://github.com/simplymequeeny/json-string-schema-generator</url>
11+
</scm>
12+
<build>
13+
<plugins>
14+
<plugin>
15+
<artifactId>maven-compiler-plugin</artifactId>
16+
<configuration>
17+
<source>${jdk.version}</source>
18+
<target>${jdk.version}</target>
19+
</configuration>
20+
</plugin>
21+
<plugin>
22+
<artifactId>maven-release-plugin</artifactId>
23+
<version>2.5.3</version>
24+
</plugin>
25+
<plugin>
26+
<groupId>org.codehaus.mojo</groupId>
27+
<artifactId>cobertura-maven-plugin</artifactId>
28+
<version>2.7</version>
29+
<dependencies>
30+
<dependency>
31+
<groupId>org.ow2.asm</groupId>
32+
<artifactId>asm</artifactId>
33+
<version>5.0.3</version>
34+
</dependency>
35+
</dependencies>
36+
<configuration>
37+
<formats>
38+
<format>html</format>
39+
<format>xml</format>
40+
</formats>
41+
<check />
42+
</configuration>
43+
</plugin>
44+
<plugin>
45+
<artifactId>maven-shade-plugin</artifactId>
46+
<executions>
47+
<execution>
48+
<phase>package</phase>
49+
<goals>
50+
<goal>shade</goal>
51+
</goals>
52+
</execution>
53+
</executions>
54+
</plugin>
55+
</plugins>
56+
</build>
57+
<repositories>
58+
<repository>
59+
<id>jitpack.io</id>
60+
<url>https://jitpack.io</url>
61+
</repository>
62+
</repositories>
63+
<dependencies>
64+
<dependency>
65+
<groupId>junit</groupId>
66+
<artifactId>junit</artifactId>
67+
<version>4.12</version>
68+
<scope>test</scope>
69+
<exclusions>
70+
<exclusion>
71+
<artifactId>hamcrest-core</artifactId>
72+
<groupId>org.hamcrest</groupId>
73+
</exclusion>
74+
</exclusions>
75+
</dependency>
76+
</dependencies>
77+
<distributionManagement>
78+
<repository>
79+
<id>internal.repo</id>
80+
<name>Temporary Staging Repository</name>
81+
<url>file://${project.build.directory}/staging-repo</url>
82+
</repository>
83+
</distributionManagement>
84+
<properties>
85+
<jdk.version>1.8</jdk.version>
86+
<jackson.version>2.9.0.pr4</jackson.version>
87+
</properties>
88+
</project>
89+

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@
8383
</dependency>
8484
</dependencies>
8585
</plugin>
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-shade-plugin</artifactId>
89+
<executions>
90+
<execution>
91+
<phase>package</phase>
92+
<goals>
93+
<goal>shade</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
</plugin>
8698
</plugins>
8799
</build>
88100

0 commit comments

Comments
 (0)