Skip to content

Commit

Permalink
fix archetype jackson native image config
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Apr 25, 2024
1 parent 2e80414 commit 971158c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions archetypes/archetypes/src/main/archetype/common/docker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
</includes>
</templates>
<model>
<list key="native-image-initialize-at-build-time" if="${flavor} == 'mp'">
<value if="${media} contains 'jackson'">com.fasterxml.jackson.core</value>
</list>
<list key="poms" if="!${multi-module}">
<value>ADD pom.xml .</value>
</list>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Args=--initialize-at-build-time={{package}}
Args=--initialize-at-build-time={{package}}{{#native-image-initialize-at-build-time}},{{.}}{{/native-image-initialize-at-build-time}}
1 change: 0 additions & 1 deletion etc/scripts/test-archetypes-executable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function testApplication() {
sleep 5

RESULT=$(curl -v http://localhost:8080/simple-greet)
echo "Greet response: ${RESULT}"
kill -9 ${PID}
if [[ ! "$RESULT" =~ "Hello World" ]];
then
Expand Down
1 change: 0 additions & 1 deletion etc/scripts/test-quickstarts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function testApplication() {
PID=$!
sleep 5
RESULT=$(curl -v http://localhost:8080/greet)
echo "Greet response: ${RESULT}"
echo "Stopping process: ${1}"
kill -9 ${PID}
if [[ ! "$RESULT" =~ "Hello World" ]]; then
Expand Down

0 comments on commit 971158c

Please sign in to comment.