<dependencies> with optoinal set to true is your friend at docker module. Then use maven-dependency-plugin to copy the war files into staging directory where docker file can consume it
-D On Wed, Aug 10, 2016 at 8:44 AM, KARR, DAVID <[email protected]> wrote: > I have a simple multi-project build (just two projects), and the webapps > produced from the two projects will be deployed to Tomcat (TomEE, > actually). The TomEE instance requires some non-standard configuration for > these apps to work. > > I'm considering having a third subproject using the docker-maven-plugin to > produce an image with Tomcat and the two webapps deployed to it. > > The idea seems straightforward, but there are some details I want to clean > up. > > For instance, the Dockerfile is going to have to copy the two webapps into > the Tomcat distro. At a minimum, I have to figure out how to get the two > war files built from the peer projects into the Docker context so I can > build the image. I'd also like to ensure that when/if I change the > artifact versions of the subprojects, I only need minimal changes to get > the new version into the image. > > What do I need to make this happen? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
