Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18959

Mail Quickstart maven dependencies have wrong scope

XMLWordPrintable

      The following maven dependencies have the wrong scope:

             <dependency>
                  <groupId>jakarta.mail</groupId>
                  <artifactId>jakarta.mail-api</artifactId>
              </dependency>
              <dependency>
                  <groupId>io.github.bonigarcia</groupId>
                  <artifactId>webdrivermanager</artifactId>
                  <version>${version.webdrivermanager}</version>
              </dependency>
      

      jakarta.mail:jakarta.mail-api must use provider scope.
      io.github.bonigarcia:webdrivermanager is a test dependency.

      Without these scopes, the dependencies are leaked into the war file.

            yborgess1@redhat.com Yeray Borges Santana
            yborgess1@redhat.com Yeray Borges Santana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: