Run git-commit-id-plugin Once
Only run the git-commit-id-plugin on the asterix-app build, to improve build
performnace. Generate the git.properties directly into the target directory.
Change-Id: I21122d45c9b3e5909ee0634a68dd02df6d6d9313
Reviewed-on: https://asterix-gerrit.ics.uci.edu/844
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Ian Maxon <imaxon@apache.org>
diff --git a/asterixdb/asterix-app/pom.xml b/asterixdb/asterix-app/pom.xml
index b33f1eb..19c2d5a 100644
--- a/asterixdb/asterix-app/pom.xml
+++ b/asterixdb/asterix-app/pom.xml
@@ -64,6 +64,33 @@
</executions>
</plugin>
<plugin>
+ <groupId>pl.project13.maven</groupId>
+ <artifactId>git-commit-id-plugin</artifactId>
+ <version>2.2.0</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>revision</goal>
+ </goals>
+ </execution>
+ </executions>
+
+ <configuration>
+ <!--
+ If you'd like to tell the plugin where your .git directory is,
+ use this setting, otherwise we'll perform a search trying to
+ figure out the right directory. It's better to add it explicite IMHO.
+ -->
+ <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
+ <!-- this is false by default, forces the plugin to generate the git.properties file -->
+ <generateGitPropertiesFile>true</generateGitPropertiesFile>
+
+ <!-- The path for the to be generated properties file, it's relative to ${project.basedir} -->
+ <generateGitPropertiesFilename>./target/classes/git.properties</generateGitPropertiesFilename>
+ </configuration>
+
+ </plugin>
+ <plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
diff --git a/asterixdb/pom.xml b/asterixdb/pom.xml
index 59c5c96..d0e5c40 100644
--- a/asterixdb/pom.xml
+++ b/asterixdb/pom.xml
@@ -162,33 +162,6 @@
</configuration>
</plugin>
<plugin>
- <groupId>pl.project13.maven</groupId>
- <artifactId>git-commit-id-plugin</artifactId>
- <version>2.2.0</version>
- <executions>
- <execution>
- <goals>
- <goal>revision</goal>
- </goals>
- </execution>
- </executions>
-
- <configuration>
- <!--
- If you'd like to tell the plugin where your .git directory is,
- use this setting, otherwise we'll perform a search trying to
- figure out the right directory. It's better to add it explicite IMHO.
- -->
- <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
- <!-- this is false by default, forces the plugin to generate the git.properties file -->
- <generateGitPropertiesFile>true</generateGitPropertiesFile>
-
- <!-- The path for the to be generated properties file, it's relative to ${project.basedir} -->
- <generateGitPropertiesFilename>src/main/resources/git.properties</generateGitPropertiesFilename>
- </configuration>
-
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>