Open udalrich opened 6 years ago
All the tiles are doing are side-loading and creating an inheritance structure - so your properties will be overwritten and you would still only have one docker image.
Have you tried just defining the same plugin but with a different execution (with its own id) and have the plugin merge them? Thats what it should do. You should end up with one plugin in your effective pom with 2 executions.
I would like to define a tile that starts a docker container for use during integration tests. I can do that easily enough by creating a tile that uses the appropriate plugin.
In some cases, I need to start multiple docker containers (e.g., message broker and a db). In that case, it appears that I need to copy the tile for the first container and make the slight changes to start the second container. It would eliminate duplication if I could do something like
start-docker/tile.xml
start-db/tile.xml
start-msg-broker/tile.xml
component/pom.xml
Alternatively, if there was a way to override the location of
tile.xml
, then I could import the tile instart-db/pom.xml
and do the filtering before the tile plugin ran. I suppose that I could create thetile.xml
in that manner, but that is likely to be confusing, as I would have a build product outside oftarget
.