Commit d4f58fa0d6265c5f60538d480eeea1926919bba1
Merge branch 'develop4' of http://www.huahengrobot.com:90/wms/wms4 into develop4
Showing
1 changed file
with
25 additions
and
1 deletions
huaheng-wms-core/pom.xml
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" |
3 | - xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
3 | + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 | |
6 | 6 | <parent> |
... | ... | @@ -12,6 +12,11 @@ |
12 | 12 | <artifactId>huaheng-wms-core</artifactId> |
13 | 13 | <packaging>jar</packaging> |
14 | 14 | |
15 | + <properties> | |
16 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
17 | + <maven.build.timestamp.format>yyyy-MM-dd-HH</maven.build.timestamp.format> | |
18 | + </properties> | |
19 | + | |
15 | 20 | <dependencies> |
16 | 21 | <dependency> |
17 | 22 | <groupId>org.springframework.boot</groupId> |
... | ... | @@ -58,7 +63,26 @@ |
58 | 63 | </dependencies> |
59 | 64 | |
60 | 65 | <build> |
66 | + <finalName>${project.artifactId}-${build.time}</finalName> | |
61 | 67 | <plugins> |
68 | + <plugin> | |
69 | + <groupId>org.codehaus.mojo</groupId> | |
70 | + <artifactId>build-helper-maven-plugin</artifactId> | |
71 | + <executions> | |
72 | + <execution> | |
73 | + <id>timestamp-property</id> | |
74 | + <goals> | |
75 | + <goal>timestamp-property</goal> | |
76 | + </goals> | |
77 | + <configuration> | |
78 | + <name>build.time</name> | |
79 | + <pattern>yyyy-MM-dd-HH</pattern> | |
80 | + <locale>en_US</locale> | |
81 | + <timeZone>GMT+8</timeZone> | |
82 | + </configuration> | |
83 | + </execution> | |
84 | + </executions> | |
85 | + </plugin> | |
62 | 86 | <!-- 指定JDK编译版本 --> |
63 | 87 | <plugin> |
64 | 88 | <groupId>org.apache.maven.plugins</groupId> |
... | ... |