Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 04109183F0 for ; Mon, 7 Dec 2015 21:20:11 +0000 (UTC) Received: (qmail 57530 invoked by uid 500); 7 Dec 2015 21:20:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 57428 invoked by uid 500); 7 Dec 2015 21:20:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 57359 invoked by uid 99); 7 Dec 2015 21:20:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 21:20:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 18DCC2C1F60 for ; Mon, 7 Dec 2015 21:20:11 +0000 (UTC) Date: Mon, 7 Dec 2015 21:20:11 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (EMAIL-152) Make javamail implementation dependency optional MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EMAIL-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Neidhart resolved EMAIL-152. ----------------------------------- Resolution: Won't Fix > Make javamail implementation dependency optional > ------------------------------------------------ > > Key: EMAIL-152 > URL: https://issues.apache.org/jira/browse/EMAIL-152 > Project: Commons Email > Issue Type: Improvement > Affects Versions: 1.3 > Reporter: Thomas Neidhart > > Currently, commons-email has a transitive dependency to the reference implementation of javamail. > This can lead to problems when trying to use another implementation (e.g. geronimo or gnu) at runtime, as one has to exclude dependencies. > So I propose to change the dependencies as follows: > * use an optional compile time dependency to the latest javamail api: > {noformat} > > javax.mail > javax.mail-api > 1.4.5 > compile > true > > {noformat} > * add an optional runtime dependency to the javamail reference impl > {noformat} > > com.sun.mail > javax.mail > 1.5.2 > runtime > true > > {noformat} > that way both dependencies are not transitive, thus project including commons-email have the opportunity to chose their javamail implementation. > geronimo implementation: > {noformat} > > org.apache.geronimo.javamail > geronimo-javamail_1.4_mail > 1.8.3 > > {noformat} > or the oracle reference impl, as outlined above. -- This message was sent by Atlassian JIRA (v6.3.4#6332)