Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016

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

Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016

Sakthivel Vellingiri
Greetings Ofbiz Framework Gurus - Ofbiz 17.12.06 seems to be failing to
build in Ubuntu 18.04.5 LTS (May be in other Linux flavors too), but
successful in Windows Server 2016, I even tried deleting the .gradle folder
but no luck. Anyone encountered this, any pointers are appreciated.


*OS Version : Ubuntu 18.04.5 LTS*
*Ofbiz Version - 17.12.06*
*Java Version - openjdk version "1.8.0_282"*
Trying to build Ofbiz using the command sudo ./gradlew cleanAll build and
run into the below error
AILURE: Build failed with an exception.

* Where:
Build file
'/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
line: 105

* What went wrong:
A problem occurred evaluating root project 'ofbiz'.
> Could not find method metadataSources() for arguments
[build_scnfpn8htdompavhrlor7fcc$_run_closure3$_closure62$_closure66$_closure68@b798c6b]
on object of type
org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.

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

*BUILD FAILED*



*OS Version : Windows Server 2016*
*Ofbiz Version - 17.12.06*
*Java Version - Oracle Java version "1.8.0_271"*

*Build is successful*
Reply | Threaded
Open this post in threaded view
|

Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016

Sakthivel Vellingiri
Dug a little further and see the below reference (for metadataSources) in
build.gradle, when i commented the below, i get further along and download
other dependencies, but as expected and noted in the comment below, unable
to resolve > org.milyn:flute; it appears linux does not seem to like
metadataSources { artifact() }, Any alternative or pointers appreciated.

 maven {
            // org/milyn/flute/1.3/flute-1.3.jar
            // need artifact only because of wrong pom metadata in maven
central
            url "https://repo1.maven.org/maven2"
            metadataSources {
                artifact()
            }
        }

FAILURE: Build failed with an exception.

* Where:
Build file
'/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
line: 1161

* What went wrong:
A problem occurred evaluating root project 'ofbiz'.
> Could not resolve all dependencies for configuration ':runtime'.
   > Could not resolve org.milyn:flute:1.3.
     Required by:
         project : > project :plugins:birt >
org.eclipse.birt.runtime:viewservlets:4.5.0 >
org.eclipse.birt.runtime:org.eclipse.birt.runtime:4.4.1
      > Could not resolve org.milyn:flute:1.3.
         > inconsistent module metadata found. Descriptor: milyn:flute:1.3
Errors: bad group: expected='org.milyn' found='milyn'
      > Could not resolve org.milyn:flute:1.3.
         > inconsistent module metadata found. Descriptor: milyn:flute:1.3
Errors: bad group: expected='org.milyn' found='milyn'
      > Could not resolve org.milyn:flute:1.3.
         > Could not get resource '
https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom'.
            > Could not HEAD '
https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom'.
Received status code 401 from server: Unauthorized

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

On Tue, Mar 23, 2021 at 6:06 PM Sakthivel Vellingiri <
[hidden email]> wrote:

> Greetings Ofbiz Framework Gurus - Ofbiz 17.12.06 seems to be failing to
> build in Ubuntu 18.04.5 LTS (May be in other Linux flavors too), but
> successful in Windows Server 2016, I even tried deleting the .gradle folder
> but no luck. Anyone encountered this, any pointers are appreciated.
>
>
> *OS Version : Ubuntu 18.04.5 LTS*
> *Ofbiz Version - 17.12.06*
> *Java Version - openjdk version "1.8.0_282"*
> Trying to build Ofbiz using the command sudo ./gradlew cleanAll build and
> run into the below error
> AILURE: Build failed with an exception.
>
> * Where:
> Build file
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> line: 105
>
> * What went wrong:
> A problem occurred evaluating root project 'ofbiz'.
> > Could not find method metadataSources() for arguments
> [build_scnfpn8htdompavhrlor7fcc$_run_closure3$_closure62$_closure66$_closure68@b798c6b]
> on object of type
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
>
> *BUILD FAILED*
>
>
>
> *OS Version : Windows Server 2016*
> *Ofbiz Version - 17.12.06*
> *Java Version - Oracle Java version "1.8.0_271"*
>
> *Build is successful*
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016 : RESOLVED

Sakthivel Vellingiri
Believe i found a resolution and the root cause of the issue, the bottom
line is ./gradle/init-gradle-wrapper.sh does not work with wget [When curl
is not installed],
and throws the below error, however when i installed curl things worked as
expected.
Again below is my environment details where wget failed


*OS Version : Ubuntu 18.04.5 LTS*
*Ofbiz Version - 17.12.06*
*Java Version - openjdk version "1.8.0_282"*

*Result for sudo ./gradle/init-gradle-wrapper.sh when curl was not
installed *
*Not sure if it is related to > *
https://issues.apache.org/jira/browse/OFBIZ-12066?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel














* === Prepare operation
===/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
not found, we download it === Download gradle-wrapper.jar
===./gradle/init-gradle-wrapper.sh: 50: ./gradle/init-gradle-wrapper.sh:
[[: not foundDownload files gradle-wrapper.jar from
https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/
<https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/> failed.Please
check the logs, fix the problem and run the script again. === Control
downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
gradle/wrapper/gradle-wrapper.jar: FAILED open or readshasum:
gradle/wrapper/gradle-wrapper.properties: No such file or
directorygradle/wrapper/gradle-wrapper.properties: FAILED open or
readgradlew: OKshasum: WARNING: 2 listed files could not be read*

*Result for sudo ./gradle/init-gradle-wrapper.sh when curl was installed *
*=== Prepare operation ===*





*/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
not found, we download it === Download gradle-wrapper.jar === === Control
downloaded files ===gradle/wrapper/gradle-wrapper.jar:
OKgradle/wrapper/gradle-wrapper.properties: OKgradlew: OK*
Cheers

On Tue, Mar 23, 2021 at 6:26 PM Sakthivel Vellingiri <
[hidden email]> wrote:

> Dug a little further and see the below reference (for metadataSources) in
> build.gradle, when i commented the below, i get further along and download
> other dependencies, but as expected and noted in the comment below, unable
> to resolve > org.milyn:flute; it appears linux does not seem to like
> metadataSources { artifact() }, Any alternative or pointers appreciated.
>
>  maven {
>             // org/milyn/flute/1.3/flute-1.3.jar
>             // need artifact only because of wrong pom metadata in maven
> central
>             url "https://repo1.maven.org/maven2"
>             metadataSources {
>                 artifact()
>             }
>         }
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> line: 1161
>
> * What went wrong:
> A problem occurred evaluating root project 'ofbiz'.
> > Could not resolve all dependencies for configuration ':runtime'.
>    > Could not resolve org.milyn:flute:1.3.
>      Required by:
>          project : > project :plugins:birt >
> org.eclipse.birt.runtime:viewservlets:4.5.0 >
> org.eclipse.birt.runtime:org.eclipse.birt.runtime:4.4.1
>       > Could not resolve org.milyn:flute:1.3.
>          > inconsistent module metadata found. Descriptor: milyn:flute:1.3
> Errors: bad group: expected='org.milyn' found='milyn'
>       > Could not resolve org.milyn:flute:1.3.
>          > inconsistent module metadata found. Descriptor: milyn:flute:1.3
> Errors: bad group: expected='org.milyn' found='milyn'
>       > Could not resolve org.milyn:flute:1.3.
>          > Could not get resource '
> https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom'.
>             > Could not HEAD '
> https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom'.
> Received status code 401 from server: Unauthorized
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
>
> On Tue, Mar 23, 2021 at 6:06 PM Sakthivel Vellingiri <
> [hidden email]> wrote:
>
>> Greetings Ofbiz Framework Gurus - Ofbiz 17.12.06 seems to be failing to
>> build in Ubuntu 18.04.5 LTS (May be in other Linux flavors too), but
>> successful in Windows Server 2016, I even tried deleting the .gradle folder
>> but no luck. Anyone encountered this, any pointers are appreciated.
>>
>>
>> *OS Version : Ubuntu 18.04.5 LTS*
>> *Ofbiz Version - 17.12.06*
>> *Java Version - openjdk version "1.8.0_282"*
>> Trying to build Ofbiz using the command sudo ./gradlew cleanAll build and
>> run into the below error
>> AILURE: Build failed with an exception.
>>
>> * Where:
>> Build file
>> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
>> line: 105
>>
>> * What went wrong:
>> A problem occurred evaluating root project 'ofbiz'.
>> > Could not find method metadataSources() for arguments
>> [build_scnfpn8htdompavhrlor7fcc$_run_closure3$_closure62$_closure66$_closure68@b798c6b]
>> on object of type
>> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
>>
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or
>> --debug option to get more log output.
>>
>> *BUILD FAILED*
>>
>>
>>
>> *OS Version : Windows Server 2016*
>> *Ofbiz Version - 17.12.06*
>> *Java Version - Oracle Java version "1.8.0_271"*
>>
>> *Build is successful*
>>
>>
>>
grv
Reply | Threaded
Open this post in threaded view
|

Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016 : RESOLVED

grv
Hi Sakthivel

The ticket you're linking to also dealt with a similar issue related to
wget. Based on your logs, I see two issues but while one is apparent and
reproducible, I am not sure why the download is not happening. I think with
latest changes to the file,  gradle-wrapper.properties file no more
downloaded along with the gradle-wrapper.jar but there is a dependent
action to very checksum which now fails. That needs to be fixed.

Could you try the following and see what happens?

Enable wget debug (wget --debug) and see where wget is failing? Also,
please remove the checksum verification for "
gradle/wrapper/gradle-wrapper.properties" on line 30. Once we figure out
the other issue, I can then fix both at once.

Best,
Girish









On Thu, Mar 25, 2021 at 4:59 AM Sakthivel Vellingiri <
[hidden email]> wrote:

> Believe i found a resolution and the root cause of the issue, the bottom
> line is ./gradle/init-gradle-wrapper.sh does not work with wget [When curl
> is not installed],
> and throws the below error, however when i installed curl things worked as
> expected.
> Again below is my environment details where wget failed
>
>
> *OS Version : Ubuntu 18.04.5 LTS*
> *Ofbiz Version - 17.12.06*
> *Java Version - openjdk version "1.8.0_282"*
>
> *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was not
> installed *
> *Not sure if it is related to > *
>
> https://issues.apache.org/jira/browse/OFBIZ-12066?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * === Prepare operation
>
> ===/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> not found, we download it === Download gradle-wrapper.jar
> ===./gradle/init-gradle-wrapper.sh: 50: ./gradle/init-gradle-wrapper.sh:
> [[: not foundDownload files gradle-wrapper.jar from
> https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/
> <https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/>
> failed.Please
> check the logs, fix the problem and run the script again. === Control
> downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> gradle/wrapper/gradle-wrapper.jar: FAILED open or readshasum:
> gradle/wrapper/gradle-wrapper.properties: No such file or
> directorygradle/wrapper/gradle-wrapper.properties: FAILED open or
> readgradlew: OKshasum: WARNING: 2 listed files could not be read*
>
> *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was installed *
> *=== Prepare operation ===*
>
>
>
>
>
>
> */home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> not found, we download it === Download gradle-wrapper.jar === === Control
> downloaded files ===gradle/wrapper/gradle-wrapper.jar:
> OKgradle/wrapper/gradle-wrapper.properties: OKgradlew: OK*
> Cheers
>
> On Tue, Mar 23, 2021 at 6:26 PM Sakthivel Vellingiri <
> [hidden email]> wrote:
>
> > Dug a little further and see the below reference (for metadataSources) in
> > build.gradle, when i commented the below, i get further along and
> download
> > other dependencies, but as expected and noted in the comment below,
> unable
> > to resolve > org.milyn:flute; it appears linux does not seem to like
> > metadataSources { artifact() }, Any alternative or pointers appreciated.
> >
> >  maven {
> >             // org/milyn/flute/1.3/flute-1.3.jar
> >             // need artifact only because of wrong pom metadata in maven
> > central
> >             url "https://repo1.maven.org/maven2"
> >             metadataSources {
> >                 artifact()
> >             }
> >         }
> >
> > FAILURE: Build failed with an exception.
> >
> > * Where:
> > Build file
> >
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> > line: 1161
> >
> > * What went wrong:
> > A problem occurred evaluating root project 'ofbiz'.
> > > Could not resolve all dependencies for configuration ':runtime'.
> >    > Could not resolve org.milyn:flute:1.3.
> >      Required by:
> >          project : > project :plugins:birt >
> > org.eclipse.birt.runtime:viewservlets:4.5.0 >
> > org.eclipse.birt.runtime:org.eclipse.birt.runtime:4.4.1
> >       > Could not resolve org.milyn:flute:1.3.
> >          > inconsistent module metadata found. Descriptor:
> milyn:flute:1.3
> > Errors: bad group: expected='org.milyn' found='milyn'
> >       > Could not resolve org.milyn:flute:1.3.
> >          > inconsistent module metadata found. Descriptor:
> milyn:flute:1.3
> > Errors: bad group: expected='org.milyn' found='milyn'
> >       > Could not resolve org.milyn:flute:1.3.
> >          > Could not get resource '
> > https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> '.
> >             > Could not HEAD '
> > https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> '.
> > Received status code 401 from server: Unauthorized
> >
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> > --debug option to get more log output.
> >
> > On Tue, Mar 23, 2021 at 6:06 PM Sakthivel Vellingiri <
> > [hidden email]> wrote:
> >
> >> Greetings Ofbiz Framework Gurus - Ofbiz 17.12.06 seems to be failing to
> >> build in Ubuntu 18.04.5 LTS (May be in other Linux flavors too), but
> >> successful in Windows Server 2016, I even tried deleting the .gradle
> folder
> >> but no luck. Anyone encountered this, any pointers are appreciated.
> >>
> >>
> >> *OS Version : Ubuntu 18.04.5 LTS*
> >> *Ofbiz Version - 17.12.06*
> >> *Java Version - openjdk version "1.8.0_282"*
> >> Trying to build Ofbiz using the command sudo ./gradlew cleanAll build
> and
> >> run into the below error
> >> AILURE: Build failed with an exception.
> >>
> >> * Where:
> >> Build file
> >>
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> >> line: 105
> >>
> >> * What went wrong:
> >> A problem occurred evaluating root project 'ofbiz'.
> >> > Could not find method metadataSources() for arguments
> >>
> [build_scnfpn8htdompavhrlor7fcc$_run_closure3$_closure62$_closure66$_closure68@b798c6b
> ]
> >> on object of type
> >>
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
> >>
> >> * Try:
> >> Run with --stacktrace option to get the stack trace. Run with --info or
> >> --debug option to get more log output.
> >>
> >> *BUILD FAILED*
> >>
> >>
> >>
> >> *OS Version : Windows Server 2016*
> >> *Ofbiz Version - 17.12.06*
> >> *Java Version - Oracle Java version "1.8.0_271"*
> >>
> >> *Build is successful*
> >>
> >>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016 : RESOLVED

Michael Brohl-3
Hi Girish,

the download of the gradle-wrapper.properties file is deliberately
removed for the 17.12 release because of inconstistencies in the Gradle
plugins repository which was necessary to use because of the
JCenter/Bintray shutdown.

The file is not downloaded and the checksum matches the properties file
present in our repository.

See
https://issues.apache.org/jira/browse/OFBIZ-12192?focusedCommentId=17300432&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17300432 
and following.

Regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 25.03.21 um 06:52 schrieb Girish Vasmatkar:

> Hi Sakthivel
>
> The ticket you're linking to also dealt with a similar issue related to
> wget. Based on your logs, I see two issues but while one is apparent and
> reproducible, I am not sure why the download is not happening. I think with
> latest changes to the file,  gradle-wrapper.properties file no more
> downloaded along with the gradle-wrapper.jar but there is a dependent
> action to very checksum which now fails. That needs to be fixed.
>
> Could you try the following and see what happens?
>
> Enable wget debug (wget --debug) and see where wget is failing? Also,
> please remove the checksum verification for "
> gradle/wrapper/gradle-wrapper.properties" on line 30. Once we figure out
> the other issue, I can then fix both at once.
>
> Best,
> Girish
>
>
>
>
>
>
>
>
>
> On Thu, Mar 25, 2021 at 4:59 AM Sakthivel Vellingiri <
> [hidden email]> wrote:
>
>> Believe i found a resolution and the root cause of the issue, the bottom
>> line is ./gradle/init-gradle-wrapper.sh does not work with wget [When curl
>> is not installed],
>> and throws the below error, however when i installed curl things worked as
>> expected.
>> Again below is my environment details where wget failed
>>
>>
>> *OS Version : Ubuntu 18.04.5 LTS*
>> *Ofbiz Version - 17.12.06*
>> *Java Version - openjdk version "1.8.0_282"*
>>
>> *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was not
>> installed *
>> *Not sure if it is related to > *
>>
>> https://issues.apache.org/jira/browse/OFBIZ-12066?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> * === Prepare operation
>>
>> ===/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
>> not found, we download it === Download gradle-wrapper.jar
>> ===./gradle/init-gradle-wrapper.sh: 50: ./gradle/init-gradle-wrapper.sh:
>> [[: not foundDownload files gradle-wrapper.jar from
>> https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/
>> <https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/>
>> failed.Please
>> check the logs, fix the problem and run the script again. === Control
>> downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
>> gradle/wrapper/gradle-wrapper.jar: FAILED open or readshasum:
>> gradle/wrapper/gradle-wrapper.properties: No such file or
>> directorygradle/wrapper/gradle-wrapper.properties: FAILED open or
>> readgradlew: OKshasum: WARNING: 2 listed files could not be read*
>>
>> *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was installed *
>> *=== Prepare operation ===*
>>
>>
>>
>>
>>
>>
>> */home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
>> not found, we download it === Download gradle-wrapper.jar === === Control
>> downloaded files ===gradle/wrapper/gradle-wrapper.jar:
>> OKgradle/wrapper/gradle-wrapper.properties: OKgradlew: OK*
>> Cheers
>>
>> On Tue, Mar 23, 2021 at 6:26 PM Sakthivel Vellingiri <
>> [hidden email]> wrote:
>>
>>> Dug a little further and see the below reference (for metadataSources) in
>>> build.gradle, when i commented the below, i get further along and
>> download
>>> other dependencies, but as expected and noted in the comment below,
>> unable
>>> to resolve > org.milyn:flute; it appears linux does not seem to like
>>> metadataSources { artifact() }, Any alternative or pointers appreciated.
>>>
>>>   maven {
>>>              // org/milyn/flute/1.3/flute-1.3.jar
>>>              // need artifact only because of wrong pom metadata in maven
>>> central
>>>              url "https://repo1.maven.org/maven2"
>>>              metadataSources {
>>>                  artifact()
>>>              }
>>>          }
>>>
>>> FAILURE: Build failed with an exception.
>>>
>>> * Where:
>>> Build file
>>>
>> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
>>> line: 1161
>>>
>>> * What went wrong:
>>> A problem occurred evaluating root project 'ofbiz'.
>>>> Could not resolve all dependencies for configuration ':runtime'.
>>>     > Could not resolve org.milyn:flute:1.3.
>>>       Required by:
>>>           project : > project :plugins:birt >
>>> org.eclipse.birt.runtime:viewservlets:4.5.0 >
>>> org.eclipse.birt.runtime:org.eclipse.birt.runtime:4.4.1
>>>        > Could not resolve org.milyn:flute:1.3.
>>>           > inconsistent module metadata found. Descriptor:
>> milyn:flute:1.3
>>> Errors: bad group: expected='org.milyn' found='milyn'
>>>        > Could not resolve org.milyn:flute:1.3.
>>>           > inconsistent module metadata found. Descriptor:
>> milyn:flute:1.3
>>> Errors: bad group: expected='org.milyn' found='milyn'
>>>        > Could not resolve org.milyn:flute:1.3.
>>>           > Could not get resource '
>>> https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
>> '.
>>>              > Could not HEAD '
>>> https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
>> '.
>>> Received status code 401 from server: Unauthorized
>>>
>>> * Try:
>>> Run with --stacktrace option to get the stack trace. Run with --info or
>>> --debug option to get more log output.
>>>
>>> On Tue, Mar 23, 2021 at 6:06 PM Sakthivel Vellingiri <
>>> [hidden email]> wrote:
>>>
>>>> Greetings Ofbiz Framework Gurus - Ofbiz 17.12.06 seems to be failing to
>>>> build in Ubuntu 18.04.5 LTS (May be in other Linux flavors too), but
>>>> successful in Windows Server 2016, I even tried deleting the .gradle
>> folder
>>>> but no luck. Anyone encountered this, any pointers are appreciated.
>>>>
>>>>
>>>> *OS Version : Ubuntu 18.04.5 LTS*
>>>> *Ofbiz Version - 17.12.06*
>>>> *Java Version - openjdk version "1.8.0_282"*
>>>> Trying to build Ofbiz using the command sudo ./gradlew cleanAll build
>> and
>>>> run into the below error
>>>> AILURE: Build failed with an exception.
>>>>
>>>> * Where:
>>>> Build file
>>>>
>> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
>>>> line: 105
>>>>
>>>> * What went wrong:
>>>> A problem occurred evaluating root project 'ofbiz'.
>>>>> Could not find method metadataSources() for arguments
>> [build_scnfpn8htdompavhrlor7fcc$_run_closure3$_closure62$_closure66$_closure68@b798c6b
>> ]
>>>> on object of type
>>>>
>> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
>>>> * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with --info or
>>>> --debug option to get more log output.
>>>>
>>>> *BUILD FAILED*
>>>>
>>>>
>>>>
>>>> *OS Version : Windows Server 2016*
>>>> *Ofbiz Version - 17.12.06*
>>>> *Java Version - Oracle Java version "1.8.0_271"*
>>>>
>>>> *Build is successful*
>>>>
>>>>
>>>>
Reply | Threaded
Open this post in threaded view
|

Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016 : RESOLVED

Sakthivel Vellingiri
In reply to this post by grv
Thanks Girish for looking into this, Pls find the results and let me know
if i can help with anything else.

I'm not sure where you would like me to enable wget debug (wget --debug), i
tried to enable wget debug in the gradle/init-gradle-wrapper.sh as below
and still get the below response
      if [ "wget *-d* -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
/dev/null | grep 'HTTP/1.1 200 OK'" ]; then









*=== Prepare operation
===/home/clintu2/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
not found, we download it === Download gradle-wrapper.jar === === Control
downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
gradle/wrapper/gradle-wrapper.jar: FAILED open or
readgradle/wrapper/gradle-wrapper.properties: OKgradlew: OKshasum: WARNING:
1 listed file could not be read*

BTW, i had to change the wget line from
    *  if [[ `wget -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
/dev/null | grep 'HTTP/1.1 200 OK'` ]]; then*
to
     *if [ "wget -d -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
/dev/null | grep 'HTTP/1.1 200 OK'" ]; then*


On Thu, Mar 25, 2021 at 1:52 AM Girish Vasmatkar <
[hidden email]> wrote:

> Hi Sakthivel
>
> The ticket you're linking to also dealt with a similar issue related to
> wget. Based on your logs, I see two issues but while one is apparent and
> reproducible, I am not sure why the download is not happening. I think with
> latest changes to the file,  gradle-wrapper.properties file no more
> downloaded along with the gradle-wrapper.jar but there is a dependent
> action to very checksum which now fails. That needs to be fixed.
>
> Could you try the following and see what happens?
>
> Enable wget debug (wget --debug) and see where wget is failing? Also,
> please remove the checksum verification for "
> gradle/wrapper/gradle-wrapper.properties" on line 30. Once we figure out
> the other issue, I can then fix both at once.
>
> Best,
> Girish
>
>
>
>
>
>
>
>
>
> On Thu, Mar 25, 2021 at 4:59 AM Sakthivel Vellingiri <
> [hidden email]> wrote:
>
> > Believe i found a resolution and the root cause of the issue, the bottom
> > line is ./gradle/init-gradle-wrapper.sh does not work with wget [When
> curl
> > is not installed],
> > and throws the below error, however when i installed curl things worked
> as
> > expected.
> > Again below is my environment details where wget failed
> >
> >
> > *OS Version : Ubuntu 18.04.5 LTS*
> > *Ofbiz Version - 17.12.06*
> > *Java Version - openjdk version "1.8.0_282"*
> >
> > *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was not
> > installed *
> > *Not sure if it is related to > *
> >
> >
> https://issues.apache.org/jira/browse/OFBIZ-12066?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > * === Prepare operation
> >
> >
> ===/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> > not found, we download it === Download gradle-wrapper.jar
> > ===./gradle/init-gradle-wrapper.sh: 50: ./gradle/init-gradle-wrapper.sh:
> > [[: not foundDownload files gradle-wrapper.jar from
> > https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/
> > <https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/>
> > failed.Please
> > check the logs, fix the problem and run the script again. === Control
> > downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> > gradle/wrapper/gradle-wrapper.jar: FAILED open or readshasum:
> > gradle/wrapper/gradle-wrapper.properties: No such file or
> > directorygradle/wrapper/gradle-wrapper.properties: FAILED open or
> > readgradlew: OKshasum: WARNING: 2 listed files could not be read*
> >
> > *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was installed
> *
> > *=== Prepare operation ===*
> >
> >
> >
> >
> >
> >
> >
> */home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> > not found, we download it === Download gradle-wrapper.jar === === Control
> > downloaded files ===gradle/wrapper/gradle-wrapper.jar:
> > OKgradle/wrapper/gradle-wrapper.properties: OKgradlew: OK*
> > Cheers
> >
> > On Tue, Mar 23, 2021 at 6:26 PM Sakthivel Vellingiri <
> > [hidden email]> wrote:
> >
> > > Dug a little further and see the below reference (for metadataSources)
> in
> > > build.gradle, when i commented the below, i get further along and
> > download
> > > other dependencies, but as expected and noted in the comment below,
> > unable
> > > to resolve > org.milyn:flute; it appears linux does not seem to like
> > > metadataSources { artifact() }, Any alternative or pointers
> appreciated.
> > >
> > >  maven {
> > >             // org/milyn/flute/1.3/flute-1.3.jar
> > >             // need artifact only because of wrong pom metadata in
> maven
> > > central
> > >             url "https://repo1.maven.org/maven2"
> > >             metadataSources {
> > >                 artifact()
> > >             }
> > >         }
> > >
> > > FAILURE: Build failed with an exception.
> > >
> > > * Where:
> > > Build file
> > >
> >
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> > > line: 1161
> > >
> > > * What went wrong:
> > > A problem occurred evaluating root project 'ofbiz'.
> > > > Could not resolve all dependencies for configuration ':runtime'.
> > >    > Could not resolve org.milyn:flute:1.3.
> > >      Required by:
> > >          project : > project :plugins:birt >
> > > org.eclipse.birt.runtime:viewservlets:4.5.0 >
> > > org.eclipse.birt.runtime:org.eclipse.birt.runtime:4.4.1
> > >       > Could not resolve org.milyn:flute:1.3.
> > >          > inconsistent module metadata found. Descriptor:
> > milyn:flute:1.3
> > > Errors: bad group: expected='org.milyn' found='milyn'
> > >       > Could not resolve org.milyn:flute:1.3.
> > >          > inconsistent module metadata found. Descriptor:
> > milyn:flute:1.3
> > > Errors: bad group: expected='org.milyn' found='milyn'
> > >       > Could not resolve org.milyn:flute:1.3.
> > >          > Could not get resource '
> > >
> https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> > '.
> > >             > Could not HEAD '
> > >
> https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> > '.
> > > Received status code 401 from server: Unauthorized
> > >
> > > * Try:
> > > Run with --stacktrace option to get the stack trace. Run with --info or
> > > --debug option to get more log output.
> > >
> > > On Tue, Mar 23, 2021 at 6:06 PM Sakthivel Vellingiri <
> > > [hidden email]> wrote:
> > >
> > >> Greetings Ofbiz Framework Gurus - Ofbiz 17.12.06 seems to be failing
> to
> > >> build in Ubuntu 18.04.5 LTS (May be in other Linux flavors too), but
> > >> successful in Windows Server 2016, I even tried deleting the .gradle
> > folder
> > >> but no luck. Anyone encountered this, any pointers are appreciated.
> > >>
> > >>
> > >> *OS Version : Ubuntu 18.04.5 LTS*
> > >> *Ofbiz Version - 17.12.06*
> > >> *Java Version - openjdk version "1.8.0_282"*
> > >> Trying to build Ofbiz using the command sudo ./gradlew cleanAll build
> > and
> > >> run into the below error
> > >> AILURE: Build failed with an exception.
> > >>
> > >> * Where:
> > >> Build file
> > >>
> >
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> > >> line: 105
> > >>
> > >> * What went wrong:
> > >> A problem occurred evaluating root project 'ofbiz'.
> > >> > Could not find method metadataSources() for arguments
> > >>
> >
> [build_scnfpn8htdompavhrlor7fcc$_run_closure3$_closure62$_closure66$_closure68@b798c6b
> > ]
> > >> on object of type
> > >>
> >
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
> > >>
> > >> * Try:
> > >> Run with --stacktrace option to get the stack trace. Run with --info
> or
> > >> --debug option to get more log output.
> > >>
> > >> *BUILD FAILED*
> > >>
> > >>
> > >>
> > >> *OS Version : Windows Server 2016*
> > >> *Ofbiz Version - 17.12.06*
> > >> *Java Version - Oracle Java version "1.8.0_271"*
> > >>
> > >> *Build is successful*
> > >>
> > >>
> > >>
> >
>
grv
Reply | Threaded
Open this post in threaded view
|

Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016 : RESOLVED

grv
Please try the following and let me know -

wget --debug -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1

Since I can't recreate the issue on my machine (MacOS) I need to know
exactly what is happening. The JIRA ticket you cited, I was able to
recreate that issue but not any more so just wanted to check if it's a new
issue.
The debug should help where wget is getting broken.

Best,
Girish


On Thu, Mar 25, 2021 at 4:04 PM Sakthivel Vellingiri <
[hidden email]> wrote:

> Thanks Girish for looking into this, Pls find the results and let me know
> if i can help with anything else.
>
> I'm not sure where you would like me to enable wget debug (wget --debug), i
> tried to enable wget debug in the gradle/init-gradle-wrapper.sh as below
> and still get the below response
>       if [ "wget *-d* -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'" ]; then
>
>
>
>
>
>
>
>
>
> *=== Prepare operation
>
> ===/home/clintu2/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> not found, we download it === Download gradle-wrapper.jar === === Control
> downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> gradle/wrapper/gradle-wrapper.jar: FAILED open or
> readgradle/wrapper/gradle-wrapper.properties: OKgradlew: OKshasum: WARNING:
> 1 listed file could not be read*
>
> BTW, i had to change the wget line from
>     *  if [[ `wget -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'` ]]; then*
> to
>      *if [ "wget -d -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'" ]; then*
>
>
> On Thu, Mar 25, 2021 at 1:52 AM Girish Vasmatkar <
> [hidden email]> wrote:
>
> > Hi Sakthivel
> >
> > The ticket you're linking to also dealt with a similar issue related to
> > wget. Based on your logs, I see two issues but while one is apparent and
> > reproducible, I am not sure why the download is not happening. I think
> with
> > latest changes to the file,  gradle-wrapper.properties file no more
> > downloaded along with the gradle-wrapper.jar but there is a dependent
> > action to very checksum which now fails. That needs to be fixed.
> >
> > Could you try the following and see what happens?
> >
> > Enable wget debug (wget --debug) and see where wget is failing? Also,
> > please remove the checksum verification for "
> > gradle/wrapper/gradle-wrapper.properties" on line 30. Once we figure out
> > the other issue, I can then fix both at once.
> >
> > Best,
> > Girish
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Mar 25, 2021 at 4:59 AM Sakthivel Vellingiri <
> > [hidden email]> wrote:
> >
> > > Believe i found a resolution and the root cause of the issue, the
> bottom
> > > line is ./gradle/init-gradle-wrapper.sh does not work with wget [When
> > curl
> > > is not installed],
> > > and throws the below error, however when i installed curl things worked
> > as
> > > expected.
> > > Again below is my environment details where wget failed
> > >
> > >
> > > *OS Version : Ubuntu 18.04.5 LTS*
> > > *Ofbiz Version - 17.12.06*
> > > *Java Version - openjdk version "1.8.0_282"*
> > >
> > > *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was not
> > > installed *
> > > *Not sure if it is related to > *
> > >
> > >
> >
> https://issues.apache.org/jira/browse/OFBIZ-12066?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > * === Prepare operation
> > >
> > >
> >
> ===/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> > > not found, we download it === Download gradle-wrapper.jar
> > > ===./gradle/init-gradle-wrapper.sh: 50:
> ./gradle/init-gradle-wrapper.sh:
> > > [[: not foundDownload files gradle-wrapper.jar from
> > > https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/
> > > <https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/>
> > > failed.Please
> > > check the logs, fix the problem and run the script again. === Control
> > > downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> > > gradle/wrapper/gradle-wrapper.jar: FAILED open or readshasum:
> > > gradle/wrapper/gradle-wrapper.properties: No such file or
> > > directorygradle/wrapper/gradle-wrapper.properties: FAILED open or
> > > readgradlew: OKshasum: WARNING: 2 listed files could not be read*
> > >
> > > *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was
> installed
> > *
> > > *=== Prepare operation ===*
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> */home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> > > not found, we download it === Download gradle-wrapper.jar === ===
> Control
> > > downloaded files ===gradle/wrapper/gradle-wrapper.jar:
> > > OKgradle/wrapper/gradle-wrapper.properties: OKgradlew: OK*
> > > Cheers
> > >
> > > On Tue, Mar 23, 2021 at 6:26 PM Sakthivel Vellingiri <
> > > [hidden email]> wrote:
> > >
> > > > Dug a little further and see the below reference (for
> metadataSources)
> > in
> > > > build.gradle, when i commented the below, i get further along and
> > > download
> > > > other dependencies, but as expected and noted in the comment below,
> > > unable
> > > > to resolve > org.milyn:flute; it appears linux does not seem to like
> > > > metadataSources { artifact() }, Any alternative or pointers
> > appreciated.
> > > >
> > > >  maven {
> > > >             // org/milyn/flute/1.3/flute-1.3.jar
> > > >             // need artifact only because of wrong pom metadata in
> > maven
> > > > central
> > > >             url "https://repo1.maven.org/maven2"
> > > >             metadataSources {
> > > >                 artifact()
> > > >             }
> > > >         }
> > > >
> > > > FAILURE: Build failed with an exception.
> > > >
> > > > * Where:
> > > > Build file
> > > >
> > >
> >
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> > > > line: 1161
> > > >
> > > > * What went wrong:
> > > > A problem occurred evaluating root project 'ofbiz'.
> > > > > Could not resolve all dependencies for configuration ':runtime'.
> > > >    > Could not resolve org.milyn:flute:1.3.
> > > >      Required by:
> > > >          project : > project :plugins:birt >
> > > > org.eclipse.birt.runtime:viewservlets:4.5.0 >
> > > > org.eclipse.birt.runtime:org.eclipse.birt.runtime:4.4.1
> > > >       > Could not resolve org.milyn:flute:1.3.
> > > >          > inconsistent module metadata found. Descriptor:
> > > milyn:flute:1.3
> > > > Errors: bad group: expected='org.milyn' found='milyn'
> > > >       > Could not resolve org.milyn:flute:1.3.
> > > >          > inconsistent module metadata found. Descriptor:
> > > milyn:flute:1.3
> > > > Errors: bad group: expected='org.milyn' found='milyn'
> > > >       > Could not resolve org.milyn:flute:1.3.
> > > >          > Could not get resource '
> > > >
> > https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> > > '.
> > > >             > Could not HEAD '
> > > >
> > https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> > > '.
> > > > Received status code 401 from server: Unauthorized
> > > >
> > > > * Try:
> > > > Run with --stacktrace option to get the stack trace. Run with --info
> or
> > > > --debug option to get more log output.
> > > >
> > > > On Tue, Mar 23, 2021 at 6:06 PM Sakthivel Vellingiri <
> > > > [hidden email]> wrote:
> > > >
> > > >> Greetings Ofbiz Framework Gurus - Ofbiz 17.12.06 seems to be failing
> > to
> > > >> build in Ubuntu 18.04.5 LTS (May be in other Linux flavors too), but
> > > >> successful in Windows Server 2016, I even tried deleting the .gradle
> > > folder
> > > >> but no luck. Anyone encountered this, any pointers are appreciated.
> > > >>
> > > >>
> > > >> *OS Version : Ubuntu 18.04.5 LTS*
> > > >> *Ofbiz Version - 17.12.06*
> > > >> *Java Version - openjdk version "1.8.0_282"*
> > > >> Trying to build Ofbiz using the command sudo ./gradlew cleanAll
> build
> > > and
> > > >> run into the below error
> > > >> AILURE: Build failed with an exception.
> > > >>
> > > >> * Where:
> > > >> Build file
> > > >>
> > >
> >
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> > > >> line: 105
> > > >>
> > > >> * What went wrong:
> > > >> A problem occurred evaluating root project 'ofbiz'.
> > > >> > Could not find method metadataSources() for arguments
> > > >>
> > >
> >
> [build_scnfpn8htdompavhrlor7fcc$_run_closure3$_closure62$_closure66$_closure68@b798c6b
> > > ]
> > > >> on object of type
> > > >>
> > >
> >
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
> > > >>
> > > >> * Try:
> > > >> Run with --stacktrace option to get the stack trace. Run with --info
> > or
> > > >> --debug option to get more log output.
> > > >>
> > > >> *BUILD FAILED*
> > > >>
> > > >>
> > > >>
> > > >> *OS Version : Windows Server 2016*
> > > >> *Ofbiz Version - 17.12.06*
> > > >> *Java Version - Oracle Java version "1.8.0_271"*
> > > >>
> > > >> *Build is successful*
> > > >>
> > > >>
> > > >>
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016 : RESOLVED

Sakthivel Vellingiri
Girish - Sorry for the late reply.

I updated ./gradle/init-gradle-wrapper.sh with --debug option as below


However when i run the command, i only get the below, not getting a lot of debug info, Pls let know if you want me to rerun with another option or if i'm missing something


On Tue, Mar 30, 2021 at 1:23 AM Girish Vasmatkar <[hidden email]> wrote:
Please try the following and let me know -

wget --debug -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1

Since I can't recreate the issue on my machine (MacOS) I need to know
exactly what is happening. The JIRA ticket you cited, I was able to
recreate that issue but not any more so just wanted to check if it's a new
issue.
The debug should help where wget is getting broken.

Best,
Girish


On Thu, Mar 25, 2021 at 4:04 PM Sakthivel Vellingiri <
[hidden email]> wrote:

> Thanks Girish for looking into this, Pls find the results and let me know
> if i can help with anything else.
>
> I'm not sure where you would like me to enable wget debug (wget --debug), i
> tried to enable wget debug in the gradle/init-gradle-wrapper.sh as below
> and still get the below response
>       if [ "wget *-d* -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'" ]; then
>
>
>
>
>
>
>
>
>
> *=== Prepare operation
>
> ===/home/clintu2/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> not found, we download it === Download gradle-wrapper.jar === === Control
> downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> gradle/wrapper/gradle-wrapper.jar: FAILED open or
> readgradle/wrapper/gradle-wrapper.properties: OKgradlew: OKshasum: WARNING:
> 1 listed file could not be read*
>
> BTW, i had to change the wget line from
>     *  if [[ `wget -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'` ]]; then*
> to
>      *if [ "wget -d -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'" ]; then*
>
>
> On Thu, Mar 25, 2021 at 1:52 AM Girish Vasmatkar <
> [hidden email]> wrote:
>
> > Hi Sakthivel
> >
> > The ticket you're linking to also dealt with a similar issue related to
> > wget. Based on your logs, I see two issues but while one is apparent and
> > reproducible, I am not sure why the download is not happening. I think
> with
> > latest changes to the file,  gradle-wrapper.properties file no more
> > downloaded along with the gradle-wrapper.jar but there is a dependent
> > action to very checksum which now fails. That needs to be fixed.
> >
> > Could you try the following and see what happens?
> >
> > Enable wget debug (wget --debug) and see where wget is failing? Also,
> > please remove the checksum verification for "
> > gradle/wrapper/gradle-wrapper.properties" on line 30. Once we figure out
> > the other issue, I can then fix both at once.
> >
> > Best,
> > Girish
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Mar 25, 2021 at 4:59 AM Sakthivel Vellingiri <
> > [hidden email]> wrote:
> >
> > > Believe i found a resolution and the root cause of the issue, the
> bottom
> > > line is ./gradle/init-gradle-wrapper.sh does not work with wget [When
> > curl
> > > is not installed],
> > > and throws the below error, however when i installed curl things worked
> > as
> > > expected.
> > > Again below is my environment details where wget failed
> > >
> > >
> > > *OS Version : Ubuntu 18.04.5 LTS*
> > > *Ofbiz Version - 17.12.06*
> > > *Java Version - openjdk version "1.8.0_282"*
> > >
> > > *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was not
> > > installed *
> > > *Not sure if it is related to > *
> > >
> > >
> >
> https://issues.apache.org/jira/browse/OFBIZ-12066?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > * === Prepare operation
> > >
> > >
> >
> ===/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> > > not found, we download it === Download gradle-wrapper.jar
> > > ===./gradle/init-gradle-wrapper.sh: 50:
> ./gradle/init-gradle-wrapper.sh:
> > > [[: not foundDownload files gradle-wrapper.jar from
> > > https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/
> > > <https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/>
> > > failed.Please
> > > check the logs, fix the problem and run the script again. === Control
> > > downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> > > gradle/wrapper/gradle-wrapper.jar: FAILED open or readshasum:
> > > gradle/wrapper/gradle-wrapper.properties: No such file or
> > > directorygradle/wrapper/gradle-wrapper.properties: FAILED open or
> > > readgradlew: OKshasum: WARNING: 2 listed files could not be read*
> > >
> > > *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was
> installed
> > *
> > > *=== Prepare operation ===*
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> */home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> > > not found, we download it === Download gradle-wrapper.jar === ===
> Control
> > > downloaded files ===gradle/wrapper/gradle-wrapper.jar:
> > > OKgradle/wrapper/gradle-wrapper.properties: OKgradlew: OK*
> > > Cheers
> > >
> > > On Tue, Mar 23, 2021 at 6:26 PM Sakthivel Vellingiri <
> > > [hidden email]> wrote:
> > >
> > > > Dug a little further and see the below reference (for
> metadataSources)
> > in
> > > > build.gradle, when i commented the below, i get further along and
> > > download
> > > > other dependencies, but as expected and noted in the comment below,
> > > unable
> > > > to resolve > org.milyn:flute; it appears linux does not seem to like
> > > > metadataSources { artifact() }, Any alternative or pointers
> > appreciated.
> > > >
> > > >  maven {
> > > >             // org/milyn/flute/1.3/flute-1.3.jar
> > > >             // need artifact only because of wrong pom metadata in
> > maven
> > > > central
> > > >             url "https://repo1.maven.org/maven2"
> > > >             metadataSources {
> > > >                 artifact()
> > > >             }
> > > >         }
> > > >
> > > > FAILURE: Build failed with an exception.
> > > >
> > > > * Where:
> > > > Build file
> > > >
> > >
> >
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> > > > line: 1161
> > > >
> > > > * What went wrong:
> > > > A problem occurred evaluating root project 'ofbiz'.
> > > > > Could not resolve all dependencies for configuration ':runtime'.
> > > >    > Could not resolve org.milyn:flute:1.3.
> > > >      Required by:
> > > >          project : > project :plugins:birt >
> > > > org.eclipse.birt.runtime:viewservlets:4.5.0 >
> > > > org.eclipse.birt.runtime:org.eclipse.birt.runtime:4.4.1
> > > >       > Could not resolve org.milyn:flute:1.3.
> > > >          > inconsistent module metadata found. Descriptor:
> > > milyn:flute:1.3
> > > > Errors: bad group: expected='org.milyn' found='milyn'
> > > >       > Could not resolve org.milyn:flute:1.3.
> > > >          > inconsistent module metadata found. Descriptor:
> > > milyn:flute:1.3
> > > > Errors: bad group: expected='org.milyn' found='milyn'
> > > >       > Could not resolve org.milyn:flute:1.3.
> > > >          > Could not get resource '
> > > >
> > https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> > > '.
> > > >             > Could not HEAD '
> > > >
> > https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> > > '.
> > > > Received status code 401 from server: Unauthorized
> > > >
> > > > * Try:
> > > > Run with --stacktrace option to get the stack trace. Run with --info
> or
> > > > --debug option to get more log output.
> > > >
> > > > On Tue, Mar 23, 2021 at 6:06 PM Sakthivel Vellingiri <
> > > > [hidden email]> wrote:
> > > >
> > > >> Greetings Ofbiz Framework Gurus - Ofbiz 17.12.06 seems to be failing
> > to
> > > >> build in Ubuntu 18.04.5 LTS (May be in other Linux flavors too), but
> > > >> successful in Windows Server 2016, I even tried deleting the .gradle
> > > folder
> > > >> but no luck. Anyone encountered this, any pointers are appreciated.
> > > >>
> > > >>
> > > >> *OS Version : Ubuntu 18.04.5 LTS*
> > > >> *Ofbiz Version - 17.12.06*
> > > >> *Java Version - openjdk version "1.8.0_282"*
> > > >> Trying to build Ofbiz using the command sudo ./gradlew cleanAll
> build
> > > and
> > > >> run into the below error
> > > >> AILURE: Build failed with an exception.
> > > >>
> > > >> * Where:
> > > >> Build file
> > > >>
> > >
> >
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> > > >> line: 105
> > > >>
> > > >> * What went wrong:
> > > >> A problem occurred evaluating root project 'ofbiz'.
> > > >> > Could not find method metadataSources() for arguments
> > > >>
> > >
> >
> [build_scnfpn8htdompavhrlor7fcc$_run_closure3$_closure62$_closure66$_closure68@b798c6b
> > > ]
> > > >> on object of type
> > > >>
> > >
> >
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
> > > >>
> > > >> * Try:
> > > >> Run with --stacktrace option to get the stack trace. Run with --info
> > or
> > > >> --debug option to get more log output.
> > > >>
> > > >> *BUILD FAILED*
> > > >>
> > > >>
> > > >>
> > > >> *OS Version : Windows Server 2016*
> > > >> *Ofbiz Version - 17.12.06*
> > > >> *Java Version - Oracle Java version "1.8.0_271"*
> > > >>
> > > >> *Build is successful*
> > > >>
> > > >>
> > > >>
> > >
> >
>