Closed vaisakhkannan closed 6 days ago
1) I double-checked the commands using each Dev Mode Start Action and Dev Mode Start in Container Action, testing with different Maven settings (using Maven Wrapper, Bundled Maven, Custom Maven Home).
2 When I compared the implementation of the old deprecated method (resolveMavenHomeDirectory), I noticed it uses a staticOrBundled
method. What this method actually does is..
Using the same approach, I modified the code to return the default 'BundledMaven3.INSTANCE'
If we use null
as the default return value, we will get an IllegalArgumentException
if the casting fails in the future.
I encountered this issue during testing because I commented out the relevant code below.
(what this meant is, I commented out maven Wrapper, so there is no code checking maven wrapper and maven Wrapper is not an instance of StaticResolvedMavenHomeType
, so we should return the default 'BundledMaven3.INSTANCE', that's a similar behaviour from the old deprecated method)
The Liberty-Tools-Intellij build step uses two deprecated maven methods that are marked for removal. We need to fix this issue so that we won’t receive warnings in the future.
The error in the logs is