{"action":"created","issue":{"url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/151","labels_url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/151/comments","events_url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/151/events","html_url":"https://github.com/ktoso/maven-git-commit-id-plugin/issues/151","id":53447262,"number":151,"title":"Endless build loop in Eclipse","user":{"login":"apogrebnyak","id":399063,"avatar_url":"https://avatars.githubusercontent.com/u/399063?v=3","gravatar_id":"","url":"https://api.github.com/users/apogrebnyak","html_url":"https://github.com/apogrebnyak","followers_url":"https://api.github.com/users/apogrebnyak/followers","following_url":"https://api.github.com/users/apogrebnyak/following{/other_user}","gists_url":"https://api.github.com/users/apogrebnyak/gists{/gist_id}","starred_url":"https://api.github.com/users/apogrebnyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apogrebnyak/subscriptions","organizations_url":"https://api.github.com/users/apogrebnyak/orgs","repos_url":"https://api.github.com/users/apogrebnyak/repos","events_url":"https://api.github.com/users/apogrebnyak/events{/privacy}","received_events_url":"https://api.github.com/users/apogrebnyak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-05T21:01:48Z","updated_at":"2015-03-10T04:36:03Z","closed_at":null,"body":"It happens always in my real project, but I was able to reproduce it with this sample setup.\r\n\r\nAdd a Maven project with this sample pom:\r\n\r\n```xml\r\n<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\">\r\n  <modelVersion>4.0.0</modelVersion>\r\n  <groupId>test.git-id-plugin</groupId>\r\n  <artifactId>git-id-plugin-eclipse</artifactId>\r\n  <version>0.0.1-SNAPSHOT</version>\r\n  <build>\r\n    <plugins>\r\n      <plugin>\r\n        <groupId>pl.project13.maven</groupId>\r\n        <artifactId>git-commit-id-plugin</artifactId>\r\n        <version>2.1.12</version>\r\n        <executions>\r\n          <execution>\r\n            <goals>\r\n              <goal>revision</goal>\r\n            </goals>\r\n          </execution>\r\n        </executions>\r\n        <configuration>\r\n          <verbose>true</verbose>\r\n          <dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>\r\n          <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>\r\n          <generateGitPropertiesFile>true</generateGitPropertiesFile>\r\n        </configuration>\r\n      </plugin>\r\n    </plugins>\r\n  </build>\r\n</project>\r\n```\r\nThe project builds and stops.\r\n\r\nNow, go to 'Navigator' view in Eclipse, and refresh `target/classed` directory.\r\n\r\nThe build goes into an endless loop.\r\n\r\nIf you open generated `git.properties` file, you will see that the build timestamp is constantly updating.\r\n\r\nThe loop can be stopped by using 'Maven/Update Project' action.\r\n\r\nIn 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.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/comments/77994650","html_url":"https://github.com/ktoso/maven-git-commit-id-plugin/issues/151#issuecomment-77994650","issue_url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/151","id":77994650,"user":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T04:36:03Z","updated_at":"2015-03-10T04:36:03Z","body":"Resolved by https://github.com/ktoso/maven-git-commit-id-plugin/pull/152\r\n\r\nThanks a lot for the contribution!\r\n\r\nResolved in 2.1.13"}}