Search code examples
javamaven-2jakarta-ee

How to add javax.* dependencies in Maven?


I am getting tired of manually installing javax jar files in Maven and would like to know what is the best solution to include a dependency on javax.cache, javax.transaction, or other JSRs that are not easy to find in Maven repositories.


Solution

  • Have you seen https://people.apache.org/~ltheussl/maven-stage-site/guides/mini/guide-coping-with-sun-jars.html ?

    This link suggests groupID and artifactID's to use, as well as a java.net repository.

    It looks to me like almost all of these exist in the central Maven repository under this naming scheme.