I am migrating a Spring MVC app from 4.x to 6.x so I am going from Tomcat 9.1 Java 8 to Tomcat 10.1 Java 17.
I noticed that in the migration steps on the Tomcat site that there is a tool to help with the javax to Jakarta package conversions I have downloaded the migration tool from Github https://github.com/apache/tomcat-jakartaee-migration I currently have 2 versions of Java on my machine. Java 8 (Oracle) and Java 17 (Open JDK) And am trying to build it and am getting the following error in Eclipse when running maven verify. It appears to be using my Java 8 JRE to run the maven build even though I have JRE_HOME set to below JRE_HOME=C:\Program Files\OpenLogic\jdk-17.0.12.7-hotspot And my PATH has the Open JDK first in the PATH variable Path=C:\Program Files\OpenLogic\jdk-17.0.12.7-hotspot\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\Program Files\Java\jre-1.8;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C :\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\P rogram Files\Java\jre-1.8\bin;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\charlie\AppData\Local\Microsoft\WindowsApps;C:\Users\charl ie\.dotnet\tools Output from Maven verify is below Not sure what to do about it Scanning for projects... [INFO] [INFO] [1m---------------< [0;36morg.apache.tomcat:jakartaee-migration[0;1m >----------------[m [INFO] [1mBuilding Apache Tomcat Migration Tool for Jakarta EE 1.0.9-SNAPSHOT[m [INFO] from pom.xml [INFO] [1m--------------------------------[ jar ]---------------------------------[m [INFO] [1m------------------------------------------------------------------------[ m [INFO] [1;31mBUILD FAILURE[m [INFO] [1m------------------------------------------------------------------------[ m [INFO] Total time: 0.647 s [INFO] Finished at: 2024-09-03T19:27:17-04:00 [INFO] [1m------------------------------------------------------------------------[ m [ERROR] Failed to execute goal on project [36mjakartaee-migration[m: [1;31mCould not resolve dependencies for project org.apache.tomcat:jakartaee-migration:jar:1.0.9-SNAPSHOT: The following artifacts could not be resolved: com.sun:tools:jar:1.8.0: Could not find artifact com.sun:tools:jar:1.8.0 at specified path C:\Program Files\Java\jre-1.8/../lib/tools.jar[m -> [1m[Help 1][m [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch. [ERROR] Re-run Maven using the [1m-X[m switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExcepti on