Skip to content

Commit d446570

Browse files
authored
Tambahkan sistem build jar full dependensi
1 parent dd40e4b commit d446570

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

pom.xml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,43 @@
1010
<resource>
1111
<directory>src/main/java</directory>
1212
</resource>
13-
</resources>
13+
</resources>
14+
<plugins>
15+
<plugin>
16+
<groupId>org.apache.maven.plugins</groupId>
17+
<artifactId>maven-jar-plugin</artifactId>
18+
<version>3.1.0</version>
19+
<configuration>
20+
<archive>
21+
<manifest>
22+
<addClasspath>true</addClasspath>
23+
<mainClass>com.m.ibrahimhanif.View.main</mainClass>
24+
</manifest>
25+
</archive>
26+
<excludes>
27+
<exclude>**/*.java</exclude>
28+
</excludes>
29+
</configuration>
30+
</plugin>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-shade-plugin</artifactId>
34+
<version>3.2.4</version>
35+
<executions>
36+
<execution>
37+
<phase>package</phase>
38+
<goals>
39+
<goal>shade</goal>
40+
</goals>
41+
<configuration>
42+
<createDependencyReducedPom>false</createDependencyReducedPom>
43+
<shadedArtifactAttached>true</shadedArtifactAttached>
44+
<shadedClassifierName>release</shadedClassifierName>
45+
</configuration>
46+
</execution>
47+
</executions>
48+
</plugin>
49+
</plugins>
1450
</build>
1551
<dependencies>
1652
<dependency>
@@ -44,6 +80,6 @@
4480
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4581
<maven.compiler.source>19</maven.compiler.source>
4682
<maven.compiler.target>19</maven.compiler.target>
47-
<exec.mainClass>com.m.ibrahimhanif.App</exec.mainClass>
83+
<exec.mainClass>com.m.ibrahimhanif.View.main</exec.mainClass>
4884
</properties>
49-
</project>
85+
</project>

0 commit comments

Comments
 (0)