|
@@ -158,8 +158,32 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-resources</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources/</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.yml</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <outputDirectory>${project.build.directory}/config</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
|
|
|
- <!--拷贝资源文件 copy-resources-->
|
|
|
+ <!--拷贝资源文件 copy-resources
|
|
|
<plugin>
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
<executions>
|
|
@@ -187,7 +211,7 @@
|
|
|
<outputDirectory>${project.build.directory}/config</outputDirectory>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
- <!--拷贝启动脚本-->
|
|
|
+ <!–<!–拷贝启动脚本–>
|
|
|
<execution>
|
|
|
<id>copy-version</id>
|
|
|
<phase>package</phase>
|
|
@@ -202,12 +226,12 @@
|
|
|
</resources>
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
</configuration>
|
|
|
- </execution>
|
|
|
+ </execution>–>
|
|
|
</executions>
|
|
|
- </plugin>
|
|
|
+ </plugin>-->
|
|
|
|
|
|
- <!-- 按照测试要求打成zip需要的配置 -->
|
|
|
- <!--获取git信息-->
|
|
|
+ <!--<!– 按照测试要求打成zip需要的配置 –>
|
|
|
+ <!–获取git信息–>
|
|
|
<plugin>
|
|
|
<groupId>pl.project13.maven</groupId>
|
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
@@ -222,19 +246,19 @@
|
|
|
<verbose>true</verbose>
|
|
|
<dateFormat>yyyyMMddHHmm</dateFormat>
|
|
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
|
|
- <!--<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>-->
|
|
|
+ <!–<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>–>
|
|
|
<generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
|
|
|
- <!-- 打包压缩 -->
|
|
|
+ <!– 打包压缩 –>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<id>make-assembly</id>
|
|
|
- <!-- 当执行mvn package时才会打包 -->
|
|
|
+ <!– 当执行mvn package时才会打包 –>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>single</goal>
|
|
@@ -243,17 +267,17 @@
|
|
|
<finalName>
|
|
|
${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}
|
|
|
</finalName>
|
|
|
- <!--不包含assembly id-->
|
|
|
+ <!–不包含assembly id–>
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
- <!--输出路径-->
|
|
|
- <!--<outputDirectory>../target/co_search-${project.version}</outputDirectory>-->
|
|
|
+ <!–输出路径–>
|
|
|
+ <!–<outputDirectory>../target/co_search-${project.version}</outputDirectory>–>
|
|
|
<descriptors>
|
|
|
- <descriptor>src/script/zip.xml</descriptor>
|
|
|
+ <descriptor>../script/zip.xml</descriptor>
|
|
|
</descriptors>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
- </plugin>
|
|
|
+ </plugin>-->
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|