- Hands-On Cloud Development with WildFly
- Tomasz Adamski
- 169字
- 2021-08-27 19:38:45
Adapting to WildFly Swarm
Now we all know how to create Java EE applications, described previously, but we are here to learn how to use WildFly Swarm, so let's adopt the preceding application for it. Let's roll up our sleeves as we have some hard work to do now.
We have to modify pom.xml:
(...)
<dependencies>
<!-- 1 -->
<dependency>
<groupId>org.wildfly.swarm</groupId>
<artifactId>jaxrs</artifactId>
<version>${version.wildfly.swarm}</version>
</dependency>
</dependencies>
<build>
<plugins>
(...)
<!-- 2 -->
<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>
</plugins>
</build>
</project>
We had to add dependencies to Swarm's JAX-RS module (1). Such modules are called fractions and you will learn more about them in the next chapter. Please note that we don't need to configure the JAX-RS API dependency directly as it will be provided as the JAX-RS fraction dependency.
Later, we had to configure WildFly Swarm's Maven plugin, which is responsible for building Swarm microservices (2). You will also learn more about it in the next chapter.
That's it. Congratulations! You have just created your first WildFly Swarm application.
- 網(wǎng)絡(luò)云百問(wèn)百答
- Web安全防護(hù)指南:基礎(chǔ)篇
- 解析QUIC/HTTP3:未來(lái)互聯(lián)網(wǎng)的基石
- CorelDRAW X6 中文版圖形設(shè)計(jì)實(shí)戰(zhàn)從入門到精通
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(shì)(2021—2023)
- Drush User’s Guide
- NB-IoT物聯(lián)網(wǎng)技術(shù)解析與案例詳解
- 物聯(lián)網(wǎng)長(zhǎng)距離無(wú)線通信技術(shù)應(yīng)用與開(kāi)發(fā)
- 網(wǎng)管員必讀:網(wǎng)絡(luò)管理(第2版)
- 2小時(shí)讀懂物聯(lián)網(wǎng)
- 6G:面向2030年的移動(dòng)通信
- Scala Design Patterns.
- Learning Node.js Development
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見(jiàn)(2016)
- Getting Started with tmux