|
|
@@ -78,6 +78,7 @@
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
+ <finalName>JTT1078server</finalName>
|
|
|
<plugins>
|
|
|
<!-- Git提交信息插件 -->
|
|
|
<plugin>
|
|
|
@@ -108,6 +109,32 @@
|
|
|
<mainClass>com.jttserver.Server</mainClass>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
+ <!-- Maven打包插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <version>3.6.0</version>
|
|
|
+ <configuration>
|
|
|
+ <descriptorRefs>
|
|
|
+ <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
+ </descriptorRefs>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <mainClass>com.jttserver.Server</mainClass>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
+ <appendAssemblyId>false</appendAssemblyId>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>make-assembly</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|