Issue #5772 Fix jndi mail class duplication

Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
Jan Bartel 2020-12-08 13:05:53 +01:00
parent 61aac5abb5
commit 1fb9e27560
6 changed files with 40 additions and 16 deletions

View File

@ -400,7 +400,7 @@
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>mailapi</artifactId>
<artifactId>jakarta.mail</artifactId>
<version>${mail-api.version}</version>
<scope>provided</scope>
</dependency>

View File

@ -16,14 +16,6 @@
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
@{argLine} ${jetty.surefire.argLine} --add-modules jakarta.mail --patch-module jakarta.mail=${settings.localRepository}/com/sun/mail/mailapi/${mail-api.version}/mailapi-${mail-api.version}.jar
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
@ -75,11 +67,5 @@
<artifactId>jakarta.mail-api</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>mailapi</artifactId>
<version>${mail-api.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -30,7 +30,7 @@
<jsp.api.version>3.0</jsp.api.version>
<annotation-api.version>2.0.0</annotation-api.version>
<transaction-api.version>2.0.0-RC1</transaction-api.version>
<mail-api.version>2.0.0-RC6</mail-api.version>
<mail-api.version>2.0.0</mail-api.version>
<inject-api.version>2.0.0-RC4</inject-api.version>
<infinispan.version>9.4.8.Final</infinispan.version>
<infinispan.protostream.version>4.3.4.Final</infinispan.protostream.version>

View File

@ -69,5 +69,6 @@
<module>test-http-client-transport</module>
<module>test-distribution</module>
<module>test-cdi</module>
<module>test-jndi</module>
</modules>
</project>

37
tests/test-jndi/pom.xml Normal file
View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.eclipse.jetty.tests</groupId>
<artifactId>tests-parent</artifactId>
<version>11.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>test-jndi</artifactId>
<packaging>jar</packaging>
<name>Test :: JNDI</name>
<properties>
<bundle-symbolic-name>${project.groupId}.jndi.tests</bundle-symbolic-name>
</properties>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jndi</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-test-helper</artifactId>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId>
<version>${mail-api.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>