2017-12-27 15 views
0

Fehler mit Gradle, mit Gluon Mobile.Fehler mit Gradle, mit Gluon Mobile

Hallo an alle.

Ich teste die Gluon-Handy-Plugin in Eclipse und es funktioniert normal, aber nach einer Abhängigkeit hinzuzufügen versuche, stieß ich auf den folgenden Fehlern:

FAILURE: Build failed with an exception. 

* What went wrong: 
Could not resolve all files for configuration ':AppTesteApp:compileClasspath'. 
> Could not download charm.jar (com.gluonhq:charm:4.4.1) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'. Received status code 503 from server: Service Unavailable 
> Could not download glisten-afterburner.jar (com.gluonhq:glisten-afterburner:1.2.1) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/glisten-afterburner/1.2.1/glisten-afterburner-1.2.1.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/glisten-afterburner/1.2.1/glisten-afterburner-1.2.1.jar'. Received status code 503 from server: Service Unavailable 
> Could not download charm-glisten-connect-view.jar (com.gluonhq:charm-glisten-connect-view:4.4.1) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten-connect-view/4.4.1/charm-glisten-connect-view-4.4.1.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten-connect-view/4.4.1/charm-glisten-connect-view-4.4.1.jar'. Received status code 503 from server: Service Unavailable 
> Could not download charm-glisten.jar (com.gluonhq:charm-glisten:4.4.1) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten/4.4.1/charm-glisten-4.4.1.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten/4.4.1/charm-glisten-4.4.1.jar'. Received status code 503 from server: Service Unavailable 
> Could not download charm-cloudlink-client.jar (com.gluonhq:charm-cloudlink-client:4.4.4) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-cloudlink-client/4.4.4/charm-cloudlink-client-4.4.4.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-cloudlink-client/4.4.4/charm-cloudlink-client-4.4.4.jar'. Received status code 503 from server: Service Unavailable 

* 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. 

I IDE geändert, das gleiche zu versuchen, und ich stieß auf den gleichen Fehler, und danach läuft es nicht.

Jemand ist auf diesen Fehler gestoßen und korrigiert? jedes Licht?

ich InteliJ IDE bin mit und Eclipse auf einem Fedora 26 mit JDK 1.8 ausgeführt wird, gradle 4.

Mein build.gradle:

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'org.javafxports:jfxmobile-plugin:1.3.10' 
    } 
} 

apply plugin: 'org.javafxports.jfxmobile' 

repositories { 
    jcenter() 
    maven { 
     url 'http://nexus.gluonhq.com/nexus/content/repositories/releases' 
    } 
} 

mainClassName = 'com.gluonapplication.GluonApplication' 

dependencies { 
    compile 'com.gluonhq:charm:4.4.1' 
} 

jfxmobile { 
    downConfig { 
     version = '3.6.0' 
     // Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead 
     plugins 'display', 'lifecycle', 'statusbar', 'storage' 
    } 
    android { 
     manifest = 'src/android/AndroidManifest.xml' 
    } 
    ios { 
     infoPList = file('src/ios/Default-Info.plist') 
     forceLinkClasses = [ 
       'com.gluonhq.**.*', 
       'javax.annotations.**.*', 
       'javax.inject.**.*', 
       'javax.json.**.*', 
       'org.glassfish.json.**.*' 
     ] 
    } 
} 

Console Fehler:

12:26:52: Executing task 'build'... 

:assemble UP-TO-DATE 
:check UP-TO-DATE 
:build UP-TO-DATE 
:GluonMobile-MultiViewProjectApp:compileJava FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Could not resolve all files for configuration ':GluonMobile-MultiViewProjectApp:compileClasspath'. 
> Could not download charm.jar (com.gluonhq:charm:4.4.1) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'. Received status code 503 from server: Service Unavailable 
> Could not download charm-glisten-connect-view.jar (com.gluonhq:charm-glisten-connect-view:4.4.1) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten-connect-view/4.4.1/charm-glisten-connect-view-4.4.1.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten-connect-view/4.4.1/charm-glisten-connect-view-4.4.1.jar'. Received status code 503 from server: Service Unavailable 
> Could not download charm-glisten.jar (com.gluonhq:charm-glisten:4.4.1) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten/4.4.1/charm-glisten-4.4.1.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten/4.4.1/charm-glisten-4.4.1.jar'. Received status code 503 from server: Service Unavailable 
> Could not download charm-cloudlink-client.jar (com.gluonhq:charm-cloudlink-client:4.4.4) 
    > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-cloudlink-client/4.4.4/charm-cloudlink-client-4.4.4.jar'. 
     > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-cloudlink-client/4.4.4/charm-cloudlink-client-4.4.4.jar'. Received status code 503 from server: Service Unavailable 

* 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 4s 
1 actionable task: 1 executed 
Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'. Received status code 503 from server: Service Unavailable 
12:26:56: Task execution finished 'build'. 

enter image description here

enter image description here

+0

Veröffentlichen Sie Ihre Datei 'build.gradle'. Der Fehler 'Statuscode 503 vom Server empfangen: Dienst nicht verfügbar 'könnte bedeuten, dass der Nexus-Server ausgefallen ist, aber es funktioniert jetzt für mich. Kannst du es noch einmal überprüfen? –

+0

Hallo José = D meine build.gradle 'buildscript { Abhängigkeiten { Classpath 'org.javafxports: jfxmobile-Plugin: 1.1.0' } } Repositorys { jcenter() Maven { url‚http://nexus.gluonhq.com/nexus/content/repositories/releases' } } Abhängigkeiten { Kompilierung 'com.gluonhq: Charme: 4.0.0' } jfxmobile { downConfig { version = ‚3.0.0 ' Plugins' Anzeige ',' Lebenszyklus ',' Statusleiste ',' Speicher ' } android { manifest = 'src/android/AndroidManifest.xml' } } ' –

+0

Ich sah, dass Sie dies beantwortet, und änderte meine Größe, aber der Fehler bleibt bestehen. [https://stackoverflow.com/questions/41519348/gluon-4-x-x-artifacts-not-in-the-nexus-repo?rq=1] –

Antwort

0

Der Fehler wurde gelöst, ich habe die Gradle IdePack 3.8.x + 1.0.x plugin heruntergeladen und erfolgreich ausgeführt. Ich bin sehr dankbar für die Unterstützung.

+0

Wenn Sie eine der [Antworten] (https://stackoverflow.com/a/47457354/3956070) auf die Frage, die Sie erwähnt haben, überprüfen, gibt es eine neue Plugin-Version, so dass Sie nur Ihr aktuelles Plugin aktualisieren müssen . –

+0

@ JoséPereda, wissen Sie, wie Abhängigkeiten wie Firebase zum Beispiel hinzufügen? Ich versuche, API zu verwenden, aber schreibe meine Bibliotheken nicht auf. –

+0

Bitte erstellen Sie eine neue Frage. –

Verwandte Themen