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 <
info.integ...@gmail.com> 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 <
> info.integ...@gmail.com> 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 via email to