Let's return to our latest CatalogService. As you recall, it uses JAX-RS and CDI. We have provided the dependencies manually by editing the pom.xml file:
(...) <dependencies> <!-- 1 --> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>jaxrs</artifactId> <version>${version.wildfly.swarm}</version> </dependency> <!-- 2 --> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>cdi</artifactId> <version>${version.wildfly.swarm}</version> </dependency> </dependencies>(...)
We have provided dependencies for two fractions: JAX-RS (1) and CDI (2). We can run the application and note that it is indeed working.
Let's continue our experiment now. What happens if we configure only one fraction?
(...)<dependencyManagement> ...