Skip to content

Forces Eclipse to build once per second #107

@orlade

Description

@orlade

I can't figure out if this is as designed or not, but with the plugin listed in pom.xml, Eclipse invokes "Maven Project Builder" once every second, seemingly only to update the timestamp in the git.properties file. I tried adding a phase tag to the plugin, but it didn't help. Here's what I'm using:

  <!-- Git build helper -->
  <plugin>
    <groupId>pl.project13.maven</groupId>
    <artifactId>git-commit-id-plugin</artifactId>
    <version>2.1.9</version>
    <executions>
      <execution>
        <phase>package</phase>
        <goals>
          <goal>revision</goal>
        </goals>
      </execution>
    </executions>

    <configuration>
      <dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>
      <generateGitPropertiesFile>true</generateGitPropertiesFile>
      <generateGitPropertiesFilename>src/main/resources/git.properties</generateGitPropertiesFilename>
      <failOnNoGitDirectory>true</failOnNoGitDirectory>
    </configuration>
  </plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions