I am building a WebAPI.war file using Maven. The problem which i am facing is that target war file is not getting generated. On windows console after i ran this what i found was goals missing in pom.xml.
[ERROR] Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.5:execute (add-git-branch-info) on project WebAPI: Execution add-git-branch-info of goal org.codehaus.gmaven:gmaven-plugin:1.5:execute failed: An API incompatibility was encountered while executing org.codehaus.gmaven:gmaven-plugin:1.5:execute: java.lang.ExceptionInInitializerError: null
This is the part of the pom.xml the error is hintig too.
Any help is appreciated!
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-git-branch-info</id>
<phase>generate-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
if (project.properties.getProperty("git.branch") == null) project.properties.setProperty("git.branch", "*");
if (project.properties.getProperty("git.commit.id.abbrev") == null) project.properties.setProperty("git.commit.id.abbrev", "*");
</source>
</configuration>
</execution>
</executions>
</plugin>