Skip to content

Instantly share code, notes, and snippets.

@matzew
Last active February 5, 2018 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzew/3a03f76ae518c41b6067d10f5471f319 to your computer and use it in GitHub Desktop.
Save matzew/3a03f76ae518c41b6067d10f5471f319 to your computer and use it in GitHub Desktop.

IllegalStateException: The LogManager was not properly installed

Hi,

with a vanialla project, generated from the website (just adding MicroProfile fraction), I am getting the The LogManager was not properly installed IllegalStateException, when deploying to Openshift using fmp.

Here is the entire log, from the pod - pom.xml afterwards;

I wonder why this setup is causing failure in Openshift pod.

any ideas?

Starting the Java application using /opt/run-java/run-java.sh ...
exec java -javaagent:/opt/prometheus/jmx_prometheus_javaagent.jar=9779:/opt/prometheus/prometheus-config.yml -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:+ExitOnOutOfMemoryError -cp . -jar /deployments/demo-swarm.jar
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:                  Logging - STABLE          org.wildfly.swarm:logging:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:         JAX-RS with JAXB - STABLE          org.wildfly.swarm:jaxrs-jaxb:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:       JAX-RS with JSON-P - STABLE          org.wildfly.swarm:jaxrs-jsonp:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:          Bean Validation - STABLE          org.wildfly.swarm:bean-validation:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:                  Elytron - STABLE          org.wildfly.swarm:elytron:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction: MicroProfile JWT RBAC Auth Fraction - STABLE          org.wildfly.swarm:microprofile-jwt:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction: Eclipse MicroProfile Fault Tolerance - STABLE          org.wildfly.swarm:microprofile-fault-tolerance:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:             MicroProfile - STABLE          org.wildfly.swarm:microprofile:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:        CDI Configuration - STABLE          org.wildfly.swarm:cdi-config:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:                 Undertow - STABLE          org.wildfly.swarm:undertow:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:                  Hystrix - STABLE          org.wildfly.swarm:hystrix:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:               Management - STABLE          org.wildfly.swarm:management:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:      Microprofile-Health - STABLE          org.wildfly.swarm:microprofile-health:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:             Transactions - STABLE          org.wildfly.swarm:transactions:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:                      CDI - STABLE          org.wildfly.swarm:cdi:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:                   JAX-RS - STABLE          org.wildfly.swarm:jaxrs:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction: Eclipse MicroProfile Config - STABLE          org.wildfly.swarm:microprofile-config:2018.1.0
Feb 05, 2018 9:34:42 AM org.wildfly.swarm.container.runtime.ServerBootstrapImpl logFraction
INFO: WFSWARM0013: Installed fraction:     Microprofile-Metrics - STABLE          org.wildfly.swarm:microprofile-metrics:2018.1.0
Feb 05, 2018 9:34:42 AM org.jboss.weld.bootstrap.WeldStartup <clinit>
INFO: WELD-000900: 2.4.3 (Final)
Feb 05, 2018 9:34:42 AM org.jboss.weld.util.ServiceLoader loadClass
WARNING: Could not load service class org.wildfly.swarm.cdi.config.deployment.InjectConfigViewExtension
Feb 05, 2018 9:34:42 AM org.jboss.weld.util.ServiceLoader loadClass
WARNING: Could not load service class org.wildfly.swarm.microprofile.metrics.deployment.MetricCdiInjectionExtension
Feb 05, 2018 9:34:42 AM org.jboss.weld.util.ServiceLoader loadClass
WARNING: Could not load service class org.wildfly.swarm.microprofile.health.deployment.HealthExtension
Feb 05, 2018 9:34:42 AM org.jboss.weld.util.ServiceLoader loadClass
WARNING: Could not load service class org.wildfly.swarm.microprofile.faulttolerance.deployment.HystrixExtension
Feb 05, 2018 9:34:42 AM org.jboss.weld.util.ServiceLoader loadClass
WARNING: Could not load service class org.wildfly.swarm.microprofile.jwtauth.deployment.auth.cdi.MPJWTExtension
Feb 05, 2018 9:34:42 AM org.jboss.weld.environment.deployment.discovery.DiscoveryStrategyFactory create
INFO: WELD-ENV-000020: Using jandex for bean discovery
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.WeldStartup startContainer
INFO: WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
Feb 05, 2018 9:34:43 AM org.jboss.weld.event.ExtensionObserverMethodImpl checkRequiredTypeAnnotations
INFO: WELD-000411: Observer method [BackedAnnotatedMethod] org.wildfly.swarm.container.runtime.cdi.ImplicitArchiveExtension.processAnnotatedType(@Observes ProcessAnnotatedType<T>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.faulttolerance.deployment.HystrixCommandInterceptor because of underlying class loading error: Type org.wildfly.swarm.microprofile.faulttolerance.deployment.HystrixCommandInterceptor from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.jwtauth.deployment.auth.cdi.MPJWTProducer because of underlying class loading error: Type org.wildfly.swarm.microprofile.jwtauth.deployment.auth.cdi.MPJWTProducer from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.jwtauth.deployment.auth.JWTAuthMechanismFactory because of underlying class loading error: Type org.wildfly.swarm.microprofile.jwtauth.deployment.auth.JWTAuthMechanismFactory from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.jwtauth.deployment.auth.config.JWTAuthContextInfoProvider because of underlying class loading error: Type org.wildfly.swarm.microprofile.jwtauth.deployment.auth.config.JWTAuthContextInfoProvider from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.jwtauth.deployment.auth.cdi.CustomClaimProducer because of underlying class loading error: Type org.wildfly.swarm.microprofile.jwtauth.deployment.auth.cdi.CustomClaimProducer from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.metrics.deployment.MetricsInterceptor because of underlying class loading error: Type org.wildfly.swarm.microprofile.metrics.deployment.MetricsInterceptor from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.metrics.deployment.TimedInterceptor because of underlying class loading error: Type org.wildfly.swarm.microprofile.metrics.deployment.TimedInterceptor from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.metrics.deployment.AMetricRegistryFactory because of underlying class loading error: Type org.wildfly.swarm.microprofile.metrics.deployment.AMetricRegistryFactory from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.metrics.deployment.MeteredInterceptor because of underlying class loading error: Type org.wildfly.swarm.microprofile.metrics.deployment.MeteredInterceptor from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.bootstrap.MissingDependenciesRegistry handleResourceLoadingException
INFO: WELD-000119: Not generating any bean definitions from org.wildfly.swarm.microprofile.metrics.deployment.CountedInterceptor because of underlying class loading error: Type org.wildfly.swarm.microprofile.metrics.deployment.CountedInterceptor from [Module "swarm.container" from BootModuleLoader@70bba4d1 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(swarm.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@2cb8287]] not found.  If this is unexpected, enable DEBUG logging to see the full error.
Feb 05, 2018 9:34:43 AM org.jboss.weld.interceptor.reader.InterceptorMetadataUtils isValidTargetClassLifecycleInterceptorMethod
WARN: WELD-001471: Interceptor method setupFactories defined on class org.wildfly.swarm.container.runtime.xmlconfig.StandaloneXMLParserProducer is not defined according to the specification. It should not throw java.lang.Exception, which is a checked exception.
	at org.wildfly.swarm.container.runtime.xmlconfig.StandaloneXMLParserProducer.setupFactories(StandaloneXMLParserProducer.java:0)
  StackTrace
Feb 05, 2018 9:34:43 AM org.jboss.weld.interceptor.reader.InterceptorMetadataUtils isValidTargetClassLifecycleInterceptorMethod
WARN: WELD-001471: Interceptor method postConstruct defined on class org.wildfly.swarm.container.runtime.wildfly.ShrinkWrapFileSystem is not defined according to the specification. It should not throw java.io.IOException, which is a checked exception.
	at org.wildfly.swarm.container.runtime.wildfly.ShrinkWrapFileSystem.postConstruct(ShrinkWrapFileSystem.java:0)
  StackTrace
Feb 05, 2018 9:34:43 AM org.jboss.weld.environment.se.WeldContainer fireContainerInitializedEvent
INFO: WELD-ENV-002003: Weld SE container internal initialized
java.lang.ExceptionInInitializerError
	at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:316)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:329)
	at org.apache.commons.configuration.SystemConfiguration.<clinit>(SystemConfiguration.java:35)
	at com.netflix.config.ConfigurationManager.createDefaultConfigInstance(ConfigurationManager.java:146)
	at com.netflix.config.ConfigurationManager.getConfigInstance(ConfigurationManager.java:161)
	at com.netflix.config.ConfigurationManager.getConfigInstance(ConfigurationManager.java:176)
	at com.netflix.config.ConfigurationBasedDeploymentContext.<init>(ConfigurationBasedDeploymentContext.java:108)
	at com.netflix.config.ConfigurationManager.<clinit>(ConfigurationManager.java:104)
	at org.wildfly.swarm.netflix.archaius.runtime.ArchaiusCustomizer.customize(ArchaiusCustomizer.java:45)
	at org.wildfly.swarm.netflix.archaius.runtime.ArchaiusCustomizer$Proxy$_$$_WeldClientProxy.customize(Unknown Source)
	at org.wildfly.swarm.container.runtime.RuntimeServer.start(RuntimeServer.java:167)
	at org.wildfly.swarm.container.runtime.RuntimeServer$Proxy$_$$_WeldClientProxy.start(Unknown Source)
	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$bootstrap$1(ServerBootstrapImpl.java:159)
	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:43)
	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:113)
	at org.wildfly.swarm.Swarm.start(Swarm.java:398)
	at org.wildfly.swarm.Swarm.main(Swarm.java:742)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
	at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
	at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
	at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
	at org.apache.commons.logging.JBossLogFactory.<init>(JBossLogFactory.java:48)
	at org.apache.commons.logging.LogFactory$Holder.<clinit>(LogFactory.java:42)
	... 24 more
java.lang.ExceptionInInitializerError
	at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:316)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:329)
	at org.apache.commons.configuration.SystemConfiguration.<clinit>(SystemConfiguration.java:35)
	at com.netflix.config.ConfigurationManager.createDefaultConfigInstance(ConfigurationManager.java:146)
	at com.netflix.config.ConfigurationManager.getConfigInstance(ConfigurationManager.java:161)
	at com.netflix.config.ConfigurationManager.getConfigInstance(ConfigurationManager.java:176)
	at com.netflix.config.ConfigurationBasedDeploymentContext.<init>(ConfigurationBasedDeploymentContext.java:108)
	at com.netflix.config.ConfigurationManager.<clinit>(ConfigurationManager.java:104)
	at org.wildfly.swarm.netflix.archaius.runtime.ArchaiusCustomizer.customize(ArchaiusCustomizer.java:45)
	at org.wildfly.swarm.netflix.archaius.runtime.ArchaiusCustomizer$Proxy$_$$_WeldClientProxy.customize(Unknown Source)
	at org.wildfly.swarm.container.runtime.RuntimeServer.start(RuntimeServer.java:167)
	at org.wildfly.swarm.container.runtime.RuntimeServer$Proxy$_$$_WeldClientProxy.start(Unknown Source)
	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$bootstrap$1(ServerBootstrapImpl.java:159)
	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:43)
	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:113)
	at org.wildfly.swarm.Swarm.start(Swarm.java:398)
	at org.wildfly.swarm.Swarm.main(Swarm.java:742)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
	at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
	at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
	at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
	at org.apache.commons.logging.JBossLogFactory.<init>(JBossLogFactory.java:48)
	at org.apache.commons.logging.LogFactory$Holder.<clinit>(LogFactory.java:42)
	... 24 more

The pomxml file:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example</groupId>
  <artifactId>mp-demo</artifactId>
  <name>WildFly Swarm Example</name>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>war</packaging>

  <properties>
    <version.wildfly.swarm>2018.1.0</version.wildfly.swarm>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <failOnMissingWebXml>false</failOnMissingWebXml>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.wildfly.swarm</groupId>
        <artifactId>bom-all</artifactId>
        <version>${version.wildfly.swarm}</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <finalName>demo</finalName>
    <plugins>
      <plugin>
        <groupId>org.wildfly.swarm</groupId>
        <artifactId>wildfly-swarm-plugin</artifactId>
        <version>${version.wildfly.swarm}</version>
        
        <executions>
          <execution>
            <goals>
              <goal>package</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
<plugin>
  <groupId>io.fabric8</groupId>
  <artifactId>fabric8-maven-plugin</artifactId>
  <version>3.5.34</version>
  <executions>
    <execution>
      <goals>
          <goal>resource</goal>
          <goal>build</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <resources>
      <labels>
        <service>
          <expose>true</expose>
        </service>
      </labels>
    </resources>
  </configuration>
</plugin>
      
    </plugins>
  </build>

  <dependencies>
    <!-- Java EE 7 dependency -->
    <dependency>
      <groupId>javax</groupId>
      <artifactId>javaee-api</artifactId>
      <version>7.0</version>
      <scope>provided</scope>
    </dependency>
    <!-- WildFly Swarm Fractions -->
    <dependency>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>microprofile</artifactId>
    </dependency>
  </dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment