Skip to content

Heroku - .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml #279

Closed
@emeraldjava

Description

@emeraldjava

Hi,

I plugged in the 'git-commit-id-plugin' and it works perfectly on a local build. The pom config is

<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>build-info</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>pl.project13.maven</groupId> <artifactId>git-commit-id-plugin</artifactId> <version>2.2.2</version> </plugin> </plugins> </build>

When i attempt to deploy my app to heroku the build and deploy failed with this error

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

when i run the basic heroku deploy command of

git push heroku master

has anybody seen or have a workaround for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions