A spring boot app that runs perfectly fine on the command line with:
mvn clean package spring-boot:run
I then add the spring boot plugin option to create an executable jar:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
<mainClass>for.bar.Application</mainClass>
<layout>JAR</layout>
</configuration>
</plugin>
and my app launches on the command line. However, DataNucleus crashes with an error:
Could not find API definition for name "JDO". Perhaps you dont have the requisite datanucleus-api-XXX jar in the CLASSPATH?
The problem is partially explained here: Datanucleus, JDO and executable jar - how to do it?
So I sort of understand what's happening. DataNuclues is an OSGi library. It it even possible to make a spring boot exec jar with DataNuclues as the persistence layer? I'm about to try to switch to spring data which is going to be a nightmare.