Skip to content

Commit f2cdef8

Browse files
committedAug 4, 2017
Add version check support
1 parent 842aed8 commit f2cdef8

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ metastore_db
3939
*.html
4040
Word2vec-index/
4141
*.conf
42-
*.json
42+
*.json
43+
*-git.properties

‎pom.xml

+19-18
Original file line numberDiff line numberDiff line change
@@ -195,24 +195,25 @@
195195
</plugin>
196196

197197
<plugin>
198-
<groupId>pl.project13.maven</groupId>
199-
<artifactId>git-commit-id-plugin</artifactId>
200-
<version>2.2.2</version>
201-
<executions>
202-
<execution>
203-
<goals>
204-
<goal>revision</goal>
205-
</goals>
206-
<phase>package</phase>
207-
</execution>
208-
</executions>
209-
<configuration>
210-
<generateGitPropertiesFile>true</generateGitPropertiesFile>
211-
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
212-
<gitDescribe>
213-
<skip>true</skip>
214-
</gitDescribe>
215-
</configuration>
198+
<groupId>pl.project13.maven</groupId>
199+
<artifactId>git-commit-id-plugin</artifactId>
200+
<version>2.2.2</version>
201+
<executions>
202+
<execution>
203+
<goals>
204+
<goal>revision</goal>
205+
</goals>
206+
<phase>generate-resources</phase>
207+
</execution>
208+
</executions>
209+
<configuration>
210+
<generateGitPropertiesFile>true</generateGitPropertiesFile>
211+
<generateGitPropertiesFilename>${project.basedir}/src/main/resources/ai/skymind/${project.groupId}-${project.artifactId}-git.properties
212+
</generateGitPropertiesFilename>
213+
<gitDescribe>
214+
<skip>true</skip>
215+
</gitDescribe>
216+
</configuration>
216217
</plugin>
217218

218219
</plugins>

0 commit comments

Comments
 (0)
Please sign in to comment.