Reading-eScience-Centre / edal-java

Environmental Data Abstraction Layer libraries
Other
39 stars 30 forks source link

Is it possible to build edal-java using Docker? #71

Closed rsignell-usgs closed 7 years ago

rsignell-usgs commented 7 years ago

Is it possible to build edal-java without installing Maven, perhaps by using the Docker container for maven?

rsignell-usgs commented 7 years ago

Okay, actually I figured this out with help from @daf:

git clone https://github.com/Reading-eScience-Centre/edal-java.git
cd edal-java
git checkout develop
docker run -it --rm --name my-maven-project -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven maven:3.3.9-jdk-8 mvn clean install
ls ./wms/target/edal-wms-*.jar

which produces (when I ran it, anyway):

./wms/target/edal-wms-1.2.4-SNAPSHOT.jar