From 46c4dc5e47f00a80dccf8b0f4194080202715368 Mon Sep 17 00:00:00 2001 From: hongwei Date: Wed, 22 Nov 2023 11:27:41 +0100 Subject: [PATCH 1/4] bugfix/seperate the web.xml for production and develop mode --- obp-api/pom.xml | 15 +++++- obp-api/src/main/webapp/WEB-INF/web.xml | 72 ++++++++++++------------- 2 files changed, 50 insertions(+), 37 deletions(-) diff --git a/obp-api/pom.xml b/obp-api/pom.xml index 2ac5abb1ad..714d8986c2 100644 --- a/obp-api/pom.xml +++ b/obp-api/pom.xml @@ -13,7 +13,17 @@ obp-api war Open Bank Project API - + + src/main/webapp/WEB-INF/web.xml + + + + prod + + src/main/resources/web.xml + + + org.sonatype.oss.groups.public @@ -563,6 +573,9 @@ org.apache.maven.plugins maven-war-plugin 2.6 + + ${webXmlPath} + org.apache.maven.plugins diff --git a/obp-api/src/main/webapp/WEB-INF/web.xml b/obp-api/src/main/webapp/WEB-INF/web.xml index cfb85e0874..16bd7588d3 100644 --- a/obp-api/src/main/webapp/WEB-INF/web.xml +++ b/obp-api/src/main/webapp/WEB-INF/web.xml @@ -1,42 +1,42 @@ + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "web-app_2_3.dtd"> - - LiftFilter - Lift Filter - The Filter that intercepts lift calls - net.liftweb.http.LiftFilter - - - - - LiftFilter - /* - - - - - - true - true - - - - - - + + LiftFilter + Lift Filter + The Filter that intercepts lift calls + net.liftweb.http.LiftFilter + + + + + LiftFilter + /* + + + + + + + + + + + + + From beef3806632046e566eaa88a816f8f6cd39ff107 Mon Sep 17 00:00:00 2001 From: hongwei Date: Wed, 22 Nov 2023 15:01:33 +0100 Subject: [PATCH 2/4] bugfix/separate the web.xml for production and develop mode-added the missing file --- .gitignore | 1 - obp-api/src/main/resources/web.xml | 42 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 obp-api/src/main/resources/web.xml diff --git a/.gitignore b/.gitignore index eeb1c2624d..85cb4bc55d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ .project .cache target -obp-api/src/main/resources/ obp-api/src/test/resources/** !obp-api/src/test/resources/frozen_type_meta_data *.iml diff --git a/obp-api/src/main/resources/web.xml b/obp-api/src/main/resources/web.xml new file mode 100644 index 0000000000..5cc8b066d4 --- /dev/null +++ b/obp-api/src/main/resources/web.xml @@ -0,0 +1,42 @@ + + + + + + + LiftFilter + Lift Filter + The Filter that intercepts lift calls + net.liftweb.http.LiftFilter + + + + + LiftFilter + /* + + + + + + true + true + + + + + + + From 15821d58c6476c6d221cdc2bfdc4edab6cd04683 Mon Sep 17 00:00:00 2001 From: hongwei Date: Wed, 22 Nov 2023 15:01:52 +0100 Subject: [PATCH 3/4] bugfix/separate the web.xml for production and develop mode-reverted the .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 85cb4bc55d..eeb1c2624d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ .project .cache target +obp-api/src/main/resources/ obp-api/src/test/resources/** !obp-api/src/test/resources/frozen_type_meta_data *.iml From fd1ac5b9f41074a4369a1fdda8671a67c59690ed Mon Sep 17 00:00:00 2001 From: hongwei Date: Wed, 22 Nov 2023 15:52:22 +0100 Subject: [PATCH 4/4] bugfix/separate the web.xml for production and develop - fixed the build_package.yml --- .github/workflows/build_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.yml index 61c47c9603..36d2e4951e 100644 --- a/.github/workflows/build_package.yml +++ b/.github/workflows/build_package.yml @@ -72,7 +72,7 @@ jobs: echo ResetPasswordUrlEnabled=true >> obp-api/src/main/resources/props/test.default.props echo consents.allowed=true >> obp-api/src/main/resources/props/test.default.props - MAVEN_OPTS="-Xmx3G -Xss2m" mvn package + MAVEN_OPTS="-Xmx3G -Xss2m" mvn clean package -Pprod - name: Build the Docker image run: | echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io