Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused by: pl.project13.maven.git.GitCommitIdExecutionException: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml #91

Closed
ghost opened this issue Sep 22, 2018 · 10 comments

Comments

@ghost
Copy link

ghost commented Sep 22, 2018

I am getting below error. No code changes done. No customization

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] spring-petclinic-microservices ..................... SUCCESS [  0.718 s]
[INFO] spring-petclinic-admin-server ...................... FAILURE [  1.465 s]
[INFO] spring-petclinic-monitoring ........................ SKIPPED
[INFO] spring-petclinic-customers-service ................. SKIPPED
[INFO] spring-petclinic-vets-service ...................... SKIPPED
[INFO] spring-petclinic-visits-service .................... SKIPPED
[INFO] spring-petclinic-config-server ..................... SKIPPED
[INFO] spring-petclinic-discovery-server .................. SKIPPED
[INFO] spring-petclinic-api-gateway ....................... SKIPPED
[INFO] spring-petclinic-tracing-server .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.199 s
[INFO] Finished at: 2018-09-22T22:41:47+05:30
[INFO] Final Memory: 37M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.4:revision (default) on project spring-petclinic-admin-server: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.4:revision (default) on project spring-petclinic-admin-server: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml
    at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:429)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: pl.project13.maven.git.GitCommitIdExecutionException: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml
    at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:376)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR]
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :spring-petclinic-admin-server


@arey
Copy link
Member

arey commented Sep 22, 2018

Hi @javaHelper. How do you download the source code? With a git clone or directly the zip archive? I suppose the second one. I've fixed the issue with #92. Could you test it?

@ghost
Copy link
Author

ghost commented Sep 22, 2018

I download the zip file and simply trying to build the code > mvn clean install -DskipTests
Giving me above error. If I simply clone the project, then it doesn't give me any build error.

With the .zip project. How to fix the error ?

@arey
Copy link
Member

arey commented Sep 23, 2018

@javaHelper could you please download the new zip then execute a mvn clean install?

@arey
Copy link
Member

arey commented Nov 15, 2018

Any news?

@arey
Copy link
Member

arey commented Feb 17, 2019

No feedback. Please reopen this issue if your problem persists.

@arey arey closed this as completed Feb 17, 2019
@VictorJabu
Copy link

Hi Arey I am experiencing the same issue and I ran mvn clean install

@VictorJabu
Copy link

[INFO] Reactor Summary for Spring Petclinic :: Parent POM 2.1.3:
[INFO]
[INFO] Spring Petclinic :: Parent POM ..................... SUCCESS [ 0.690 s]
[INFO] Spring Petclinic :: AngularJS Client ............... SUCCESS [01:12 min]
[INFO] Spring Petclinic :: Spring MVC REST server ......... FAILURE [ 2.426 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:16 min
[INFO] Finished at: 2021-05-06T14:59:10+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.6:revision (default) on project spring-petclinic-server: .git directory is not found! Please specify a valid [dotG
itDirectory] 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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :spring-petclinic-server

@arey arey reopened this May 6, 2021
arey added a commit that referenced this issue May 6, 2021
Try to fix the Maven issue references in #91
@arey
Copy link
Member

arey commented May 6, 2021

@VictorJabu I don' reproduce this error on my laptop but I've blinded commited this patch : 101ffbd
Could you please retry?

@VictorJabu
Copy link

VictorJabu commented May 7, 2021 via email

@arey
Copy link
Member

arey commented May 8, 2021

Great, thank you for the feedback @VictorJabu

@arey arey closed this as completed May 8, 2021
selvasingh added a commit to Azure-Samples/spring-petclinic-microservices that referenced this issue Nov 14, 2021
* Complete Apache 2.0 license

* Upgrade to Spring Cloud 2020.0.1 (aka Ilford) and Spring Boot 2.4.2 (spring-petclinic#173)

* Added chaos monkey setup (spring-petclinic#177)

* Added chaos monkey setup

* Update scripts/chaos/call_chaos.sh

Co-authored-by: Jonatan Ivanov <[email protected]>

* Added docs

Co-authored-by: Jonatan Ivanov <[email protected]>

* Do not fail packaging if repo info is absent spring-petclinic#91

Try to fix the Maven issue references in spring-petclinic#91

* Bump Spring Cloud version to 2020.0.2 and Spring Boot version to 2.4.5 spring-petclinic#178

* Bump up version to 2.4.5 (spring-petclinic#179)

also fixing spring-boot-starter-parent version

* Upgrade to Spring Cloud 2020.0.2 and Spring Boot 2.5.1 (spring-petclinic#181)

* Migrate from Travis CI to GitHub actions (spring-petclinic#187)

* Use Github Actions for CI

* Change Travis Badge to Github Actions one

* Delete .travis.yml

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

Co-authored-by: Antoine Rey <[email protected]>
Co-authored-by: Marcin Grzejszczak <[email protected]>
Co-authored-by: Jonatan Ivanov <[email protected]>
selvasingh added a commit to Azure-Samples/spring-petclinic-microservices that referenced this issue Nov 15, 2021
* Complete Apache 2.0 license

* Upgrade to Spring Cloud 2020.0.1 (aka Ilford) and Spring Boot 2.4.2 (spring-petclinic#173)

* Added chaos monkey setup (spring-petclinic#177)

* Added chaos monkey setup

* Update scripts/chaos/call_chaos.sh

Co-authored-by: Jonatan Ivanov <[email protected]>

* Added docs

Co-authored-by: Jonatan Ivanov <[email protected]>

* Do not fail packaging if repo info is absent spring-petclinic#91

Try to fix the Maven issue references in spring-petclinic#91

* Bump Spring Cloud version to 2020.0.2 and Spring Boot version to 2.4.5 spring-petclinic#178

* Bump up version to 2.4.5 (spring-petclinic#179)

also fixing spring-boot-starter-parent version

* Upgrade to Spring Cloud 2020.0.2 and Spring Boot 2.5.1 (spring-petclinic#181)

* Migrate from Travis CI to GitHub actions (spring-petclinic#187)

* Use Github Actions for CI

* Change Travis Badge to Github Actions one

* Delete .travis.yml

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* updated cli step to create Azure Spring Cloud

Co-authored-by: Antoine Rey <[email protected]>
Co-authored-by: Marcin Grzejszczak <[email protected]>
Co-authored-by: Jonatan Ivanov <[email protected]>
selvasingh added a commit to Azure-Samples/spring-petclinic-microservices that referenced this issue Nov 15, 2021
* Complete Apache 2.0 license

* Upgrade to Spring Cloud 2020.0.1 (aka Ilford) and Spring Boot 2.4.2 (spring-petclinic#173)

* Added chaos monkey setup (spring-petclinic#177)

* Added chaos monkey setup

* Update scripts/chaos/call_chaos.sh

Co-authored-by: Jonatan Ivanov <[email protected]>

* Added docs

Co-authored-by: Jonatan Ivanov <[email protected]>

* Do not fail packaging if repo info is absent spring-petclinic#91

Try to fix the Maven issue references in spring-petclinic#91

* Bump Spring Cloud version to 2020.0.2 and Spring Boot version to 2.4.5 spring-petclinic#178

* Bump up version to 2.4.5 (spring-petclinic#179)

also fixing spring-boot-starter-parent version

* Upgrade to Spring Cloud 2020.0.2 and Spring Boot 2.5.1 (spring-petclinic#181)

* Migrate from Travis CI to GitHub actions (spring-petclinic#187)

* Use Github Actions for CI

* Change Travis Badge to Github Actions one

* Delete .travis.yml

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* updated cli step to create Azure Spring Cloud

* added jq as pre-requisite

* updated pre-requisites

Co-authored-by: Antoine Rey <[email protected]>
Co-authored-by: Marcin Grzejszczak <[email protected]>
Co-authored-by: Jonatan Ivanov <[email protected]>
DavidMolta18 pushed a commit to Distribuidos2024/spring-petclinic-microservices that referenced this issue Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants