Skip to content

How to build an executable JAR server package with dependencies #3713

Answered by HTHou
Alima777 asked this question in Q&A
Discussion options

You must be logged in to vote

Add -P get-jar-with-dependencies.

Also, make sure there is a profile likes below in the pom file.

iotdb/session/pom.xml

Lines 125 to 151 in 394467b

<profile>
<id>get-jar-with-dependencies</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven.assembly.version}</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- this is used for inheritance merges -->
<phase>package</phase>
<!-- bind to the packaging phase -->
<goals>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jixuan1989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants