Skip to content

Commit 5a3029a

Browse files
Merge pull request #16 from ParikshithKedilayaM/Ashutosh
added dependencies jar plugin
2 parents a4b267c + 3f58b9e commit 5a3029a

File tree

1 file changed

+54
-17
lines changed

1 file changed

+54
-17
lines changed

pom.xml

Lines changed: 54 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,67 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
65
<groupId>edu.asu</groupId>
76
<artifactId>sparky</artifactId>
87
<version>0.0.1-SNAPSHOT</version>
9-
<build>
10-
<plugins>
11-
<plugin>
12-
<groupId>org.apache.maven.plugins</groupId>
13-
<artifactId>maven-compiler-plugin</artifactId>
14-
<configuration>
15-
<source>7</source>
16-
<target>7</target>
17-
</configuration>
18-
</plugin>
19-
</plugins>
20-
</build>
21-
<packaging>jar</packaging>
8+
<build>
9+
<plugins>
10+
<plugin>
11+
<groupId>org.apache.maven.plugins</groupId>
12+
<artifactId>maven-compiler-plugin</artifactId>
13+
<version>3.8.1</version>
14+
<configuration>
15+
<source>1.8</source>
16+
<target>1.8</target>
17+
</configuration>
18+
</plugin>
19+
<plugin>
20+
<artifactId>maven-assembly-plugin</artifactId>
21+
<configuration>
22+
<archive>
23+
<manifest>
24+
<mainClass>edu.asu.ser502.App</mainClass>
25+
</manifest>
26+
</archive>
27+
<descriptorRefs>
28+
<descriptorRef>jar-with-dependencies</descriptorRef>
29+
</descriptorRefs>
30+
</configuration>
31+
<executions>
32+
<execution>
33+
<id>make-assembly</id> <!-- this is used for inheritance merges -->
34+
<phase>package</phase> <!-- bind to the packaging phase -->
35+
<goals>
36+
<goal>single</goal>
37+
</goals>
38+
</execution>
39+
</executions>
40+
</plugin>
41+
<plugin>
42+
<groupId>org.apache.maven.plugins</groupId>
43+
<artifactId>maven-jar-plugin</artifactId>
44+
<version>3.0.2</version>
45+
<configuration>
46+
<archive>
47+
<manifest>
48+
<mainClass>edu.asu.ser502.App</mainClass>
49+
<addClasspath>true</addClasspath>
50+
</manifest>
51+
</archive>
52+
</configuration>
53+
</plugin>
54+
</plugins>
55+
</build>
56+
<packaging>jar</packaging>
2257

2358
<name>sparky</name>
2459
<url>http://maven.apache.org</url>
2560

2661
<properties>
2762
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
63+
<maven.compiler.source>1.8</maven.compiler.source>
64+
<maven.compiler.target>1.8</maven.compiler.target>
2865
</properties>
2966

3067
<dependencies>
@@ -36,4 +73,4 @@
3673
</dependency>
3774

3875
</dependencies>
39-
</project>
76+
</project>

0 commit comments

Comments
 (0)