|
@@ -55,7 +55,7 @@
|
|
|
</dependencies>
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
<build>
|
|
|
- <finalName>ethereum_viewer_interface</finalName>
|
|
|
|
|
|
|
+ <finalName>dalian-nft-api</finalName>
|
|
|
|
|
|
|
|
<!--
|
|
<!--
|
|
|
添加 includes 配置后,excludes 默认为所有文件 **/*.*,反之亦然
|
|
添加 includes 配置后,excludes 默认为所有文件 **/*.*,反之亦然
|
|
@@ -95,55 +95,27 @@
|
|
|
<source>1.8</source>
|
|
<source>1.8</source>
|
|
|
<target>1.8</target>
|
|
<target>1.8</target>
|
|
|
<encoding>UTF-8</encoding>
|
|
<encoding>UTF-8</encoding>
|
|
|
- <!-- java8 保留参数名编译参数 -->
|
|
|
|
|
<compilerArgument>-parameters</compilerArgument>
|
|
<compilerArgument>-parameters</compilerArgument>
|
|
|
<compilerArguments><verbose /></compilerArguments>
|
|
<compilerArguments><verbose /></compilerArguments>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
|
|
|
|
|
- <!--
|
|
|
|
|
- jar 包中的配置文件优先级高于 config 目录下的 "同名文件"
|
|
|
|
|
- 因此,打包时需要排除掉 jar 包中来自 src/main/resources 目录的
|
|
|
|
|
- 配置文件,否则部署时 config 目录中的同名配置文件不会生效
|
|
|
|
|
- -->
|
|
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
- <version>2.6</version>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <excludes>
|
|
|
|
|
- <exclude>*.txt</exclude>
|
|
|
|
|
- <exclude>*.xml</exclude>
|
|
|
|
|
- <exclude>*.properties</exclude>
|
|
|
|
|
- </excludes>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </plugin>
|
|
|
|
|
-
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
- <version>3.1.0</version>
|
|
|
|
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
|
|
+ <version>3.2.4</version>
|
|
|
<executions>
|
|
<executions>
|
|
|
<execution>
|
|
<execution>
|
|
|
- <id>make-assembly</id>
|
|
|
|
|
<phase>package</phase>
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
<goals>
|
|
|
- <goal>single</goal>
|
|
|
|
|
|
|
+ <goal>shade</goal>
|
|
|
</goals>
|
|
</goals>
|
|
|
-
|
|
|
|
|
<configuration>
|
|
<configuration>
|
|
|
- <!-- 打包生成的文件名 -->
|
|
|
|
|
- <finalName>${project.artifactId}</finalName>
|
|
|
|
|
- <!-- jar 等压缩文件在被打包进入 zip、tar.gz 时是否压缩,设置为 false 可加快打包速度 -->
|
|
|
|
|
- <recompressZippedFiles>false</recompressZippedFiles>
|
|
|
|
|
- <!-- 打包生成的文件是否要追加 release.xml 中定义的 id 值 -->
|
|
|
|
|
- <appendAssemblyId>true</appendAssemblyId>
|
|
|
|
|
- <!-- 指向打包描述文件 package.xml -->
|
|
|
|
|
- <descriptors>
|
|
|
|
|
- <descriptor>package.xml</descriptor>
|
|
|
|
|
- </descriptors>
|
|
|
|
|
- <!-- 打包结果输出的基础目录 -->
|
|
|
|
|
- <outputDirectory>${project.build.directory}/</outputDirectory>
|
|
|
|
|
|
|
+ <transformers>
|
|
|
|
|
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
|
|
+ <mainClass>common.jfinal.AppConfig</mainClass>
|
|
|
|
|
+ </transformer>
|
|
|
|
|
+ </transformers>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</execution>
|
|
</execution>
|
|
|
</executions>
|
|
</executions>
|