|
@@ -166,24 +166,38 @@
|
|
|
|
|
|
|
|
<plugins>
|
|
<plugins>
|
|
|
<plugin>
|
|
<plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- <plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.5.1</version>
|
|
|
|
|
<configuration>
|
|
<configuration>
|
|
|
<source>1.8</source>
|
|
<source>1.8</source>
|
|
|
<target>1.8</target>
|
|
<target>1.8</target>
|
|
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
|
|
+ <skip>true</skip>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
|
|
+ <!--需添加下面插件,否则java -jar命令启动报SrpingApplication类找不到错误-->
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>repackage</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ <!--需添加下面插件,否则java -jar命令启动报没有主清单错误-->
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
|
- <version>2.8.2</version>
|
|
|
|
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
+ <version>3.2.0</version>
|
|
|
<configuration>
|
|
<configuration>
|
|
|
- <skip>true</skip>
|
|
|
|
|
|
|
+ <archive>
|
|
|
|
|
+ <manifest>
|
|
|
|
|
+ <mainClass>com.mokamrp.privates.PrivateServerStart</mainClass>
|
|
|
|
|
+ </manifest>
|
|
|
|
|
+ </archive>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
</plugins>
|
|
</plugins>
|