Posted by
Sakthivel Vellingiri on
URL: http://ofbiz.116.s1.nabble.com/Build-failure-Ofbiz-17-12-06-in-Ubuntu-18-04-5-LTS-Build-success-Ofbiz-17-12-06-Windows-Server-2016-tp4767141p4767142.html
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*
>
>
>