Skip to content

Commit 2e4da85

Browse files
Jan Lieskovskypskopek
authored andcommitted
[CIAM-1436] Refactor the way 'eap.setup.eap.modules' module is
installing the required 'wildfly-galleon-maven-plugin' dependency Signed-off-by: Jan Lieskovsky <[email protected]>
1 parent d3bc3f9 commit 2e4da85

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

modules/eap/setup/eap/modules/configure.sh

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -914,12 +914,11 @@ if [ ! -z "$GALLEON_FP_COMMON_PKG_NAME" ]; then
914914
fi
915915
rm -rf $JBOSS_HOME/*
916916

917-
# Start of RH-SSO add-on:
918-
# -----------------------
917+
# CIAM-1436 correction
919918
# Ensure 'wildfly-galleon-maven-plugin-5.2.0.Alpha2.jar', 'wildfly-galleon-maven-plugin-5.2.0.Alpha2.pom', and
920919
# 'wildfly-provisioning-parent-5.2.0.Alpha2.pom' artifacts are installed to expected location prior launching
921-
# the following mvn command
922-
#
920+
# the build Galleon s2i feature-pack maven command below
921+
923922
declare -ar EXPECTED_WILDFLY_ARTIFACTS=(
924923
"wildfly-galleon-maven-plugin-5.2.0.Alpha2.jar"
925924
"wildfly-galleon-maven-plugin-5.2.0.Alpha2.pom"
@@ -935,22 +934,26 @@ do
935934
fi
936935
done
937936

938-
# Copy the expected Wildfly artifacts (required by the following call to mvn) from /tmp/artifacts
939-
# to their respective locations, they are expected at by the mvn tool
940-
941-
# Deal with 'wildfly-galleon-maven-plugin' artifacts
942-
mkdir -p "${TMP_GALLEON_LOCAL_MAVEN_REPO}/org/wildfly/galleon-plugins/wildfly-galleon-maven-plugin/5.2.0.Alpha2"
943-
cp "/tmp/artifacts/wildfly-galleon-maven-plugin-5.2.0.Alpha2.jar" \
944-
"/tmp/artifacts/wildfly-galleon-maven-plugin-5.2.0.Alpha2.pom" \
945-
"${TMP_GALLEON_LOCAL_MAVEN_REPO}/org/wildfly/galleon-plugins/wildfly-galleon-maven-plugin/5.2.0.Alpha2"
937+
# Install JAR & POM files of 'wildfly-galleon-maven-plugin-5.2.0.Alpha2' dependency
938+
mvn install:install-file \
939+
-Dfile="/tmp/artifacts/wildfly-galleon-maven-plugin-5.2.0.Alpha2.jar" \
940+
-Dmaven.repo.local="${TMP_GALLEON_LOCAL_MAVEN_REPO}" \
941+
-DpomFile="/tmp/artifacts/wildfly-galleon-maven-plugin-5.2.0.Alpha2.pom" \
942+
--settings "${GALLEON_MAVEN_BUILD_IMG_SETTINGS_XML}"
946943

947-
# Deal with 'wildfly-provisioning-parent' artifact
948-
mkdir -p "${TMP_GALLEON_LOCAL_MAVEN_REPO}/org/wildfly/galleon-plugins/wildfly-provisioning-parent/5.2.0.Alpha2"
949-
cp "/tmp/artifacts/wildfly-provisioning-parent-5.2.0.Alpha2.pom" \
950-
"${TMP_GALLEON_LOCAL_MAVEN_REPO}/org/wildfly/galleon-plugins/wildfly-provisioning-parent/5.2.0.Alpha2"
951-
952-
# --------------------
953-
# End of RH-SSO add-on
944+
# Install POM file of 'wildfly-provisioning-parent-5.2.0.Alpha2.pom' dependency
945+
#
946+
# Note: The '-Dfile' argument in the following command is actually ignored, due
947+
# to using the '-Dpackaging=pom' argument, so the corresponding JAR file
948+
# of 'wildfly-provisioning-parent' isn't needed.
949+
mvn install:install-file \
950+
-Dfile="/tmp/artifacts/wildfly-provisioning-parent-5.2.0.Alpha2.pom" \
951+
-Dmaven.repo.local="${TMP_GALLEON_LOCAL_MAVEN_REPO}" \
952+
-Dpackaging=pom \
953+
-DpomFile="/tmp/artifacts/wildfly-provisioning-parent-5.2.0.Alpha2.pom" \
954+
--settings "${GALLEON_MAVEN_BUILD_IMG_SETTINGS_XML}"
955+
956+
# EOF CIAM-1436 correction
954957

955958
# Build Galleon s2i feature-pack and install it in local maven repository
956959
mvn -f $GALLEON_FP_PATH/pom.xml install \

0 commit comments

Comments
 (0)