-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weblogic Maven Plugin version references in pom.xml is not updated on running weblogic openrewrite #14
Comments
@junior - any updates on this issue? |
Issue have been resolved on the version 0.4.0. 0.5.0 (That will also include the LATEST notation), will have all the unit tests and will be the officially version that fix all the version updates in all hierarchy of the pom.xml and griddle build. |
Verified if the WebLogic maven plugin issue mention here is fixed in the latest weblogic open-rewrite version 0.4. Please let me know if there is any specific settings or commands, that need to be configured/executed for changes to reflect. Steps followed:
mvn install:install-file
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run
After using the above steps, I did not notice, any change in the WebLogic version in the pom.xml file. |
Latest PR fixes the issue with versions, please test using the LATEST or 0.4.2 tags.
|
Latest PR has more updates for the beta for 15.1.1.
|
I have retested the issue using WebLogic open-rewrite version 0.4.2 and found that the issue still persists, when we try to migrate to WebLogic 14.1.2. But migration to WebLogic 15.1.1 works fine. Since, I don't have the permissions to reopen this issue, I am updating the details in the comment section. Steps to reproduce:
|
Weblogic Maven Plugin version references in pom.xml is not updated on running weblogic openrewrite
During migration of WebLogic maven plugin based applications from old versions of WebLogic (122140, 141100) to 141200 using
WebLogic openrewrite, the WebLogic maven plugin versions are not updated. They remain the same as it was earlier.
To reproduce the issue, follow the below steps:
Pre-requisites:
JDK17/21
Maven 3.9.8 or above
git clone https://github.com/dveselka/WebLogic.git to a directory, say /scratch/$USER/openrewrite-testing/
cd /scratch/$USER/openrewrite-testing/WebLogic/dave-basic-project/dave-basic-webapp-project/
Open pom.xml and verify the WebLogic maven Plugin version. It should be 14.1.1.0.0
Now run open-rewrite command to migrate to 141200 JDK17/21 using below commands:
For JDK17
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run
-Drewrite.recipeArtifactCoordinates=com.oracle.WebLogic.rewrite:rewrite-WebLogic:0.3.0
-Drewrite.activeRecipes=com.oracle.WebLogic.rewrite.UpgradeTo1412,org.openrewrite.java.migrate.UpgradeToJava17
For JDK21
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run
-Drewrite.recipeArtifactCoordinates=com.oracle.WebLogic.rewrite:rewrite-WebLogic:0.3.0
-Drewrite.activeRecipes=com.oracle.WebLogic.rewrite.UpgradeTo1412,org.openrewrite.java.migrate.UpgradeToJava21
Verify the changes in pom.xml. You can notice that pom.xml has got modified with changes in
JDK version, maven war plugin version etc. But the WebLogic Maven Plugin version remains the same
The expectation is that after migration, the WebLogic Maven Plugin version has to be modified accordingly.
In this case, the WebLogic Maven Plugin has to be updated to 14.1.2.0.0 from 14.1.1.0.0
The text was updated successfully, but these errors were encountered: