@@ -914,12 +914,11 @@ if [ ! -z "$GALLEON_FP_COMMON_PKG_NAME" ]; then
914
914
fi
915
915
rm -rf $JBOSS_HOME /*
916
916
917
- # Start of RH-SSO add-on:
918
- # -----------------------
917
+ # CIAM-1436 correction
919
918
# Ensure 'wildfly-galleon-maven-plugin-5.2.0.Alpha2.jar', 'wildfly-galleon-maven-plugin-5.2.0.Alpha2.pom', and
920
919
# '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
+
923
922
declare -ar EXPECTED_WILDFLY_ARTIFACTS=(
924
923
" wildfly-galleon-maven-plugin-5.2.0.Alpha2.jar"
925
924
" wildfly-galleon-maven-plugin-5.2.0.Alpha2.pom"
935
934
fi
936
935
done
937
936
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} "
946
943
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
954
957
955
958
# Build Galleon s2i feature-pack and install it in local maven repository
956
959
mvn -f $GALLEON_FP_PATH /pom.xml install \
0 commit comments