Closed t1 closed 2 years ago
I've tried to use the wildfly-maven-plugin to build a Docker image (see blog), but it doesn't copy the modules. If I'm doing it wrong, there should be some documentation ;-)
My pom.xml contains:
pom.xml
<plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>4.0.0.Beta3</version> <configuration> <feature-packs> <feature-pack> <location>org.wildfly:wildfly-galleon-pack:26.1.1.Final</location> </feature-pack> <feature-pack> <location>org.wildfly.extras.graphql:wildfly-microprofile-graphql-feature-pack:1.7.0.Final</location> </feature-pack> </feature-packs> <layers> <layer>microprofile-platform</layer> </layers> </configuration> <executions> <execution> <goals> <goal>package</goal> </goals> </execution> </executions> </plugin>
I've never done this, but shouldn't you add the microprofile-graphql layer in the <layers> element?
microprofile-graphql
<layers>
That worked, thanks! Actually, I still got a data fetching exception without any logs, so I also added core-server, but then it works like a charm.
core-server
Note to myself: the layers are documented here
I've tried to use the wildfly-maven-plugin to build a Docker image (see blog), but it doesn't copy the modules. If I'm doing it wrong, there should be some documentation ;-)
My
pom.xml
contains: