Description
Describe the bug (required)
I got a a build error saying
[ERROR] Failed to execute goal io.github.git-commit-id:git-commit-id-maven-plugin:5.0.0:revision
....
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact jakarta.json:jakarta.json-api:jar:1.1.4
I cloned your repo to check the dependencies (i.e. running mvn dependency ) and I noticed there is a reference to
+- javax.json:javax.json-api:jar:1.1.4:compile
not sure why build tried to look for jakarta.json 1.1.4 but in any case, javax... is now replaced with jakarta...
Could you please update your package dependency to jakarta.json-api instead .
seems the earliest version of jakarta.json-api is 1.1.5
https://mvnrepository.com/artifact/jakarta.json/jakarta.json-api
Tell us about your plugin configuration (required)
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>5.0.0</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.info</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.branch$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
<includeOnlyProperty>^git.local.branch.(ahead|behind)$</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
Tell us about the Plugin version used (required)
5
Tell us about the Maven version used (required)
mvn --version
// Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Steps to Reproduce (required)
I run the plugin with mvn clean deploy
VS mvn deploy:deploy
...
Are there any stacktraces or any error messages? (required)
WARNING You may NOT want to paste all the output that is produced with verbose
publicly,
since it MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!
mvn clean deploy
// ????
Is there a (public) project where this issue can be reproduced? (optional)
No response
Your Environment (optional)
No response
Context (optional)
No response