hengsin / idempiere-dev-setup Goto Github PK
View Code? Open in Web Editor NEWLinux script to setup a new idempiere development environment
Linux script to setup a new idempiere development environment
Hi! I am using your script to install the dev setup on Ubuntu 20.04.
Everything runs smoothly. When I open eclipse and try to press any button, the eclipse closes with error code 127 saying JVM terminated. Please advise.
Running "mvn verify" is part of the setup-script and it creates paths and files needed later.
Trying to run it using openjdk-1.17 causes an error as below:
daniel@daniel:/github/idempiere-dev-setup/idempiere$ mvn verify/github/idempiere-dev-setup/idempiere$ mvn -version
[ERROR] Error executing Maven.
[ERROR] java.lang.IllegalStateException: Unable to load cache item
[ERROR] Caused by: Unable to load cache item
[ERROR] Caused by: Could not initialize class com.google.inject.internal.cglib.core.$MethodWrapper
[ERROR] Caused by: Exception com.google.inject.internal.cglib.core.$CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @69a10787 [in thread "main"]
daniel@daniel:
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 17.0.8.1, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64
Default locale: sv_SE, platform encoding: UTF-8
OS name: "linux", version: "5.10.0-1008-oem", arch: "amd64", family: "unix"
Changing to Java 11 avoids the error (will give warning instead)
daniel@daniel:~/github/idempiere-dev-setup/idempiere$ mvn verify
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] Resolving target definition file:/home/daniel/github/idempiere-dev-setup/idempiere/org.idempiere.p2.targetplatform/org.idempiere.p2.targetplatform.target for environments=[linux/gtk/x86_64, win32/win32/x86_64, macosx/cocoa/x86_64], include source mode=honor, execution environment=StandardEEResolutionHints [executionEnvironment=OSGi profile 'JavaSE-11' { source level: 11, target level: 11}], remote p2 repository options=org.eclipse.tycho.p2.remote.RemoteAgent@38856d6e...
Hi!
This script works as a charm, except that it fails when any of the setups are tried to be run i eclipse. With setups I mean
install.silent.app
install.console.app
install.app
An execute call to /idempiere-dev-setup/idempiere/org.adempiere.server-feature/utils.unix/getVar.sh
from
org.compiere.install.ConfigurationData.load fails to find the file .idpass
Adding the environment variable
-DIDEMPIERE_SECURE_PROPERTIES=false
to the debug/run configuration solves this problem, but it also means that .idpass is not setup from what I understand.
https://groups.google.com/g/idempiere/c/fhug5803JQk/m/CMigpLKnAgAJ
If this problem didn't occur the setup script would work without any trouble :-) Final piece for a super handy setup.
In the file setup.sh, the URL to download Groovy (https://dl.bintray.com/groovy/maven/apache-groovy-binary-3.0.7.zip) is not publically accesible. I get a "forbidden" access error.
I was able to get the same version from the following URL: https://archive.apache.org/dist/groovy/3.0.7/distribution/apache-groovy-binary-3.0.7.zip
Setup always goes wrong when a non standard port is used.
"-p DB_PORT" must be added in lines 122, 123 and 142 to solve it
Bad postgres admin password and couldn't connect to idempiere database idempiere using the provided credential.
Please fix the db credential parameters and rerun the setup script or set up the connection properties file manually after completion of the script.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.