Provide compliance with both javax.servlet and jakarta.servlet#379
Provide compliance with both javax.servlet and jakarta.servlet#379lounagen wants to merge 1 commit intoSAML-Toolkits:masterfrom
Conversation
This compliance is for built jar only, and do not modify the original java sources. You will need to continue using javax to debug with sources.
|
Hi @lounagen, thanks for providing this solution. Although, I have changed the source files to support the jakarta namespace but now I am not able to generate class files because dependencies are not getting resolved. |
Hi @manish-manghwani , On my side, I've just extracted the few methods I needed and called the core module directly, without relying any more on the wrapper lib. You can ask the project owners (I'm not) for more info on your specific usecase. |
Temporary workaround for #349, tested on tomcat 10.
Instead of forking java-saml-toolkit classes or using Eclipse transformer on client side, this PR allows to create 2 jar:
<classifier>jakarta<classifier>To build :
mvn clean install(mvn clean install -Pjavax)mvn clean install -PjakartaI'm not sure how the artifacts are deployed within the release process, i think it should look like this? :
mvn release:prepare mvn release:perform mvn clean install deploy -Prelease mvn clean install deploy -Prelease,jakarta (may be without release profile here to avoid overwriting sources/javadoc jars?) mvn release:cleanThe compliance is achieved within pom.xml metadata and do not modify the original java sources, so you will need to continue using javax to debug with sources.
The javax vs jakarta dependencies are moved under dedicated maven profiles.
Let me know if there is a more efficient way to publish a jakarta compliant jar on central repo.