浏览代码

Prepend the timestamp to the file name when building from codeship.

Codeship should run using the following command (identifying the profile with "-P codeship"):
$ mvn -Dbuild.number=123 -Dbuild.revision=ABC package -P codeship
James Albright 9 年之前
父节点
当前提交
3863504475
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      pom.xml

+ 9 - 0
pom.xml

@@ -16,6 +16,15 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
+    <profiles>
+        <profile>
+            <id>codeship</id>
+            <build>
+                <finalName>${timestamp.iso}-${project.artifactId}-${project.version}</finalName>
+            </build>
+        </profile>
+    </profiles>
+
     <build>
         <resources>
             <resource>