Coder Social home page Coder Social logo

idempiere-dev-setup's Introduction

Create custom iDempiere installer with third party plugins

  • Check out https://github.com/hengsin/hengsin
  • Check out iDempiere source
  • At iDempiere source folder, run mvn verify
  • Copy third party plugin jars to hengsin/plugins folder
  • The shell script will set IDEMPIERE_SOURCE environment variable for you if your local setup follow the following structure:
<parent folder>
|
|-- idempiere
|-- hengsin
  • If the above doesn't suite your local setup, create idempiere_source.properties file with IDEMPIERE_SOURCE= line (for e.g IDEMPIERE_SOURCE=/home/hengsin/workspace/idempiere).
  • Alternatively, you can set IDEMPIERE_SOURCE environment variable to idempiere source folder (for e.g export IDEMPIERE_SOURCE=/home/hengsin/workspace/idempiere).
  • At source folder for https://github.com/hengsin/hengsin, set IDEMPIERE_SOURCE environment variable pointing to iDempiere source folder (for e.g, export IDEMPIERE_SOURCE=/home/hengsin/workspace/idempiere)
  • If you wants to add custom AD_SysConfig setting to your iDempiere installer, build hengsin/com.github.hengsin.sysconfig.init (see README.md there for build instruction) and copy hengsin/com.github.hengsin.sysconfig.init/target/com.github.hengsin.sysconfig.init-10.0.0-SNAPSHOT.jar to hengsin/plugins folder. Edit hengsin/sysconfig.properties to add custom AD_SysConfig settings.
  • Run publish.sh script. The script will create a p2 repository at the hengsin/target/repository folder
  • Run install.sh script. The script will install plugin jars from hengsin/target/repository folder to hengsin/target/products/org.adempiere.server.product (use --offline for faster build)
  • Archive hengsin/target/products/org.adempiere.server.product for redistribution.

idempiere-dev-setup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

idempiere-dev-setup's Issues

Eclipse crashes with error code 127 jvm terminated

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.

org.adempiere.server.feature Error

Hello
I am still going through your code step by step in order to understand it.

After downloading eclipse, the code runs "mvn verify" to build the platform. However, as per today (16th Jan 2020), the following error (attached) is returned.

Could you help.
error

mvn verify won't run on openjdk-1.17

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
[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:
/github/idempiere-dev-setup/idempiere$ mvn -version
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...

Database Set-Up

Hey there again,
The database details provided in the set up are somehow in correct.
db_test
error

System not runing to the end

Hello,
I am installing the system as per your guidelines. However it seems to be stuck at this point (as per attached pic).

Kindly help
github

.idpass not setup? Variables file does not exist

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.

Update db setup script add auto complete support

  • remove the use of = (i.e --db-port 54321 instead of --db-porrt=54321) and add auto complete support for scripts.
  • update postgresql docker container image setup to version 15.3
  • update setup-db.sh for JAVA_OPTIONS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.