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

Maven build fails with "Failure to find org.gradle:gradle-tooling-api:jar:8.9" #43211

Closed
troosan opened this issue Sep 11, 2024 · 2 comments
Closed
Labels
area/gradle Gradle area/maven env/m1 Impacts Apple M1 machines kind/bug Something isn't working

Comments

@troosan
Copy link
Contributor

troosan commented Sep 11, 2024

Describe the bug

Building Quarkus locally fails with

[ERROR] Failed to execute goal on project quarkus-bootstrap-gradle-resolver: Could not resolve dependencies for project io.quarkus:quarkus-bootstrap-gradle-resolver:jar:999-SNAPSHOT
[ERROR] dependency: org.gradle:gradle-tooling-api:jar:8.9 (compile?)
[ERROR] 	Could not find artifact org.gradle:gradle-tooling-api:jar:8.9 in central (https://repo.maven.apache.org/maven2)

This artefact does indeed not exist in central, only in https://repo.gradle.org/gradle/libs-releases/
Am I supposed to add this repo to my maven settings to be able to build Quarkus? I didn't find any instructions to do so in the CONTRIBUTING.md

Expected behavior

no additional maven repository is needed to build Quarkus

Actual behavior

Build fails, if I add the following in my maven settings.xml it continues

            <repositories>
                <repository>
                    <id>registry.gradle.org</id>
                    <name>Gradle release</name>
                    <url>https://repo.gradle.org/gradle/libs-releases</url>
                </repository>
            </repositories>

UPDATE: I had to add it to the pluginRepositories as well, otherwise it fails on

[ERROR] Failed to execute goal io.quarkus:quarkus-platform-bom-maven-plugin:0.0.111:flatten-platform-bom (default) on project quarkus-bom: Execution default of goal io.quarkus:quarkus-platform-bom-maven-plugin:0.0.111:flatten-platform-bom failed: Plugin io.quarkus:quarkus-platform-bom-maven-plugin:0.0.111 or one of its dependencies could not be resolved:
[ERROR] 	Could not find artifact org.gradle:gradle-tooling-api:jar:8.1.1 in central (https://repo.maven.apache.org/maven2)

How to Reproduce?

git clone [email protected]:quarkusio/quarkus.git
cd quarkus
MAVEN_OPTS="-Xmx4g" ./mvnw -Dquickly

Output of uname -a or ver

Darwin MacBook-M1-Pro.local 23.5.0 Darwin Kernel Version 23.5.0

Output of java -version

17

Quarkus version or git rev

main branch

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.6

Additional information

This issue seems to have been reported previously in #11141 and #33835 but has come back

@troosan troosan added the kind/bug Something isn't working label Sep 11, 2024
@quarkus-bot quarkus-bot bot added area/gradle Gradle area/maven env/m1 Impacts Apple M1 machines labels Sep 11, 2024
Copy link

quarkus-bot bot commented Sep 11, 2024

/cc @gastaldi (m1), @glefloch, @quarkusio/devtools (maven)

@troosan
Copy link
Contributor Author

troosan commented Sep 11, 2024

my bad, I was building an out of date fork, after updating to the latest it seems to be working fine.
it correctly gets artefacts from https://repo.gradle.org/artifactory/libs-releases

@troosan troosan closed this as completed Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle area/maven env/m1 Impacts Apple M1 machines kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant