This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-examples.git
The following commit(s) were added to refs/heads/master by this push:
new b51b77f Adds example app how to use Struts 2 with Quarkus
b51b77f is described below
commit b51b77f6a622ecaed3d1f0694d7cb277e5293876
Author: Lukasz Lenart
AuthorDate: Sun Nov 15 16:06:16 2020 +0100
Adds example app how to use Struts 2 with Quarkus
---
pom.xml| 8 +-
quarkus/README.md | 15
quarkus/pom.xml| 98 ++
.../struts2/examples/quarkus/IndexAction.java | 33
.../main/resources/META-INF/resources/hello.ftl| 1 +
quarkus/src/main/resources/META-INF/web.xml| 28 +++
quarkus/src/main/resources/application.properties | 2 +
quarkus/src/main/resources/log4j2.xml | 16
quarkus/src/main/resources/struts.xml | 19 +
9 files changed, 216 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 435a1a7..500b563 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,5 @@
-
-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/xsd/maven-4.0.0.xsd";>
+
+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/xsd/maven-4.0.0.xsd";>
4.0.0
org.apache.struts
@@ -96,6 +95,7 @@
message-store
portlet
preparable-interface
+quarkus
restful2actionmapper
rest-angular
shiro-basic
@@ -106,11 +106,11 @@
themes-override
type-conversion
unit-testing
+unknown-handler
using-tags
validation-messages
wildcard-method-selection
wildcard-regex
-unknown-handler
diff --git a/quarkus/README.md b/quarkus/README.md
new file mode 100644
index 000..ced849f
--- /dev/null
+++ b/quarkus/README.md
@@ -0,0 +1,15 @@
+# Quarkus example
+
+This is a simple example how to use Struts 2 with
[Quarkus](https://quarkus.io/). Quarkus doesn't support JSPs
+but yoy can use Freemarker instead or writing directly into
HttpServletResponse.
+
+In `application.properties` has been defined `quarkus.oidc.enabled=false` to
disable redirecting to `/auth` even
+if the "oidc" extension has not been loaded. You will also notice a warning
when starting Quarkus - just ignore it.
+
+## Running
+
+Use the below command to start the example Quarkus application (from within
the project's root folder):
+
+```
+mvn clean compile quarkus:dev
+```
diff --git a/quarkus/pom.xml b/quarkus/pom.xml
new file mode 100644
index 000..4f1c0b0
--- /dev/null
+++ b/quarkus/pom.xml
@@ -0,0 +1,98 @@
+
+http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd";
+ xmlns="http://maven.apache.org/POM/4.0.0";
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+4.0.0
+
+org.apache.struts
+struts-examples
+1.1.0
+
+org.apache.struts.examples
+quarkus
+Struts 2 Quarkus
+
+
+UTF-8
+1.9.2.Final
+
+
+
+
+
+io.quarkus
+quarkus-universe-bom
+${quarkus-plugin.version}
+pom
+import
+
+
+
+
+
+
+io.quarkus
+quarkus-undertow
+
+
+
+javax.servlet
+servlet-api
+2.5
+provided
+
+
+
+
+
+quarkus:dev
+
+
+io.quarkus
+quarkus-maven-plugin
+${quarkus-plugin.version}
+
+
+
+build
+
+
+
+
+
+
+
+
+
+native
+
+
+
+maven-failsafe-plugin
+3.0.0-M4
+
+
+
+integration-test
+verify
+
+
+
+
+
${project.build.directory}/${project.build.finalName}-runner
+
+
org.jboss.logmanager.LogManager
+