Giter Site home page Giter Site logo

jakarta-migration-java's Introduction

jakarta-migration-java

This project aims at supporting the migration of Java applications from Java EE 8 to Jakarta EE 10;

It does so by proving a command line utility which can automate or support in performing the steps described in Migrating Complete Duke from Jakarta EE 8 to Jakarta EE 9;

Please note the first two steps described in Migrating Complete Duke from Jakarta EE 8 to Jakarta EE 9 are switched in order; this is because it's easier to change imports as first step and the update the dependencies to make the project build again;

Fix the imports

java -jar target/jakarta-migration.jar -dir <PATH_TO_ROOT_FOLDER_OF_YOUR_MAVEN_PROJECT> --java-sources

e.g.

java -jar target/jakarta-migration.jar -dir /home/user/projects/my_maven_project --java-sources

Note: after executing this command your project won't build anymore (mvn package will fail) because javax.* imports have been replaced with jakarta.* imports

Update the Jakarta EE version in pom.xml

Note: this utility doesn't replace dependencies, it just analyzes the pom.xml files in your project and highlights the dependencies which need to be replaced; it does so by printing out the dependency tree obtained with mvn dependency:tree and highlighting those dependencies with a different color

java -jar target/jakarta-migration.jar -dir <PATH_TO_ROOT_FOLDER_OF_YOUR_MAVEN_PROJECT> --dependencies

XML Schema Namespaces

java -jar target/jakarta-migration.jar -dir <PATH_TO_ROOT_FOLDER_OF_YOUR_MAVEN_PROJECT> --xml-schema-namespaces

Rename properties prefixed with javax

java -jar target/jakarta-migration.jar -dir <PATH_TO_ROOT_FOLDER_OF_YOUR_MAVEN_PROJECT> --properties

jakarta-migration-java's People

Contributors

jedla97 avatar marekkopecky avatar tommaso-borgato avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jedla97 vsalbaba

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.