Skip to content

Commit

Permalink
[JBEAP-25347] Remove deprecation warning for S2I provisioning env vars
Browse files Browse the repository at this point in the history
* Remove the deprecation warning when the S2I env vars `GALLEON_PROVISION_FEATURE_PACKS` or `GALLEON_USE_LOCAL_FILE` are used
* Change the warning log to an info log as this is a valid use case to use these env vars
  to create an application image without access to the source code of the Jakarta EE application

JIRA: https://issues.redhat.com/browse/JBEAP-25347

Signed-off-by: Jeff Mesnil <[email protected]>
  • Loading branch information
jmesnil committed Aug 16, 2023
1 parent a7c095f commit d1b382f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ else
# Required to handle custom feature-pack copied to local maven repo
source "${JBOSS_CONTAINER_WILDFLY_S2I_LEGACY_GALLEON_MODULE}/s2i_galleon"
if [ -n "${GALLEON_PROVISION_FEATURE_PACKS}" ] || [ -n "${GALLEON_USE_LOCAL_FILE}" ]; then
log_warning "You have activated legacy s2i workflow by setting GALLEON_PROVISION_FEATURE_PACKS or GALLEON_USE_LOCAL_FILE env variable."
log_warning "This support is deprecated and will be removed in a future release. Provision and configure your server during s2i from your pom.xml file by using the dedicated Maven plugin."
log_info "You have activated legacy s2i workflow by setting GALLEON_PROVISION_FEATURE_PACKS or GALLEON_USE_LOCAL_FILE env variable."
# images using this module must have set these env variables.
if [ -z "${PROVISIONING_MAVEN_PLUGIN_GROUP_ID}" ] || [ -z "${PROVISIONING_MAVEN_PLUGIN_ARTIFACT_ID}" ] || [ -z "${PROVISIONING_MAVEN_PLUGIN_VERSION}" ]; then
log_error "PROVISIONING_MAVEN_PLUGIN_GROUP_ID, PROVISIONING_MAVEN_PLUGIN_ARTIFACT_ID and PROVISIONING_MAVEN_PLUGIN_VERSION env variable must be set to provision a server."
Expand Down

0 comments on commit d1b382f

Please sign in to comment.