honnuanand / cloudnative-spring-workshop

3 stars 14 forks source link

fails to find git when using mvn 3.6.2 and eclipse #5

Open arul-cfkube opened 4 years ago

arul-cfkube commented 4 years ago

ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.6:revision (default) on project cloud-native-spring: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

arul-cfkube commented 4 years ago

fixed by adding failOnNoGitDirectory

       <plugin>
          <groupId>pl.project13.maven</groupId>
          <artifactId>git-commit-id-plugin</artifactId>
          <version>2.1.15</version>
          <configuration>
            <failOnNoGitDirectory>false</failOnNoGitDirectory>
          </configuration>
        </plugin>