-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Description
It happens always in my real project, but I was able to reproduce it with this sample setup.
Add a Maven project with this sample pom:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test.git-id-plugin</groupId>
<artifactId>git-id-plugin-eclipse</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.1.12</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>
<dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
</configuration>
</plugin>
</plugins>
</build>
</project>The project builds and stops.
Now, go to 'Navigator' view in Eclipse, and refresh target/classed directory.
The build goes into an endless loop.
If you open generated git.properties file, you will see that the build timestamp is constantly updating.
The loop can be stopped by using 'Maven/Update Project' action.
In order to reproduce the loop again, remove generated git.properties. When build finishes, the file is not visible. Now refresh the project in Eclipse navigator view, and the loop is back again.