Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.6:revision


Problem Statement :
Jhipster project while building below error coming, Solution provided below

[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.6:revision (default) on project microworker: Could not complete Mojo execution...: Error: Could not get HEAD Ref, are you sure you have some commits in the dotGitDirectory? -> [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



Solution :

Step 1 : Open pom.xml in note pad

Step 2 : Search for the below plugin dependency ( without version info) 

<plugin>
                        <groupId>pl.project13.maven</groupId>
                        <artifactId>git-commit-id-plugin</artifactId>

 </plugin>



modify the above plugin as below 

<plugin>
                        <groupId>pl.project13.maven</groupId>
                        <artifactId>git-commit-id-plugin</artifactId>
                        <configuration>
                          <skip>true</skip>
                        </configuration>
 </plugin>

0 comments:

Post a Comment