Wildfly Swarm 2017.12.1禁用管理分数

时间:2017-12-19 07:22:54

标签: maven wildfly-swarm

我已经从Wildfly-Swarm 2017.11.0升级到2017.12.1,当我启动我的超级jar时,我看到Swarm正在启动我没有指定给我的pom文件的分数,比如Management。 我该如何删除这些分数?

这是我的启动日志:

Installed fraction:                  Logging - STABLE          org.wildfly.swarm:logging:2017.12.1
Installed fraction:                      EJB - STABLE          org.wildfly.swarm:ejb:2017.12.1
Installed fraction:                 Logstash - STABLE          org.wildfly.swarm:logstash:2017.12.1
Installed fraction:         JAX-RS with JAXB - STABLE          org.wildfly.swarm:jaxrs-jaxb:2017.12.1
Installed fraction:                      JCA - STABLE          org.wildfly.swarm:jca:2017.12.1
Installed fraction:          JPA EclipseLink - STABLE          org.wildfly.swarm:jpa-eclipselink:2017.12.1
Installed fraction:          Bean Validation - STABLE          org.wildfly.swarm:bean-validation:2017.12.1
Installed fraction:        CDI Configuration - STABLE          org.wildfly.swarm:cdi-config:2017.12.1
Installed fraction:       JAX-RS with JSON-P - STABLE          org.wildfly.swarm:jaxrs-jsonp:2017.12.1
Installed fraction:                      CDI - STABLE          org.wildfly.swarm:cdi:2017.12.1
Installed fraction:             MicroProfile - STABLE          org.wildfly.swarm:microprofile:2017.12.1
Installed fraction:              Datasources - STABLE          org.wildfly.swarm:datasources:2017.12.1
Installed fraction:                  Elytron - STABLE          org.wildfly.swarm:elytron:2017.12.1
Installed fraction:                   JAX-RS - STABLE          org.wildfly.swarm:jaxrs:2017.12.1
Installed fraction:                      JPA - STABLE          org.wildfly.swarm:jpa:2017.12.1
Installed fraction:               Management - STABLE          org.wildfly.swarm:management:2017.12.1
Installed fraction:             Transactions - STABLE          org.wildfly.swarm:transactions:2017.12.1
Installed fraction: Eclipse MicroProfile Config - STABLE          org.wildfly.swarm:microprofile-config:2017.12.1
Installed fraction: MicroProfile JWT RBAC Auth Fraction - STABLE          org.wildfly.swarm:microprofile-jwt:2017.12.1
Installed fraction:                  Swagger - UNSTABLE        org.wildfly.swarm:swagger:2017.12.1
Installed fraction:                  Hystrix - STABLE          org.wildfly.swarm:hystrix:2017.12.1
Installed fraction: Eclipse MicroProfile Fault Tolerance - STABLE          org.wildfly.swarm:microprofile-fault-tolerance:2017.12.1
Installed fraction:      Microprofile-Health - STABLE          org.wildfly.swarm:microprofile-health:2017.12.1
Installed fraction:                 Undertow - STABLE          org.wildfly.swarm:undertow:2017.12.1
Installed fraction:     Microprofile-Metrics - STABLE          org.wildfly.swarm:microprofile-metrics:2017.12.1

我的pom文件中的依赖项:

  <!-- Java EE 7 dependency -->
    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-api</artifactId>
        <version>7.0</version>
        <scope>provided</scope>
    </dependency>
    <!-- DB2 dependency -->
    <dependency>
        <groupId>com.ibm.db2.jcc</groupId>
        <artifactId>db2jcc4</artifactId>
        <version>10.1</version>
    </dependency>
    <!-- WildFly Swarm Fractions -->
    <dependency>
        <groupId>org.wildfly.swarm</groupId>
        <artifactId>datasources</artifactId>
    </dependency>
    <dependency>
        <groupId>org.wildfly.swarm</groupId>
        <artifactId>swagger</artifactId>
    </dependency>
    <dependency>
        <groupId>org.wildfly.swarm</groupId>
        <artifactId>microprofile</artifactId>
    </dependency>
    <dependency>
        <groupId>org.wildfly.swarm</groupId>
        <artifactId>logstash</artifactId>
    </dependency>
    <dependency>
        <groupId>org.wildfly.swarm</groupId>
        <artifactId>ejb</artifactId>
    </dependency>
    <dependency>
        <groupId>org.wildfly.swarm</groupId>
        <artifactId>jpa-eclipselink</artifactId>
    </dependency>
    <!-- OTHER DEPENDENCIES -->
    <dependency>
        <groupId>com.kumuluz.ee.rest</groupId>
        <artifactId>kumuluzee-rest-core</artifactId>
        <version>${kumuluzee-rest-core.version}</version>
    </dependency>
    <dependency>
        <groupId>org.modelmapper</groupId>
        <artifactId>modelmapper</artifactId>
        <version>${modelmapper.version}</version>
    </dependency>

1 个答案:

答案 0 :(得分:1)

我不确定,但microprofile分数似乎是罪魁祸首。 microprofile分数聚合了实现MicroProfile技术的所有分数。以前,WildFly Swarm实现了MicroProfile 1.0,但自2017.12以来,它实现了MicroProfile 1.2。启动日志也显示了这一点。其中一个新的MicroProfile分数可能取决于management;运行mvn dependency:tree应该告诉你哪一个。