Wildfly Swarm 2017.12.1 禁用管理分数
Wildfly Swarm 2017.12.1 disable Management fraction
我已经从 Wildfly-Swarm 2017.11.0 升级到 2017.12.1,当我启动我的 uber jar 时,我看到 Swarm 正在启动我没有指定到我的 pom 文件(如管理)的分数。
我怎样才能删除这些分数?
这是我的启动日志:
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>
我不确定,但 microprofile
部分似乎是这里的罪魁祸首。 microprofile
分数聚合了所有实现 MicroProfile 技术的分数。此前,WildFly Swarm 实现了 MicroProfile 1.0,但从 2017.12 开始,它实现了 MicroProfile 1.2。引导日志也显示了这一点。其中一个新的 MicroProfile 分数可能取决于 management
; 运行 mvn dependency:tree
应该告诉你是哪一个。
我已经从 Wildfly-Swarm 2017.11.0 升级到 2017.12.1,当我启动我的 uber jar 时,我看到 Swarm 正在启动我没有指定到我的 pom 文件(如管理)的分数。 我怎样才能删除这些分数?
这是我的启动日志:
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>
我不确定,但 microprofile
部分似乎是这里的罪魁祸首。 microprofile
分数聚合了所有实现 MicroProfile 技术的分数。此前,WildFly Swarm 实现了 MicroProfile 1.0,但从 2017.12 开始,它实现了 MicroProfile 1.2。引导日志也显示了这一点。其中一个新的 MicroProfile 分数可能取决于 management
; 运行 mvn dependency:tree
应该告诉你是哪一个。