Skip to content

Commit 4a44967

Browse files
Make UBER jar as the default jar (#553)
The build process produces the following artifacts in the target directory: - Shaded uber JAR (default): ${project.artifactId}-${project.version}.jar - Thin JAR without dependencies: ${project.artifactId}-${project.version}-thin.jar - Test JAR containing test classes: ${project.artifactId}-${project.version}-tests.jar - Sources JAR (when 'release' profile is active): ${project.artifactId}-${project.version}-sources.jar - Javadoc JAR (when 'release' profile is active): ${project.artifactId}-${project.version}-javadoc.jar
1 parent ebf6c71 commit 4a44967

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

pom.xml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,13 @@
224224
</dependencies>
225225

226226
<build>
227+
<!-- The build process produces the following artifacts in the target directory:
228+
- Shaded uber JAR (default): ${project.artifactId}-${project.version}.jar
229+
- Thin JAR without dependencies: ${project.artifactId}-${project.version}-thin.jar
230+
- Test JAR containing test classes: ${project.artifactId}-${project.version}-tests.jar
231+
- Sources JAR (when 'release' profile is active): ${project.artifactId}-${project.version}-sources.jar
232+
- Javadoc JAR (when 'release' profile is active): ${project.artifactId}-${project.version}-javadoc.jar
233+
-->
227234
<finalName>${project.artifactId}-${project.version}</finalName>
228235
<plugins>
229236
<plugin>
@@ -240,13 +247,17 @@
240247
</configuration>
241248
<executions>
242249
<execution>
243-
<id>default-jar</id>
250+
<id>attach-thin-jar</id>
244251
<phase>package</phase>
245252
<goals>
246253
<goal>jar</goal>
247254
</goals>
255+
<configuration>
256+
<classifier>thin</classifier>
257+
</configuration>
248258
</execution>
249259
<execution>
260+
<id>attach-test-jar</id>
250261
<goals>
251262
<goal>test-jar</goal>
252263
</goals>
@@ -377,9 +388,9 @@
377388
<goal>shade</goal>
378389
</goals>
379390
<configuration>
391+
<!-- The shaded uber jar is the default jar produced by this build -->
380392
<createDependencyReducedPom>false</createDependencyReducedPom>
381-
<shadedArtifactAttached>true</shadedArtifactAttached>
382-
<shadedClassifierName>UBER</shadedClassifierName>
393+
<shadedArtifactAttached>false</shadedArtifactAttached>
383394
<relocations>
384395
<relocation>
385396
<pattern>codegen</pattern>

0 commit comments

Comments
 (0)