A little break down example for a Stackoverflow question related to maven-shade-plugin
and openEJB
##Base Setting:
demo-services
: Hibernate Service and one Entity, EJB Moduledemo-main
: Module for Shading containing theDemoMain
class to start theEJBContainer
. Shading happens here.
##Problem (solved):
-
Starting
DemoMain
via IDE (IntelliJ 2016.2.5) does work. -
Starting the shaded jar via
java -jar demo-shade-1.0-SNAPSHOT.jar
and theconf/openejb.xml
in the same directory, work too.