-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
DSN is not included in the jakarta-mail bundle. Therefore, it is possible to find pom files like this:
<dependency>
<groupId>org.eclipse.angus</groupId>
<artifactId>dsn</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.angus</groupId>
<artifactId>jakarta.mail</artifactId>
<version>1.0.0</version>
</dependency>
That is going to generate the next dependency tree:
[INFO] +- org.eclipse.angus:dsn:jar:1.0.0:compile
[INFO] | \- org.eclipse.angus:angus-mail:jar:1.0.0:compile
[INFO] | \- jakarta.mail:jakarta.mail-api:jar:2.1.0:compile
[INFO] \- org.eclipse.angus:jakarta.mail:jar:1.0.0:compile
[INFO] +- jakarta.activation:jakarta.activation-api:jar:2.1.0:compile
[INFO] \- org.eclipse.angus:angus-activation:jar:1.0.0:runtime
And it makes this error:
Error occurred during initialization of boot layer
java.lang.module.FindException: Two versions of module jakarta.mail found in target/lib (jakarta.mail-api-2.1.0.jar and jakarta.mail-1.0.0.jar)
Proposed solution:
DSN module should depend on org.eclipse.angus:angus-mail:jar:1.0.0:provided
Dependency tree will be:
INFO] +- org.eclipse.angus:dsn:jar:1.0.0:compile
[INFO] \- org.eclipse.angus:jakarta.mail:jar:1.0.0:compile
[INFO] +- jakarta.activation:jakarta.activation-api:jar:2.1.0:compile
[INFO] \- org.eclipse.angus:angus-activation:jar:1.0.0:runtime
Metadata
Metadata
Assignees
Labels
No labels