exclude org.eclipse.jetty.toolchain:jetty-jakarta-servlet-api#859
Conversation
…`, harden build this is a duplicate dependency of `jakarta.servlet:jakarta.servlet-api`, having duplicate classes should be avoided.
|
To further improve build integrity I also tried enabling a duplicate classes check by including the following snippet in the main pom, this however made the build fail in some ant stage with an obscure error which I didn't understand. Leaving this here for posterity if I/someone else wants to investigate this further. <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<failBuild>true</failBuild>
<ignoreDirect>false</ignoreDirect>
</configuration>
<executions>
<execution>
<id>duplicate-dependency-check</id>
<phase>prepare-package</phase>
<goals>
<goal>analyze-dep-mgt</goal>
</goals>
</execution>
</executions>
</plugin>This is the error I get: |
|
@cortlepp the patch looks fine and I am about to apply - thanks for finding that issue. However, about the ant error ... I tried it out in the main pom.xml and couldn't reproduce the error. See the line numbers below - is that correct?
|
|
Sorry about the formatting ... I may commit it to make it clearer since I don't see any errors. |
|
Line 1117 is just the plugin management, that doesn't yet apply the plugin, right? I added the plugin in line 1660. |
|
@cortlepp I like the idea though unfortunately the samples are meant to be run from the bin distro which has the expected lib dir - and I could not figure out how to tell the plugin to skip modules/samples. I am going to merge the PR - thanks again for making these excellent contributions. |
it is a duplicate dependency of
jakarta.servlet:jakarta.servlet-api, having duplicate classes should be avoided.