Skip to content

Commit 0cb9b98

Browse files
committed
adding a maven assembly descriptor for the standalone jar
1 parent f3b412c commit 0cb9b98

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

pom.xml

+3-5
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,14 @@
176176
<artifactId>maven-assembly-plugin</artifactId>
177177
<version>${maven.assembly.plugin.version}</version>
178178
<configuration>
179-
<descriptorRefs>
180-
<descriptorRef>jar-with-dependencies</descriptorRef>
181-
</descriptorRefs>
179+
<descriptors>
180+
<descriptor>src/main/resources/assembly/standalone.xml</descriptor>
181+
</descriptors>
182182
<archive>
183183
<manifest>
184184
<mainClass>io.github.ngbsn.generator.JPACodeGenerator</mainClass>
185185
</manifest>
186186
</archive>
187-
<finalName>sqlscript2jpa-codegen-standalone-${project.version}</finalName>
188-
<appendAssemblyId>false</appendAssemblyId>
189187
</configuration>
190188
<executions>
191189
<execution>
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 https://maven.apache.org/xsd/assembly-2.2.0.xsd">
4+
<!-- TODO: a jarjar format would be better -->
5+
<id>standalone</id>
6+
<formats>
7+
<format>jar</format>
8+
</formats>
9+
<includeBaseDirectory>false</includeBaseDirectory>
10+
<dependencySets>
11+
<dependencySet>
12+
<outputDirectory>/</outputDirectory>
13+
<useProjectArtifact>true</useProjectArtifact>
14+
<unpack>true</unpack>
15+
<scope>runtime</scope>
16+
</dependencySet>
17+
</dependencySets>
18+
</assembly>

0 commit comments

Comments
 (0)