This strikes me as a bit dumb and would be nice to have be more intelligent out-of-the-box:
(...)
Copying Maven artifacts from /tmp/src/spring/target to /deployments ...
Running: cp -v *.jar /deployments
'org.opendaylight.bot.spring-javadoc.jar' -> '/deployments/org.opendaylight.bot.spring-javadoc.jar'
'org.opendaylight.bot.spring-sources.jar' -> '/deployments/org.opendaylight.bot.spring-sources.jar'
'org.opendaylight.bot.spring.jar' -> '/deployments/org.opendaylight.bot.spring.jar'
Checking for fat jar archive...
... done
Build completed successfully
$ docker run --rm -p 8080:8080 opendaylight-bot
Starting the Java application using /opt/run-java/run-java.sh ...
ERROR: Neither JAVA_MAIN_CLASS nor JAVA_APP_JAR is set and 3 found in /deployments (1 expected)
This strikes me as a bit dumb and would be nice to have be more intelligent out-of-the-box: