|
|
@ -197,41 +197,58 @@ |
|
|
</dependencies> |
|
|
</dependencies> |
|
|
|
|
|
|
|
|
<build> |
|
|
<build> |
|
|
|
|
|
<finalName>rbs-pay</finalName> |
|
|
<plugins> |
|
|
<plugins> |
|
|
<!-- 配置打包,并配置MainClass, 但不将依赖包打包,会出现找不到依赖的异常 --> |
|
|
|
|
|
<plugin> |
|
|
<plugin> |
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
<artifactId>maven-assembly-plugin</artifactId> |
|
|
<artifactId>maven-jar-plugin</artifactId> |
|
|
|
|
|
<configuration> |
|
|
<configuration> |
|
|
<finalName>rbs-pay</finalName> |
|
|
|
|
|
<archive> |
|
|
<archive> |
|
|
<manifest> |
|
|
<manifest> |
|
|
<addClasspath>true</addClasspath> |
|
|
<!--这里要替换成jar包main方法所在类 --> |
|
|
<!-- MANIFEST.MF 中 Class-Path --> |
|
|
|
|
|
<classpathPrefix>lib/</classpathPrefix> |
|
|
|
|
|
<mainClass>com.base.springcloud.PaymentBaseApplication</mainClass> |
|
|
<mainClass>com.base.springcloud.PaymentBaseApplication</mainClass> |
|
|
</manifest> |
|
|
</manifest> |
|
|
|
|
|
<manifestEntries> |
|
|
|
|
|
<Class-Path>.</Class-Path> |
|
|
|
|
|
</manifestEntries> |
|
|
</archive> |
|
|
</archive> |
|
|
|
|
|
<descriptorRefs> |
|
|
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef> |
|
|
|
|
|
</descriptorRefs> |
|
|
|
|
|
<appendAssemblyId>false</appendAssemblyId> |
|
|
</configuration> |
|
|
</configuration> |
|
|
</plugin> |
|
|
|
|
|
<!-- 配置依赖包 --> |
|
|
|
|
|
<plugin> |
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId> |
|
|
|
|
|
<executions> |
|
|
<executions> |
|
|
<execution> |
|
|
<execution> |
|
|
<id>copy-dependencies</id> |
|
|
<id>make-assembly</id> <!-- this is used for inheritance merges --> |
|
|
<phase>package</phase> |
|
|
<phase>package</phase> <!-- 指定在打包节点执行jar包合并操作 --> |
|
|
<goals> |
|
|
<goals> |
|
|
<goal>copy-dependencies</goal> |
|
|
<goal>single</goal> |
|
|
</goals> |
|
|
</goals> |
|
|
|
|
|
</execution> |
|
|
|
|
|
</executions> |
|
|
|
|
|
</plugin> |
|
|
|
|
|
<plugin> |
|
|
|
|
|
<groupId>org.springframework.boot</groupId> |
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId> |
|
|
<configuration> |
|
|
<configuration> |
|
|
<!-- 将依赖包打包至target下的lib目录 --> |
|
|
<fork>true</fork> |
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory> |
|
|
<mainClass>com.base.springcloud.PaymentBaseApplication</mainClass> |
|
|
</configuration> |
|
|
</configuration> |
|
|
|
|
|
<executions> |
|
|
|
|
|
<execution> |
|
|
|
|
|
<goals> |
|
|
|
|
|
<goal>repackage</goal> |
|
|
|
|
|
</goals> |
|
|
</execution> |
|
|
</execution> |
|
|
</executions> |
|
|
</executions> |
|
|
</plugin> |
|
|
</plugin> |
|
|
|
|
|
<plugin> |
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId> |
|
|
|
|
|
<configuration> |
|
|
|
|
|
<source>8</source> |
|
|
|
|
|
<target>8</target> |
|
|
|
|
|
</configuration> |
|
|
|
|
|
</plugin> |
|
|
</plugins> |
|
|
</plugins> |
|
|
</build> |
|
|
</build> |
|
|
|
|
|
|
|
|
|