Skip to content

Commit ca64aef

Browse files
committed
executable jar build by maven (assembly)
1 parent 6687f74 commit ca64aef

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

pom.xml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,44 @@
7171
</exclusion>
7272
</exclusions>
7373
</dependency>
74-
74+
7575
</dependencies>
7676

7777
<!-- ========================================================================================================= -->
7878

7979
<build>
80+
<plugins>
81+
<plugin>
82+
<artifactId>maven-assembly-plugin</artifactId>
83+
<configuration>
84+
<descriptorRefs>
85+
<descriptorRef>jar-with-dependencies</descriptorRef>
86+
</descriptorRefs>
87+
<archive>
88+
<manifest>
89+
<mainClass>ch.ips.g2.applyalter.ApplyAlter</mainClass>
90+
</manifest>
91+
<manifestEntries>
92+
<version>${project.version}</version>
93+
<groupId>${project.groupId}</groupId>
94+
<artifactId>${project.artifactId}</artifactId>
95+
<Class-Path>db2java.zip postgresql.jar ojdbc14.jar ojdbc5.jar</Class-Path>
96+
</manifestEntries>
97+
</archive>
98+
<appendAssemblyId>true</appendAssemblyId>
99+
<!-- without classifier, the big jar is used INSTEAD of the original jar -->
100+
<classifier>run</classifier>
101+
</configuration>
102+
<executions>
103+
<execution>
104+
<phase>package</phase>
105+
<goals>
106+
<goal>single</goal>
107+
</goals>
108+
</execution>
109+
</executions>
110+
</plugin>
111+
</plugins>
80112
</build>
81113

82114
</project>
File renamed without changes.

0 commit comments

Comments
 (0)