Authored by 王涛

Merge branch 'master-500-dev-lzc' into 'master-500-dev'

修改maven配置

1、【无】打包添加时间戳

See merge request !840
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 </dependencies> 24 </dependencies>
25 25
26 <build> 26 <build>
27 - <finalName>nxweb-0.0.1-SNAPSHOT</finalName> 27 + <finalName>nxweb_${timestamp}</finalName>
28 <resources> 28 <resources>
29 <resource> 29 <resource>
30 <directory>src/main/resources</directory> 30 <directory>src/main/resources</directory>
@@ -35,6 +35,22 @@ @@ -35,6 +35,22 @@
35 </resources> 35 </resources>
36 <plugins> 36 <plugins>
37 <plugin> 37 <plugin>
  38 + <groupId>org.codehaus.mojo</groupId>
  39 + <artifactId>buildnumber-maven-plugin</artifactId>
  40 + <version>1.4</version>
  41 + <configuration>
  42 + <timestampFormat>yyyyMMdd</timestampFormat>
  43 + </configuration>
  44 + <executions>
  45 + <execution>
  46 + <goals>
  47 + <goal>create-timestamp</goal>
  48 + </goals>
  49 + </execution>
  50 + </executions>
  51 + <inherited>false</inherited>
  52 + </plugin>
  53 + <plugin>
38 <groupId>org.springframework.boot</groupId> 54 <groupId>org.springframework.boot</groupId>
39 <artifactId>spring-boot-maven-plugin</artifactId> 55 <artifactId>spring-boot-maven-plugin</artifactId>
40 </plugin> 56 </plugin>
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 </dependencies> 24 </dependencies>
25 25
26 <build> 26 <build>
27 - <finalName>qhweb</finalName> 27 + <finalName>qhweb_${timestamp}</finalName>
28 <resources> 28 <resources>
29 <resource> 29 <resource>
30 <directory>src/main/resources</directory> 30 <directory>src/main/resources</directory>
@@ -35,6 +35,22 @@ @@ -35,6 +35,22 @@
35 </resources> 35 </resources>
36 <plugins> 36 <plugins>
37 <plugin> 37 <plugin>
  38 + <groupId>org.codehaus.mojo</groupId>
  39 + <artifactId>buildnumber-maven-plugin</artifactId>
  40 + <version>1.4</version>
  41 + <configuration>
  42 + <timestampFormat>yyyyMMdd</timestampFormat>
  43 + </configuration>
  44 + <executions>
  45 + <execution>
  46 + <goals>
  47 + <goal>create-timestamp</goal>
  48 + </goals>
  49 + </execution>
  50 + </executions>
  51 + <inherited>false</inherited>
  52 + </plugin>
  53 + <plugin>
38 <groupId>org.springframework.boot</groupId> 54 <groupId>org.springframework.boot</groupId>
39 <artifactId>spring-boot-maven-plugin</artifactId> 55 <artifactId>spring-boot-maven-plugin</artifactId>
40 </plugin> 56 </plugin>