max3d
max3d

Reputation: 1507

spring-integration-mail maven dependencies

I have a problem with transitive dependency - javax.mail package.

Is there a resource to see a correct sample of a set up maven project using spring-integration-mail?

My pom looked like:

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-integration</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-mail</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

Upvotes: 0

Views: 262

Answers (1)

Artem Bilan
Artem Bilan

Reputation: 121462

Well, Spring Boot doesn't pull Spring Integration modules by default, just the -core.

You definitely need to add:

<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-mail</artifactId>
</dependency>

Upvotes: 1

Related Questions