Browse Source

设备数据写入到MongoDB PengDi@2021/1/7

pengdi@zoniot.com 4 years ago
parent
commit
7cda7cac76

+ 7 - 0
meter-reading-batch/pom.xml

@@ -13,6 +13,10 @@
     <artifactId>meter-reading-batch</artifactId>
     <version>1.0</version>
     <description>抄表批处理模块</description>
+    <properties>
+        <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
+    </properties>
+
     <dependencies>
         <dependency>
             <groupId>com.huaxu.zoniot</groupId>
@@ -40,6 +44,9 @@
         </dependency>
     </dependencies>
     <build>
+        <finalName>
+            ${project.artifactId}-${project.version}-${maven.build.timestamp}
+        </finalName>
         <plugins>
             <plugin>
                 <groupId>org.springframework.boot</groupId>

+ 3 - 0
meter-reading-common/pom.xml

@@ -13,6 +13,9 @@
     <artifactId>meter-reading-common</artifactId>
     <version>1.0</version>
     <description>抄表通用功能模块</description>
+    <properties>
+        <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
+    </properties>
     <dependencies>
         <!-- Redis -->
         <dependency>

+ 3 - 0
meter-reading-job/pom.xml

@@ -46,6 +46,9 @@
         </dependency>
     </dependencies>
     <build>
+        <finalName>
+            ${project.artifactId}-${project.version}-${maven.build.timestamp}
+        </finalName>
         <plugins>
             <plugin>
                 <groupId>org.springframework.boot</groupId>

+ 4 - 1
meter-reading-service/pom.xml

@@ -13,10 +13,10 @@
     <artifactId>meter-reading-service</artifactId>
     <version>1.0</version>
     <description>抄表服务</description>
-
     <properties>
         <java.version>1.8</java.version>
         <skipTests>true</skipTests>
+        <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
     </properties>
     <dependencies>
         <dependency>
@@ -57,6 +57,9 @@
         -->
     </dependencies>
     <build>
+        <finalName>
+            ${project.artifactId}-${project.version}-${maven.build.timestamp}
+        </finalName>
         <plugins>
             <plugin>
                 <groupId>org.springframework.boot</groupId>