|
@@ -112,25 +112,25 @@
|
|
|
</plugin>
|
|
|
|
|
|
<!-- 按照测试要求打成zip需要的配置 -->
|
|
|
- <!--获取git信息-->
|
|
|
- <plugin>
|
|
|
- <groupId>pl.project13.maven</groupId>
|
|
|
- <artifactId>git-commit-id-plugin</artifactId>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>revision</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- <configuration>
|
|
|
- <verbose>true</verbose>
|
|
|
- <dateFormat>yyyyMMddHHmm</dateFormat>
|
|
|
- <generateGitPropertiesFile>true</generateGitPropertiesFile>
|
|
|
- <!--<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>-->
|
|
|
- <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
+<!-- <!–获取git信息–>-->
|
|
|
+<!-- <plugin>-->
|
|
|
+<!-- <groupId>pl.project13.maven</groupId>-->
|
|
|
+<!-- <artifactId>git-commit-id-plugin</artifactId>-->
|
|
|
+<!-- <executions>-->
|
|
|
+<!-- <execution>-->
|
|
|
+<!-- <goals>-->
|
|
|
+<!-- <goal>revision</goal>-->
|
|
|
+<!-- </goals>-->
|
|
|
+<!-- </execution>-->
|
|
|
+<!-- </executions>-->
|
|
|
+<!-- <configuration>-->
|
|
|
+<!-- <verbose>true</verbose>-->
|
|
|
+<!-- <dateFormat>yyyyMMddHHmm</dateFormat>-->
|
|
|
+<!-- <generateGitPropertiesFile>true</generateGitPropertiesFile>-->
|
|
|
+<!-- <!–<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>–>-->
|
|
|
+<!-- <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>-->
|
|
|
+<!-- </configuration>-->
|
|
|
+<!-- </plugin>-->
|
|
|
<plugin>
|
|
|
<groupId>com.coderplus.maven.plugins</groupId>
|
|
|
<artifactId>copy-rename-maven-plugin</artifactId>
|
|
@@ -143,7 +143,7 @@
|
|
|
<goal>rename</goal>
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
- <sourceFile>${project.build.directory}/git.properties</sourceFile>
|
|
|
+<!-- <sourceFile>${project.build.directory}/git.properties</sourceFile>-->
|
|
|
<destinationFile>${project.build.directory}/version.txt</destinationFile>
|
|
|
</configuration>
|
|
|
</execution>
|
|
@@ -196,33 +196,33 @@
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
|
|
|
- <!-- 打包压缩 -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>make-assembly</id>
|
|
|
- <!-- 当执行mvn package时才会打包 -->
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <finalName>
|
|
|
- ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}
|
|
|
- </finalName>
|
|
|
- <!--不包含assembly id-->
|
|
|
- <appendAssemblyId>false</appendAssemblyId>
|
|
|
- <!--输出路径-->
|
|
|
- <!--<outputDirectory>../target/co_search-${project.version}</outputDirectory>-->
|
|
|
- <descriptors>
|
|
|
- <descriptor>src/script/zip.xml</descriptor>
|
|
|
- </descriptors>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
+<!-- <!– 打包压缩 –>-->
|
|
|
+<!-- <plugin>-->
|
|
|
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
+<!-- <artifactId>maven-assembly-plugin</artifactId>-->
|
|
|
+<!-- <executions>-->
|
|
|
+<!-- <execution>-->
|
|
|
+<!-- <id>make-assembly</id>-->
|
|
|
+<!-- <!– 当执行mvn package时才会打包 –>-->
|
|
|
+<!-- <phase>package</phase>-->
|
|
|
+<!-- <goals>-->
|
|
|
+<!-- <goal>single</goal>-->
|
|
|
+<!-- </goals>-->
|
|
|
+<!-- <configuration>-->
|
|
|
+<!-- <finalName>-->
|
|
|
+<!-- ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}-->
|
|
|
+<!-- </finalName>-->
|
|
|
+<!-- <!–不包含assembly id–>-->
|
|
|
+<!-- <appendAssemblyId>false</appendAssemblyId>-->
|
|
|
+<!-- <!–输出路径–>-->
|
|
|
+<!-- <!–<outputDirectory>../target/co_search-${project.version}</outputDirectory>–>-->
|
|
|
+<!-- <descriptors>-->
|
|
|
+<!-- <descriptor>src/script/zip.xml</descriptor>-->
|
|
|
+<!-- </descriptors>-->
|
|
|
+<!-- </configuration>-->
|
|
|
+<!-- </execution>-->
|
|
|
+<!-- </executions>-->
|
|
|
+<!-- </plugin>-->
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|