|
@@ -18,4 +18,80 @@
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
+ <!-- 打包成zip -->
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <mainClass>cn.com.qmth.task.starter.TaskApplication</mainClass>
|
|
|
+ <addClasspath>true</addClasspath>
|
|
|
+ <classpathPrefix>./</classpathPrefix>
|
|
|
+ </manifest>
|
|
|
+ <manifestEntries>
|
|
|
+ <Class-Path>../config/</Class-Path>
|
|
|
+ </manifestEntries>
|
|
|
+ </archive>
|
|
|
+ <excludes>
|
|
|
+ <exclude>*.properties</exclude>
|
|
|
+ <exclude>*.xml </exclude>
|
|
|
+ <exclude>*.conf </exclude>
|
|
|
+ </excludes>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <finalName>examcloud-task</finalName>
|
|
|
+ <descriptors>
|
|
|
+ <descriptor>assembly.xml</descriptor>
|
|
|
+ </descriptors>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>make-assembly</id>
|
|
|
+ <phase>install</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>assembly</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ <!--
|
|
|
+ 打成jar包
|
|
|
+ <build>
|
|
|
+ <finalName>examcloud-task</finalName>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <fork>true</fork>
|
|
|
+ <mainClass>cn.com.qmth.task.starter.TaskApplication</mainClass> 主类 包含main
|
|
|
+ <layout>JAR</layout> -包类型(必须大写) JAR,WAR,ZIP,MODULE,NONE
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build> -->
|
|
|
</project>
|