Skip to content

Commit

Permalink
enable the wildfly plugin in resteasy-spring-example-customized #87 (#88
Browse files Browse the repository at this point in the history
)
  • Loading branch information
liweinan committed Apr 22, 2022
1 parent e935bdd commit 793b612
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resteasy-spring-basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>2.1.0.Final</version>
<version>${version.wildfly-maven-plugin}</version>
<configuration>
<artifactId>wildfly-preview-dist</artifactId>
<version>26.0.1.Final</version>
<version>${version.wildfly}</version>
</configuration>
</plugin>
</plugins>
Expand Down
21 changes: 21 additions & 0 deletions resteasy-spring-customized/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,24 @@ $ curl localhost:8080/rest/servlet
```

And it will print out the internal `Dispatcher` instance fetched from `SpringBeanProcessorServletAware`.


## Deploying The Project To WildFly

This example has embedded `wildfly-maven-plugin` embedded, so it can be deployed to a managed WildFly server by running the Maven command. Run the following command to build the example, download WildFly server, start the server and finish deployment automatically:

```bash
$ mvn wildfly:run
```

After the embedded WildFly server is downloaded and run, access the example service with following `curl` command:

```bash
$ curl http://localhost:8080/resteasy-spring-example-customized/rest/servlet
```

And it will print the result like:

```bash
org.jboss.resteasy.core.SynchronousDispatcher@bc35ba
```
9 changes: 9 additions & 0 deletions resteasy-spring-customized/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.wildfly-maven-plugin}</version>
<configuration>
<artifactId>wildfly-preview-dist</artifactId>
<version>${version.wildfly}</version>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 793b612

Please sign in to comment.