gradle build failed, can't install ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

gradle build failed, can't install ofbiz

AJ.345
Best Wishes...

I am trying to install OfBiz on Ubuntu 20.04.
and I am getting stuck in the step "gradle clearAll loadAll"
These are the steps I have followed.
I am not very advanced in my computer knowledge, hope you understand and
your help is gladly appreciated.

 
      *** downloaded and install java version as the read me file says.
 
  openjdk version "1.8.0_292"
  OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
  OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)

      ***  and then downloaded and unzip the Apache OfBiz file from the
website.

      ***  then, downloaded and installed the ''gradle 6.8'
   ------------------------------------------------------------
   Gradle 6.8.3
   ------------------------------------------------------------

   Build time:   2021-02-22 16:13:28 UTC
   Revision:     9e26b4a9ebb910eaa1b8da8ff8575e514bc61c78

   Kotlin:       1.4.20
   Groovy:       2.5.12
   Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
   JVM:          1.8.0_282 (Private Build 25.282-b08)
   OS:           Linux 5.8.0-53-generic amd64

     *** then when typing the commands in the terminal "gradle clearAll
LoadAll" there is the error it says
        "Build Failed", with the following lines,
 
   

           FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'ofbiz'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve at.bxm.gradleplugins:gradle-svntools-plugin:2.2.1.
     Required by:
         project :
      > Could not resolve at.bxm.gradleplugins:gradle-svntools-plugin:2.2.1.
         > Could not get resource
'https://repo.maven.apache.org/maven2/at/bxm/gradleplugins/gradle-svntools-plugin/2.2.1/gradle-svntools-plugin-2.2.1.pom'.
            > org.apache.http.ssl.SSLInitializationException:
/snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
(No such file or directory)
      > Could not resolve at.bxm.gradleplugins:gradle-svntools-plugin:2.2.1.
         > Could not get resource
'https://plugins.gradle.org/m2/at/bxm/gradleplugins/gradle-svntools-plugin/2.2.1/gradle-svntools-plugin-2.2.1.pom'.
            > org.apache.http.ssl.SSLInitializationException:
/snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
(No such file or directory)
   > Could not resolve org.asciidoctor:asciidoctor-gradle-plugin:1.5.8.1.
     Required by:
         project :
      > Could not resolve org.asciidoctor:asciidoctor-gradle-plugin:1.5.8.1.
         > Could not get resource
'https://repo.maven.apache.org/maven2/org/asciidoctor/asciidoctor-gradle-plugin/1.5.8.1/asciidoctor-gradle-plugin-1.5.8.1.pom'.
            > org.apache.http.ssl.SSLInitializationException:
/snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
(No such file or directory)
      > Could not resolve org.asciidoctor:asciidoctor-gradle-plugin:1.5.8.1.
         > Could not get resource
'https://plugins.gradle.org/m2/org/asciidoctor/asciidoctor-gradle-plugin/1.5.8.1/asciidoctor-gradle-plugin-1.5.8.1.pom'.
            > org.apache.http.ssl.SSLInitializationException:
/snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
(No such file or directory)
   > Could not resolve org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16.
     Required by:
         project :
      > Could not resolve org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16.
         > Could not get resource
'https://repo.maven.apache.org/maven2/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.16/asciidoctorj-pdf-1.5.0-alpha.16.pom'.
            > org.apache.http.ssl.SSLInitializationException:
/snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
(No such file or directory)
      > Could not resolve org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16.
         > Could not get resource
'https://plugins.gradle.org/m2/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.16/asciidoctorj-pdf-1.5.0-alpha.16.pom'.
            > org.apache.http.ssl.SSLInitializationException:
/snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
(No such file or directory)

* 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


I have tried many ways, tried uninstalling and reinstalling gradle, with no
effect.
Thank you and hope for the best!





--
Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html
Reply | Threaded
Open this post in threaded view
|

Re: gradle build failed, can't install ofbiz

Jacques Le Roux
Administrator
Hi,

Your message has been moderated, else it would not have reached this Mailing List.

Please subscribe to the user ML for such questions and then use your email client.
See why here http://ofbiz.apache.org/mailing-lists.html.

You will get a better support, people can answer you on the ML.
The wider the audience the better the answers you might get.

Also it's more work for moderators who have to accept your messages as long as you have not subscribed.
I'll personally no longer accept them (other moderators still could).

Thanks

This said, at the moment OFBiz trunk (which is the most advanced branch but not recommended in production) is using Gradle 6.5 not Gradle 6.8.3. But I
guess you don't use the trunk.

So, if you are using a released package (last one and recommended being 17.12.07) or a not yet released branch (ie R18.12) you need to refer to:

17.12.07 : https://ci.apache.org/projects/ofbiz/site/stable/readme/html5/README.html#download-the-gradle-wrapper

R18.12 branch (next branch to be released): https://ci.apache.org/projects/ofbiz/site/next/readme/html5/README.html#download-the-gradle-wrapper

HTH

Jacques

Le 14/05/2021 à 20:13, AJ.345 a écrit :

> Best Wishes...
>
> I am trying to install OfBiz on Ubuntu 20.04.
> and I am getting stuck in the step "gradle clearAll loadAll"
> These are the steps I have followed.
> I am not very advanced in my computer knowledge, hope you understand and
> your help is gladly appreciated.
>
>    
>        *** downloaded and install java version as the read me file says.
>    
>    openjdk version "1.8.0_292"
>    OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
>    OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
>
>        ***  and then downloaded and unzip the Apache OfBiz file from the
> website.
>
>        ***  then, downloaded and installed the ''gradle 6.8'
>     ------------------------------------------------------------
>     Gradle 6.8.3
>     ------------------------------------------------------------
>
>     Build time:   2021-02-22 16:13:28 UTC
>     Revision:     9e26b4a9ebb910eaa1b8da8ff8575e514bc61c78
>
>     Kotlin:       1.4.20
>     Groovy:       2.5.12
>     Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
>     JVM:          1.8.0_282 (Private Build 25.282-b08)
>     OS:           Linux 5.8.0-53-generic amd64
>
>       *** then when typing the commands in the terminal "gradle clearAll
> LoadAll" there is the error it says
>          "Build Failed", with the following lines,
>  
>      
>
>             FAILURE: Build failed with an exception.
>
> * What went wrong:
> A problem occurred configuring root project 'ofbiz'.
>> Could not resolve all artifacts for configuration ':classpath'.
>     > Could not resolve at.bxm.gradleplugins:gradle-svntools-plugin:2.2.1.
>       Required by:
>           project :
>        > Could not resolve at.bxm.gradleplugins:gradle-svntools-plugin:2.2.1.
>           > Could not get resource
> 'https://repo.maven.apache.org/maven2/at/bxm/gradleplugins/gradle-svntools-plugin/2.2.1/gradle-svntools-plugin-2.2.1.pom'.
>              > org.apache.http.ssl.SSLInitializationException:
> /snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
> (No such file or directory)
>        > Could not resolve at.bxm.gradleplugins:gradle-svntools-plugin:2.2.1.
>           > Could not get resource
> 'https://plugins.gradle.org/m2/at/bxm/gradleplugins/gradle-svntools-plugin/2.2.1/gradle-svntools-plugin-2.2.1.pom'.
>              > org.apache.http.ssl.SSLInitializationException:
> /snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
> (No such file or directory)
>     > Could not resolve org.asciidoctor:asciidoctor-gradle-plugin:1.5.8.1.
>       Required by:
>           project :
>        > Could not resolve org.asciidoctor:asciidoctor-gradle-plugin:1.5.8.1.
>           > Could not get resource
> 'https://repo.maven.apache.org/maven2/org/asciidoctor/asciidoctor-gradle-plugin/1.5.8.1/asciidoctor-gradle-plugin-1.5.8.1.pom'.
>              > org.apache.http.ssl.SSLInitializationException:
> /snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
> (No such file or directory)
>        > Could not resolve org.asciidoctor:asciidoctor-gradle-plugin:1.5.8.1.
>           > Could not get resource
> 'https://plugins.gradle.org/m2/org/asciidoctor/asciidoctor-gradle-plugin/1.5.8.1/asciidoctor-gradle-plugin-1.5.8.1.pom'.
>              > org.apache.http.ssl.SSLInitializationException:
> /snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
> (No such file or directory)
>     > Could not resolve org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16.
>       Required by:
>           project :
>        > Could not resolve org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16.
>           > Could not get resource
> 'https://repo.maven.apache.org/maven2/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.16/asciidoctorj-pdf-1.5.0-alpha.16.pom'.
>              > org.apache.http.ssl.SSLInitializationException:
> /snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
> (No such file or directory)
>        > Could not resolve org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16.
>           > Could not get resource
> 'https://plugins.gradle.org/m2/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.16/asciidoctorj-pdf-1.5.0-alpha.16.pom'.
>              > org.apache.http.ssl.SSLInitializationException:
> /snap/gradle/78/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
> (No such file or directory)
>
> * 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
>
>
> I have tried many ways, tried uninstalling and reinstalling gradle, with no
> effect.
> Thank you and hope for the best!
>
>
>
>
>
> --
> Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html
Reply | Threaded
Open this post in threaded view
|

Re: gradle build failed, can't install ofbiz

AJ.345
Jacques Le Roux wrote

> This said, at the moment OFBiz trunk (which is the most advanced branch
> but not recommended in production) is using Gradle 6.5 not Gradle 6.8.3.
> But I
> guess you don't use the trunk.
>
> So, if you are using a released package (last one and recommended being
> 17.12.07) or a not yet released branch (ie R18.12) you need to refer to:
>
> 17.12.07 :
> https://ci.apache.org/projects/ofbiz/site/stable/readme/html5/README.html#download-the-gradle-wrapper
>
> R18.12 branch (next branch to be released):
> https://ci.apache.org/projects/ofbiz/site/next/readme/html5/README.html#download-the-gradle-wrapper
>
> HTH
>
> Jacques
>
>
>> --

Hi Jacques
Thank you for the reply,

I am using apache ofBiz is for my small manufacturing Business, I am not a
developer. but I am an open source enthusiast.

I have entered the commands " ./gradlew cleanAll loadAll " and it worked for
a while and downloaded all dependencies to 100%, but at the end there is an
error "*Task 'cleanAll' not found in root project * ". I have copy pasted
the error message below.
Best wishes!

./gradlew cleanAll loadAll
Downloading https://services.gradle.org/distributions/gradle-6.8.3-bin.zip
..........10%..........20%..........30%...........40%..........50%..........60%..........70%...........80%..........90%..........100%
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use
--status for details

FAILURE: Build failed with an exception.

* What went wrong:
Task 'cleanAll' not found in root project 'ubuntupc'.

* Try:
Run gradlew tasks to get a list of available tasks. 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 8m 55s




--
Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html
Reply | Threaded
Open this post in threaded view
|

Re: gradle build failed, can't install ofbiz

NonnyHelpingUWin
In reply to this post by AJ.345
Hi AJ,
Consider deleting .gradle file and rebulid; because you maybe having user
with permission issues. See screenshot.
<http://ofbiz.135035.n4.nabble.com/file/t371252/Delete_.png>



--
Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html