On 12.01.2023 08:56, Maxim Solodovnik wrote:
Hello Julian,
I've just modified jackrabbit-webdav/pom.xml as follows:
diff --git a/jackrabbit-webdav/pom.xml b/jackrabbit-webdav/pom.xml
index b7941a4ee..795858aaf 100644
--- a/jackrabbit-webdav/pom.xml
+++ b/jackrabbit-webdav/pom.xml
@@ -51,6 +51,37 @@
<argLine>${test.opts}</argLine>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.4.1</version>
+ <executions>
+ <execution>
+ <id>shade-jakarta</id>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <shadedArtifactAttached>true</shadedArtifactAttached>
+ <shadedClassifierName>jakarta</shadedClassifierName>
+ <createDependencyReducedPom>false</createDependencyReducedPom>
+ <createSourcesJar>true</createSourcesJar>
+ <artifactSet>
+ <includes>
+ <include>org.apache.jackrabbit.webdav</include>
+ </includes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>javax.servlet</pattern>
+ <shadedPattern>jakarta.servlet</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
As a result I got valid jackrabbit-webdav-2.21.15-SNAPSHOT-jakarta.jar
and was able to use it as follows:
<dependency>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-webdav</artifactId>
<version>2.21.15-SNAPSHOT</version>
<classifier>jakarta</classifier>
</dependency>
at least compilation was successful :)))
Shall I create a PR?
Let's start with a ticket (->
https://issues.apache.org/jira/browse/JCR-4892) and discuss a bit more...
Like:
- what components will be affected
- what branch do we need this in (backport to 2.20...?)
- how does it affect documentation (API docs, site)
- is there an opportunity to combine this with other potentially
breaking changes (HTTP components 5.x)
Best regards, Julian