1 | Skip tests: |
2 | |
3 | mvn package -DskipTests |
4 | |
5 | Fat JAR: |
6 | |
7 | <plugin> |
8 | <groupId>org.apache.maven.plugins</groupId> |
9 | <artifactId>maven-assembly-plugin</artifactId> |
10 | <version>3.3.0</version> |
11 | <configuration> |
12 | <descriptorRefs> |
13 | <descriptorRef>jar-with-dependencies</descriptorRef> |
14 | </descriptorRefs> |
15 | </configuration> |
16 | <executions> |
17 | <execution> |
18 | <id>assemble-all</id> |
19 | <phase>package</phase> |
20 | <goals> |
21 | <goal>single</goal> |
22 | </goals> |
23 | </execution> |
24 | </executions> |
25 | </plugin> |
26 | </plugins> |
27 | </build> |
28 | |
29 | Then: mvn package |
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030396 |
Snippet name: | Maven Notes |
Eternal ID of this version: | #1030396/2 |
Text MD5: | a870f73aac55fac8fc9e78ee323c3f4e |
Author: | stefan |
Category: | |
Type: | Document |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-24 20:14:20 |
Source code size: | 801 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 208 / 82 |
Version history: | 1 change(s) |
Referenced in: | [show references] |