Spring App Advisor - Unable to upgrade library using app advisor when mapping exists for library
search cancel

Spring App Advisor - Unable to upgrade library using app advisor when mapping exists for library

book

Article ID: 427173

calendar_today

Updated On:

Products

VMware Tanzu Spring Essentials

Issue/Introduction

An issue exists where App Advisor is unable to upgrade library when mapping exists for library.

For example: 

pom.xml has <version>5.16.8</version>

Mapping file has a mapping entry for 5.16.x

Running  advisor upgrade-plan apply results in wanring

Warning * Application Advisor might produce a partial upgrade and will incrementally cover all the required changes to upgrade all the Spring projects. If you have questions or are experimenting issues upgrading your applications, please request our help or support in https://support.broadcom.com

Bumping up the library minor version in the pom would remove this warning and no longer stop you from upgrading, but this may not be desirable. 

Issue is the tool considers the mapping file of a given library prior to upgrading the library. Upgrade is blocked due to the mapping existing for itself with a lower version.

Resolution

There are two potential workarounds to this issue - 

  1. Bump pom major or minor version prior to running advisor.

  2. Remove the mapping of the library you are trying to upgrade prior to running advisor.

There is a defect logged with Tanzu Spring engineering to address this issue with Advisor.