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

Issue regarding plugin in Gradle #77

Open
ZKathrynx opened this issue Oct 18, 2019 · 5 comments
Open

Issue regarding plugin in Gradle #77

ZKathrynx opened this issue Oct 18, 2019 · 5 comments

Comments

@ZKathrynx
Copy link

When I tried to load plugins from maven, gradle seems not to be able to connect to maven.
The error message is: could not resolve plugin artifact 'org.openjfx.javafxplugin:org.openjfx.javafxplugin.gradle.plugin:0.0.8'. (the name of whichever plugin I try to use)

It seems like an HTTPS problem, because when I first started using Gradle, I could not install it until I changed the distributionUrl in gradlewrapper_properties from https into http.
I have tried changing mavenCentral() into maven { url "http://repo.maven.apache.org/maven2/" }, but this still doesn't work.

It seems that there are also other people on the Internet who have met similar problem, but I tried every method I could find and none of them works, My teammates have offered a lot of help but none of them got the same problem as me so we are all out of ideas.....I'm quite desparate now.

Could anyone please help me take a look at this problem? Thank you very much!!

@ZKathrynx
Copy link
Author

The full error message is like:

F:\main>gradlew clean

FAILURE: Build failed with an exception.

* Where:
Build file 'F:\main\build.gradle' line: 6

* What went wrong:
Plugin [id: 'org.openjfx.javafxplugin', version: '0.0.8'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.openjfx.javafxplugin:org.openjfx.javafxplugin.gradle.plugin:0.0.8')
  Searched in the following repositories:
    Gradle Central Plugin Repository

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

@ZKathrynx
Copy link
Author

If I shut down Windows Firewall and try to build, it will give me another set of error message like this:

F:\main>gradlew clean

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'duke'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.openjfx:javafx-plugin:0.0.8.
     Required by:
         project : > org.openjfx.javafxplugin:org.openjfx.javafxplugin.gradle.plugin:0.0.8
      > Could not resolve org.openjfx:javafx-plugin:0.0.8.
         > Could not get resource 'https://plugins.gradle.org/m2/org/openjfx/javafx-plugin/0.0.8/javafx-plugin-0.0.8.pom'.
            > Could not GET 'https://plugins-artifacts.gradle.org/org.openjfx/javafx-plugin/0.0.8/aa14e852fa1a4f600f8ed474c4e83dbc4138fd415c51672cd598579c51a24bb4/javafx-plugin-0.0.8.pom'.
               > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target This is exactly the same error I got when I first started using Gradle and I had to change https into http to solve it.

@Jefferson111
Copy link

I don't know, but since you tried changing maven, you can try changing to this.

repositories {
    mavenCentral()
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}

@okkhoy
Copy link
Collaborator

okkhoy commented Oct 22, 2019

@ZKathrynx did you manage to resolve this issue?
Based on my checking with the developer team, this is the first time they are seeing such an issue and there is no much information on their side as well.

A shot in the dark:
Could you try to remove the two folders:
<your home directory>/.gradle and <your project directory>/.gradle and re-run Gradle. Essentially you will be re-creating the entire dependency dump on your machine.

@j-lum
Copy link

j-lum commented Oct 23, 2019

Looks like something is wrong with your JVM's security certificates. Try installing a different distribution of the JVM or reinstall?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants