BUILD FAILED

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

BUILD FAILED

traderjim
Hi all

I need some help installing ofbiz. After running the gradle init-gradle-wrapper command  receive the following. Your help is greatly appreciated!:

20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'ofbiz'.
20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find method metadataSources() for arguments [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c] on org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

Jacques Le Roux
Administrator
Hi James,

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, could you tell us more about what you exactly did after init-gradle-wrapper? On what environment (OS) are you?

Jacques

Le 06/05/2021 à 10:50, James Brett a écrit :

> Hi all
>
> I need some help installing ofbiz. After running the gradle init-gradle-wrapper command  receive the following. Your help is greatly appreciated!:
>
> 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
> 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'ofbiz'.
> 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find method metadataSources() for arguments [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c] on org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.

Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

traderjim
Hi Jacques

My apologies - I thought I had already subscribed.

After I ran 'gradle init-gradle-wrapper' command (which failed), I ran 'gradle --debug' which returned the errors in my original post. I am using Windows 10.

Thanks,

James.

On 2021/05/06 09:26:30, Jacques Le Roux <[hidden email]> wrote:

> Hi James,
>
> 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, could you tell us more about what you exactly did after init-gradle-wrapper? On what environment (OS) are you?
>
> Jacques
>
> Le 06/05/2021 à 10:50, James Brett a écrit :
> > Hi all
> >
> > I need some help installing ofbiz. After running the gradle init-gradle-wrapper command  receive the following. Your help is greatly appreciated!:
> >
> > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
> > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'ofbiz'.
> > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find method metadataSources() for arguments [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c] on org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
>
>
grv
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

grv
Hi James

Since you're running "gradle", instead of "gradlew", chances are there is a
version mismatch because gradlew will make sure to download the compatible
gradle version to use for installation of OFBiz version in question. Using
gradle will use the version that's on your "PATH" which may or may not be
compatible.

Could you please try with "gradlew" once?

Best,
Girish



On Thu, May 6, 2021 at 3:58 PM James Brett <[hidden email]> wrote:

> Hi Jacques
>
> My apologies - I thought I had already subscribed.
>
> After I ran 'gradle init-gradle-wrapper' command (which failed), I ran
> 'gradle --debug' which returned the errors in my original post. I am using
> Windows 10.
>
> Thanks,
>
> James.
>
> On 2021/05/06 09:26:30, Jacques Le Roux <[hidden email]>
> wrote:
> > Hi James,
> >
> > 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, could you tell us more about what you exactly did after
> init-gradle-wrapper? On what environment (OS) are you?
> >
> > Jacques
> >
> > Le 06/05/2021 à 10:50, James Brett a écrit :
> > > Hi all
> > >
> > > I need some help installing ofbiz. After running the gradle
> init-gradle-wrapper command  receive the following. Your help is greatly
> appreciated!:
> > >
> > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> Build failed with an exception.
> > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went
> wrong:
> > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> occurred evaluating root project 'ofbiz'.
> > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> find method metadataSources() for arguments
> [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> on
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> --stacktrace option to get the stack trace.
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
What did you expect to do with 'gradle --debug'?

Please refer to https://ci.apache.org/projects/ofbiz/site/trunk/readme/html5/README.html (and subscribe to user ML, don't expect direct answers from
me, TIA)

HTH

Jacques

Le 06/05/2021 à 11:33, James Brett a écrit :

> Hi Jacques
>
> My apologies - I thought I had already subscribed.
>
> After I ran 'gradle init-gradle-wrapper' command (which failed), I ran 'gradle --debug' which returned the errors in my original post. I am using
> Windows 10.
>
> Thanks,
>
> James.
>
> On Thu, May 6, 2021 at 9:27 PM Jacques Le Roux <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi James,
>
>     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 <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, could you tell us more about what you exactly did after init-gradle-wrapper? On what environment (OS) are you?
>
>     Jacques
>
>     Le 06/05/2021 à 10:50, James Brett a écrit :
>     > Hi all
>     >
>     > I need some help installing ofbiz. After running the gradle init-gradle-wrapper command  receive the following. Your help is greatly appreciated!:
>     >
>     > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
>     > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
>     > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
>     > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
>     > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
>     > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
>     > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
>     > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'ofbiz'.
>     > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find method metadataSources() for arguments
>     [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c] on
>     org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
>     > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
>     > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
>     > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
>
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

traderjim
In reply to this post by grv
Hi Girish

Thanks for your reply. I'm sorry I should have mentioned, I am not a developer so I don't quite understand. What is the command I should enter to run 'gradlew'?

Thanks again,

James.

On 2021/05/06 10:57:59, Girish Vasmatkar <[hidden email]> wrote:

> Hi James
>
> Since you're running "gradle", instead of "gradlew", chances are there is a
> version mismatch because gradlew will make sure to download the compatible
> gradle version to use for installation of OFBiz version in question. Using
> gradle will use the version that's on your "PATH" which may or may not be
> compatible.
>
> Could you please try with "gradlew" once?
>
> Best,
> Girish
>
>
>
> On Thu, May 6, 2021 at 3:58 PM James Brett <[hidden email]> wrote:
>
> > Hi Jacques
> >
> > My apologies - I thought I had already subscribed.
> >
> > After I ran 'gradle init-gradle-wrapper' command (which failed), I ran
> > 'gradle --debug' which returned the errors in my original post. I am using
> > Windows 10.
> >
> > Thanks,
> >
> > James.
> >
> > On 2021/05/06 09:26:30, Jacques Le Roux <[hidden email]>
> > wrote:
> > > Hi James,
> > >
> > > 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, could you tell us more about what you exactly did after
> > init-gradle-wrapper? On what environment (OS) are you?
> > >
> > > Jacques
> > >
> > > Le 06/05/2021 à 10:50, James Brett a écrit :
> > > > Hi all
> > > >
> > > > I need some help installing ofbiz. After running the gradle
> > init-gradle-wrapper command  receive the following. Your help is greatly
> > appreciated!:
> > > >
> > > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> > Build failed with an exception.
> > > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> > 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went
> > wrong:
> > > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> > occurred evaluating root project 'ofbiz'.
> > > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> > find method metadataSources() for arguments
> > [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> > on
> > org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> > --stacktrace option to get the stack trace.
> > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

traderjim
In reply to this post by Jacques Le Roux
Hi Jacques

I'm sorry I should have mentioned that I am not a developer - I ran the debug because it was suggested by the resulting build failure.

Thanks for your help,

James.

On 2021/05/06 11:16:51, Jacques Le Roux <[hidden email]> wrote:

> What did you expect to do with 'gradle --debug'?
>
> Please refer to https://ci.apache.org/projects/ofbiz/site/trunk/readme/html5/README.html (and subscribe to user ML, don't expect direct answers from
> me, TIA)
>
> HTH
>
> Jacques
>
> Le 06/05/2021 à 11:33, James Brett a écrit :
> > Hi Jacques
> >
> > My apologies - I thought I had already subscribed.
> >
> > After I ran 'gradle init-gradle-wrapper' command (which failed), I ran 'gradle --debug' which returned the errors in my original post. I am using
> > Windows 10.
> >
> > Thanks,
> >
> > James.
> >
> > On Thu, May 6, 2021 at 9:27 PM Jacques Le Roux <[hidden email] <mailto:[hidden email]>> wrote:
> >
> >     Hi James,
> >
> >     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 <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, could you tell us more about what you exactly did after init-gradle-wrapper? On what environment (OS) are you?
> >
> >     Jacques
> >
> >     Le 06/05/2021 à 10:50, James Brett a écrit :
> >     > Hi all
> >     >
> >     > I need some help installing ofbiz. After running the gradle init-gradle-wrapper command  receive the following. Your help is greatly appreciated!:
> >     >
> >     > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> >     > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
> >     > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> >     > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> >     > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> >     > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> >     > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> >     > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'ofbiz'.
> >     > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find method metadataSources() for arguments
> >     [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c] on
> >     org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> >     > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> >     > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> >     > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

traderjim
In reply to this post by traderjim
Hi Girish

This is the resulting failure from running 'gradle gradlew' command.

C:\apache-ofbiz-17.12.07>gradle gradlew

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105

* What went wrong:
A problem occurred evaluating root project 'ofbiz'.
> Could not find method metadataSources() for arguments [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@3f9b7fe1] on org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@35d26ad2.

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

BUILD FAILED

Total time: 13.747 secs

On 2021/05/07 07:24:42, James Brett <[hidden email]> wrote:

> Hi Girish
>
> Thanks for your reply. I'm sorry I should have mentioned, I am not a developer so I don't quite understand. What is the command I should enter to run 'gradlew'?
>
> Thanks again,
>
> James.
>
> On 2021/05/06 10:57:59, Girish Vasmatkar <[hidden email]> wrote:
> > Hi James
> >
> > Since you're running "gradle", instead of "gradlew", chances are there is a
> > version mismatch because gradlew will make sure to download the compatible
> > gradle version to use for installation of OFBiz version in question. Using
> > gradle will use the version that's on your "PATH" which may or may not be
> > compatible.
> >
> > Could you please try with "gradlew" once?
> >
> > Best,
> > Girish
> >
> >
> >
> > On Thu, May 6, 2021 at 3:58 PM James Brett <[hidden email]> wrote:
> >
> > > Hi Jacques
> > >
> > > My apologies - I thought I had already subscribed.
> > >
> > > After I ran 'gradle init-gradle-wrapper' command (which failed), I ran
> > > 'gradle --debug' which returned the errors in my original post. I am using
> > > Windows 10.
> > >
> > > Thanks,
> > >
> > > James.
> > >
> > > On 2021/05/06 09:26:30, Jacques Le Roux <[hidden email]>
> > > wrote:
> > > > Hi James,
> > > >
> > > > 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, could you tell us more about what you exactly did after
> > > init-gradle-wrapper? On what environment (OS) are you?
> > > >
> > > > Jacques
> > > >
> > > > Le 06/05/2021 à 10:50, James Brett a écrit :
> > > > > Hi all
> > > > >
> > > > > I need some help installing ofbiz. After running the gradle
> > > init-gradle-wrapper command  receive the following. Your help is greatly
> > > appreciated!:
> > > > >
> > > > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> > > Build failed with an exception.
> > > > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> > > 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went
> > > wrong:
> > > > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> > > occurred evaluating root project 'ofbiz'.
> > > > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> > > find method metadataSources() for arguments
> > > [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> > > on
> > > org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> > > --stacktrace option to get the stack trace.
> > > >
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

AW: BUILD FAILED

iwolf
In reply to this post by traderjim
Hi James,

I asume your gradle version is not up to date. Can you go into your Ofbiz installation directory look for the hidden .gradle folder and let us know if you see the folder "4.5.1". If not, delete the content of the folder, build Ofbiz and check again.

Best regards
Ingo



-----Ursprüngliche Nachricht-----
Von: James Brett <[hidden email]>
Gesendet: Donnerstag, 6. Mai 2021 10:50
An: [hidden email]
Betreff: BUILD FAILED

Hi allcd .

I need some help installing ofbiz. After running the gradle init-gradle-wrapper command  receive the following. Your help is greatly appreciated!:

20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'ofbiz'.
20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find method metadataSources() for arguments [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c] on org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
grv
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

grv
"gradle gradlew'" does nothing.

Please use *gradlew* instead of *gradle*.

*gradle* command will use the version that is found on your PATH and
chances of mismatch exists.

Best Regards,
Girish

On Fri, May 7, 2021 at 1:41 PM Ingo Wolfmayr <[hidden email]>
wrote:

> Hi James,
>
> I asume your gradle version is not up to date. Can you go into your Ofbiz
> installation directory look for the hidden .gradle folder and let us know
> if you see the folder "4.5.1". If not, delete the content of the folder,
> build Ofbiz and check again.
>
> Best regards
> Ingo
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: James Brett <[hidden email]>
> Gesendet: Donnerstag, 6. Mai 2021 10:50
> An: [hidden email]
> Betreff: BUILD FAILED
>
> Hi allcd .
>
> I need some help installing ofbiz. After running the gradle
> init-gradle-wrapper command  receive the following. Your help is greatly
> appreciated!:
>
> 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build
> failed with an exception.
> 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> occurred evaluating root project 'ofbiz'.
> 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find
> method metadataSources() for arguments
> [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> on
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> --stacktrace option to get the stack trace.
>
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILED

traderjim
Hi Girish

Thank you for your reply. Gradlew doesn't seem to work either and returns the following:

C:\Users\jbret\Downloads\apache-ofbiz-17.12.07\apache-ofbiz-17.12.07>gradlew init-gradle-wrapper
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

C:\Users\jbret\Downloads\apache-ofbiz-17.12.07\apache-ofbiz-17.12.07>gradlew gradlew
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

On 2021/05/07 10:51:17, Girish Vasmatkar <[hidden email]> wrote:

> "gradle gradlew'" does nothing.
>
> Please use *gradlew* instead of *gradle*.
>
> *gradle* command will use the version that is found on your PATH and
> chances of mismatch exists.
>
> Best Regards,
> Girish
>
> On Fri, May 7, 2021 at 1:41 PM Ingo Wolfmayr <[hidden email]>
> wrote:
>
> > Hi James,
> >
> > I asume your gradle version is not up to date. Can you go into your Ofbiz
> > installation directory look for the hidden .gradle folder and let us know
> > if you see the folder "4.5.1". If not, delete the content of the folder,
> > build Ofbiz and check again.
> >
> > Best regards
> > Ingo
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: James Brett <[hidden email]>
> > Gesendet: Donnerstag, 6. Mai 2021 10:50
> > An: [hidden email]
> > Betreff: BUILD FAILED
> >
> > Hi allcd .
> >
> > I need some help installing ofbiz. After running the gradle
> > init-gradle-wrapper command  receive the following. Your help is greatly
> > appreciated!:
> >
> > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build
> > failed with an exception.
> > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> > 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> > occurred evaluating root project 'ofbiz'.
> > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find
> > method metadataSources() for arguments
> > [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> > on
> > org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> > --stacktrace option to get the stack trace.
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: AW: BUILD FAILED

traderjim
In reply to this post by iwolf
Hi Ingo

Neither of these folders are in the installation directory.

Thanks for your help,

James.

On 2021/05/07 08:10:57, Ingo Wolfmayr <[hidden email]> wrote:

> Hi James,
>
> I asume your gradle version is not up to date. Can you go into your Ofbiz installation directory look for the hidden .gradle folder and let us know if you see the folder "4.5.1". If not, delete the content of the folder, build Ofbiz and check again.
>
> Best regards
> Ingo
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: James Brett <[hidden email]>
> Gesendet: Donnerstag, 6. Mai 2021 10:50
> An: [hidden email]
> Betreff: BUILD FAILED
>
> Hi allcd .
>
> I need some help installing ofbiz. After running the gradle init-gradle-wrapper command  receive the following. Your help is greatly appreciated!:
>
> 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
> 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'ofbiz'.
> 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find method metadataSources() for arguments [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c] on org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
>
Reply | Threaded
Open this post in threaded view
|

RE: BUILD FAILED

Katie Qiu-2
In reply to this post by traderjim
Hi James,

You need to install gradle-wrapper.jar file and put it in the folder at project folder -> gradle -> wrapper

Thanks
Katie

-----Original Message-----
From: James Brett [mailto:[hidden email]]
Sent: Sunday, May 09, 2021 11:27 PM
To: [hidden email]
Subject: Re: BUILD FAILED

Hi Girish

Thank you for your reply. Gradlew doesn't seem to work either and returns the following:

C:\Users\jbret\Downloads\apache-ofbiz-17.12.07\apache-ofbiz-17.12.07>gradlew init-gradle-wrapper
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

C:\Users\jbret\Downloads\apache-ofbiz-17.12.07\apache-ofbiz-17.12.07>gradlew gradlew
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

On 2021/05/07 10:51:17, Girish Vasmatkar <[hidden email]> wrote:

> "gradle gradlew'" does nothing.
>
> Please use *gradlew* instead of *gradle*.
>
> *gradle* command will use the version that is found on your PATH and
> chances of mismatch exists.
>
> Best Regards,
> Girish
>
> On Fri, May 7, 2021 at 1:41 PM Ingo Wolfmayr <[hidden email]>
> wrote:
>
> > Hi James,
> >
> > I asume your gradle version is not up to date. Can you go into your
> > Ofbiz installation directory look for the hidden .gradle folder and
> > let us know if you see the folder "4.5.1". If not, delete the
> > content of the folder, build Ofbiz and check again.
> >
> > Best regards
> > Ingo
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: James Brett <[hidden email]>
> > Gesendet: Donnerstag, 6. Mai 2021 10:50
> > An: [hidden email]
> > Betreff: BUILD FAILED
> >
> > Hi allcd .
> >
> > I need some help installing ofbiz. After running the gradle
> > init-gradle-wrapper command  receive the following. Your help is
> > greatly
> > appreciated!:
> >
> > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> > Build failed with an exception.
> > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> > 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> > occurred evaluating root project 'ofbiz'.
> > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> > find method metadataSources() for arguments
> > [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66
> > $_closure68@a85644c]
> > on
> > org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> > --stacktrace option to get the stack trace.
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: AW: BUILD FAILED

Daniel Watford
In reply to this post by traderjim
Hi James,

The gradlew script is not included with ofbiz releases, you need to
retrieve it by running the init-gradle-wrapper script. See section 2.1 here
- Apache OFBiz User Manual (ofbizextra.org)
<https://ofbizextra.org/ofbiz_adocs/docs/asciidoc/user-manual.html>


On Mon, 10 May 2021 at 07:29, James Brett <[hidden email]> wrote:

> Hi Ingo
>
> Neither of these folders are in the installation directory.
>
> Thanks for your help,
>
> James.
>
> On 2021/05/07 08:10:57, Ingo Wolfmayr <[hidden email]> wrote:
> > Hi James,
> >
> > I asume your gradle version is not up to date. Can you go into your
> Ofbiz installation directory look for the hidden .gradle folder and let us
> know if you see the folder "4.5.1". If not, delete the content of the
> folder, build Ofbiz and check again.
> >
> > Best regards
> > Ingo
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: James Brett <[hidden email]>
> > Gesendet: Donnerstag, 6. Mai 2021 10:50
> > An: [hidden email]
> > Betreff: BUILD FAILED
> >
> > Hi allcd .
> >
> > I need some help installing ofbiz. After running the gradle
> init-gradle-wrapper command  receive the following. Your help is greatly
> appreciated!:
> >
> > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build
> failed with an exception.
> > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went
> wrong:
> > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> occurred evaluating root project 'ofbiz'.
> > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> find method metadataSources() for arguments
> [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> on
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> --stacktrace option to get the stack trace.
> >
>


--
Daniel Watford
Reply | Threaded
Open this post in threaded view
|

Re: RE: BUILD FAILED

traderjim
In reply to this post by Katie Qiu-2
Hi Katie

Thanks for your help. Can you be more specific - Where do I get the gradle-wrapper.jar file from?

I realised that I was using an outdated version of gradle and have since updated to v6.9. The build appeared to make more progress than previous but has still failed with the following result:

Gradle 6.9
------------------------------------------------------------

Build time:   2021-05-07 07:28:53 UTC
Revision:     afe2e24ababc7b0213ccffff44970aa18035fc0e

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_292 (AdoptOpenJDK 25.292-b10)
OS:           Windows 10 10.0 amd64

C:\Users\jbret>cd C:\apache-ofbiz-17.12.07

C:\apache-ofbiz-17.12.07>gradle init-gradle-wrapper

FAILURE: Build failed with an exception.

* What went wrong:
Task 'init-gradle-wrapper' not found in root project 'ofbiz'.

* Try:
Run gradle 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 49s

On 2021/05/10 06:35:54, "Katie Qiu" <[hidden email]> wrote:

> Hi James,
>
> You need to install gradle-wrapper.jar file and put it in the folder at project folder -> gradle -> wrapper
>
> Thanks
> Katie
>
> -----Original Message-----
> From: James Brett [mailto:[hidden email]]
> Sent: Sunday, May 09, 2021 11:27 PM
> To: [hidden email]
> Subject: Re: BUILD FAILED
>
> Hi Girish
>
> Thank you for your reply. Gradlew doesn't seem to work either and returns the following:
>
> C:\Users\jbret\Downloads\apache-ofbiz-17.12.07\apache-ofbiz-17.12.07>gradlew init-gradle-wrapper
> Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
>
> C:\Users\jbret\Downloads\apache-ofbiz-17.12.07\apache-ofbiz-17.12.07>gradlew gradlew
> Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
>
> On 2021/05/07 10:51:17, Girish Vasmatkar <[hidden email]> wrote:
> > "gradle gradlew'" does nothing.
> >
> > Please use *gradlew* instead of *gradle*.
> >
> > *gradle* command will use the version that is found on your PATH and
> > chances of mismatch exists.
> >
> > Best Regards,
> > Girish
> >
> > On Fri, May 7, 2021 at 1:41 PM Ingo Wolfmayr <[hidden email]>
> > wrote:
> >
> > > Hi James,
> > >
> > > I asume your gradle version is not up to date. Can you go into your
> > > Ofbiz installation directory look for the hidden .gradle folder and
> > > let us know if you see the folder "4.5.1". If not, delete the
> > > content of the folder, build Ofbiz and check again.
> > >
> > > Best regards
> > > Ingo
> > >
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: James Brett <[hidden email]>
> > > Gesendet: Donnerstag, 6. Mai 2021 10:50
> > > An: [hidden email]
> > > Betreff: BUILD FAILED
> > >
> > > Hi allcd .
> > >
> > > I need some help installing ofbiz. After running the gradle
> > > init-gradle-wrapper command  receive the following. Your help is
> > > greatly
> > > appreciated!:
> > >
> > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> > > Build failed with an exception.
> > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> > > 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> > > occurred evaluating root project 'ofbiz'.
> > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> > > find method metadataSources() for arguments
> > > [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66
> > > $_closure68@a85644c]
> > > on
> > > org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> > > --stacktrace option to get the stack trace.
> > >
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: AW: BUILD FAILED

traderjim
In reply to this post by Daniel Watford
Hi Dan

I have run 'C:\apache-ofbiz-17.12.07>init-gradle-wrapper'.

This process asks for UAC permission, then when granted, seemingly does nothing. Am I missing something??

On 2021/05/10 06:43:43, Daniel Watford <[hidden email]> wrote:

> Hi James,
>
> The gradlew script is not included with ofbiz releases, you need to
> retrieve it by running the init-gradle-wrapper script. See section 2.1 here
> - Apache OFBiz User Manual (ofbizextra.org)
> <https://ofbizextra.org/ofbiz_adocs/docs/asciidoc/user-manual.html>
>
>
> On Mon, 10 May 2021 at 07:29, James Brett <[hidden email]> wrote:
>
> > Hi Ingo
> >
> > Neither of these folders are in the installation directory.
> >
> > Thanks for your help,
> >
> > James.
> >
> > On 2021/05/07 08:10:57, Ingo Wolfmayr <[hidden email]> wrote:
> > > Hi James,
> > >
> > > I asume your gradle version is not up to date. Can you go into your
> > Ofbiz installation directory look for the hidden .gradle folder and let us
> > know if you see the folder "4.5.1". If not, delete the content of the
> > folder, build Ofbiz and check again.
> > >
> > > Best regards
> > > Ingo
> > >
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: James Brett <[hidden email]>
> > > Gesendet: Donnerstag, 6. Mai 2021 10:50
> > > An: [hidden email]
> > > Betreff: BUILD FAILED
> > >
> > > Hi allcd .
> > >
> > > I need some help installing ofbiz. After running the gradle
> > init-gradle-wrapper command  receive the following. Your help is greatly
> > appreciated!:
> > >
> > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build
> > failed with an exception.
> > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> > 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went
> > wrong:
> > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> > occurred evaluating root project 'ofbiz'.
> > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> > find method metadataSources() for arguments
> > [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> > on
> > org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> > --stacktrace option to get the stack trace.
> > >
> >
>
>
> --
> Daniel Watford
>
Reply | Threaded
Open this post in threaded view
|

Re: AW: BUILD FAILED

Daniel Watford
Hi James,

When reviewing instructions and discussions, be careful to distinguish
between gradle and gradlew.

There are various forms of the init-gradle-wrapper script,
targeting windows and unix environments.

Ofbiz is built using the gradle wrapper script, gradlew. This script is not
distributed with ofbiz releases which means it needs to be downloaded,
along with its associated jar file.

If you take a look at the contents of init-gradle-wrapper.bat you should
see that it calls a powershell script in ./gradle/init-gradle-wrapp.ps1.
Looking at this script I see it will create a new directory,
gradle/wrapper, and download a jar file gradle/wrapper/gradle-wrapper.jar
from
https://github.com/gradle/gradle/raw/v6.5.1/gradle/wrapper/gradle-wrapper.jar
.

Looking at the powershell, it is not clear to me which line is responsible
for creating ./gradlew.

What is the content of your ./gradle directory?

Perhaps there are some problems running powershell on your system? If so,
could you run the ./gradle/init-gradle-wrapper.sh script from git-bash
instead?


On Mon, 10 May 2021 at 10:59, James Brett <[hidden email]> wrote:

> Hi Dan
>
> I have run 'C:\apache-ofbiz-17.12.07>init-gradle-wrapper'.
>
> This process asks for UAC permission, then when granted, seemingly does
> nothing. Am I missing something??
>
> On 2021/05/10 06:43:43, Daniel Watford <[hidden email]> wrote:
> > Hi James,
> >
> > The gradlew script is not included with ofbiz releases, you need to
> > retrieve it by running the init-gradle-wrapper script. See section 2.1
> here
> > - Apache OFBiz User Manual (ofbizextra.org)
> > <https://ofbizextra.org/ofbiz_adocs/docs/asciidoc/user-manual.html>
> >
> >
> > On Mon, 10 May 2021 at 07:29, James Brett <[hidden email]> wrote:
> >
> > > Hi Ingo
> > >
> > > Neither of these folders are in the installation directory.
> > >
> > > Thanks for your help,
> > >
> > > James.
> > >
> > > On 2021/05/07 08:10:57, Ingo Wolfmayr <[hidden email]> wrote:
> > > > Hi James,
> > > >
> > > > I asume your gradle version is not up to date. Can you go into your
> > > Ofbiz installation directory look for the hidden .gradle folder and
> let us
> > > know if you see the folder "4.5.1". If not, delete the content of the
> > > folder, build Ofbiz and check again.
> > > >
> > > > Best regards
> > > > Ingo
> > > >
> > > >
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: James Brett <[hidden email]>
> > > > Gesendet: Donnerstag, 6. Mai 2021 10:50
> > > > An: [hidden email]
> > > > Betreff: BUILD FAILED
> > > >
> > > > Hi allcd .
> > > >
> > > > I need some help installing ofbiz. After running the gradle
> > > init-gradle-wrapper command  receive the following. Your help is
> greatly
> > > appreciated!:
> > > >
> > > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> Build
> > > failed with an exception.
> > > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> > > 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went
> > > wrong:
> > > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> > > occurred evaluating root project 'ofbiz'.
> > > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> > > find method metadataSources() for arguments
> > >
> [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c
> ]
> > > on
> > >
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> > > --stacktrace option to get the stack trace.
> > > >
> > >
> >
> >
> > --
> > Daniel Watford
> >
>


--
Daniel Watford
Reply | Threaded
Open this post in threaded view
|

RE: RE: BUILD FAILED

Katie Qiu-2
In reply to this post by traderjim
Hi James,

If you google gradle-wrapper.jar online, you will see plenty information about Gradle and downloading the .jar file.


Thanks
Katie

-----Original Message-----
From: James Brett [mailto:[hidden email]]
Sent: Monday, May 10, 2021 2:43 AM
To: [hidden email]
Subject: Re: RE: BUILD FAILED

Hi Katie

Thanks for your help. Can you be more specific - Where do I get the gradle-wrapper.jar file from?

I realised that I was using an outdated version of gradle and have since updated to v6.9. The build appeared to make more progress than previous but has still failed with the following result:

Gradle 6.9
------------------------------------------------------------

Build time:   2021-05-07 07:28:53 UTC
Revision:     afe2e24ababc7b0213ccffff44970aa18035fc0e

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_292 (AdoptOpenJDK 25.292-b10)
OS:           Windows 10 10.0 amd64

C:\Users\jbret>cd C:\apache-ofbiz-17.12.07

C:\apache-ofbiz-17.12.07>gradle init-gradle-wrapper

FAILURE: Build failed with an exception.

* What went wrong:
Task 'init-gradle-wrapper' not found in root project 'ofbiz'.

* Try:
Run gradle 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 49s

On 2021/05/10 06:35:54, "Katie Qiu" <[hidden email]> wrote:

> Hi James,
>
> You need to install gradle-wrapper.jar file and put it in the folder
> at project folder -> gradle -> wrapper
>
> Thanks
> Katie
>
> -----Original Message-----
> From: James Brett [mailto:[hidden email]]
> Sent: Sunday, May 09, 2021 11:27 PM
> To: [hidden email]
> Subject: Re: BUILD FAILED
>
> Hi Girish
>
> Thank you for your reply. Gradlew doesn't seem to work either and returns the following:
>
> C:\Users\jbret\Downloads\apache-ofbiz-17.12.07\apache-ofbiz-17.12.07>g
> radlew init-gradle-wrapper
> Error: Could not find or load main class
> org.gradle.wrapper.GradleWrapperMain
>
> C:\Users\jbret\Downloads\apache-ofbiz-17.12.07\apache-ofbiz-17.12.07>g
> radlew gradlew
> Error: Could not find or load main class
> org.gradle.wrapper.GradleWrapperMain
>
> On 2021/05/07 10:51:17, Girish Vasmatkar <[hidden email]> wrote:
> > "gradle gradlew'" does nothing.
> >
> > Please use *gradlew* instead of *gradle*.
> >
> > *gradle* command will use the version that is found on your PATH and
> > chances of mismatch exists.
> >
> > Best Regards,
> > Girish
> >
> > On Fri, May 7, 2021 at 1:41 PM Ingo Wolfmayr
> > <[hidden email]>
> > wrote:
> >
> > > Hi James,
> > >
> > > I asume your gradle version is not up to date. Can you go into
> > > your Ofbiz installation directory look for the hidden .gradle
> > > folder and let us know if you see the folder "4.5.1". If not,
> > > delete the content of the folder, build Ofbiz and check again.
> > >
> > > Best regards
> > > Ingo
> > >
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: James Brett <[hidden email]>
> > > Gesendet: Donnerstag, 6. Mai 2021 10:50
> > > An: [hidden email]
> > > Betreff: BUILD FAILED
> > >
> > > Hi allcd .
> > >
> > > I need some help installing ofbiz. After running the gradle
> > > init-gradle-wrapper command  receive the following. Your help is
> > > greatly
> > > appreciated!:
> > >
> > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> > > Build failed with an exception.
> > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build
> > > file 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> > > occurred evaluating root project 'ofbiz'.
> > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could
> > > not find method metadataSources() for arguments
> > > [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure
> > > 66
> > > $_closure68@a85644c]
> > > on
> > > org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> > > --stacktrace option to get the stack trace.
> > >
> >
>
>