Build from master not working in Maven Docker
Closed this issue · 2 comments
axelabs commented
I'm trying to build the current source in the official maven docker container. The built jar fails to run. What am I missings?
$ docker run -itv ~/src:/tmp -w /tmp/exhibitor maven:3.3.9-jdk-8-onbuild mvn install
...
[INFO] Reactor Summary:
[INFO]
[INFO] exhibitor .......................................... SUCCESS [ 21.490 s]
[INFO] exhibitor-core ..................................... SUCCESS [01:40 min]
[INFO] exhibitor-standalone ............................... SUCCESS [ 7.067 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
...
$ docker run -itv ~/src:/tmp maven:3.3.9-jdk-8-onbuild java -jar /tmp/exhibitor/exhibitor-core/target/exhibitor-core-1.1.0-SNAPSHOT.jar
no main manifest attribute, in /tmp/exhibitor/exhibitor-core/target/exhibitor-core-1.1.0-SNAPSHOT.jar
Cinderhaze commented
If you are building this repository, it only creates the 'standalone' jar, which isn't a 'fat jar' with all of the correct information in it. You need to follow the instructions at https://github.com/soabase/exhibitor/wiki/Building-Exhibitor, which includes pulling down a different pom.xml file, and running 'mvn package'
xiaochuanyu commented
Closing this issue for now. You can re-open if there are any additional problems.