You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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.
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: