portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ate Douma (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-1180) Reduce redundant dependencies
Date Thu, 08 Apr 2010 11:36:36 GMT

    [ https://issues.apache.org/jira/browse/JS2-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854907#action_12854907

Ate Douma commented on JS2-1180:

Hi Woonsan,

I looked briefly at the activation/javamail dependencies and how these supposedly *can* completelyreplaced
with geronimo specs and implementations.
I think the implementation classes within activation-1.1.jar won't be needed/used then (or
at all even).
Documentation about replacing javamail with geronimo is very limited, but the following blog
post seems helpful, especially in the context of cxf: http://sdomsta.blogspot.com/2009/03/java-mail-smtp-transport-provider.html

If I understand it correctly, the activation and javamail jars can be excluded if we just
add an dependency on the Geronimo JavaMail Bundle pom and explicitly exclude activation/javamail
from whatever dependency pulls them in:


That one will pull in all the needed dependencies:


Testing if it really works without the activation/javamail jars should be easy by configuring
an smtp server and trying to send an email through the self registration portlet.

> Reduce redundant dependencies
> -----------------------------
>                 Key: JS2-1180
>                 URL: https://issues.apache.org/jira/browse/JS2-1180
>             Project: Jetspeed 2
>          Issue Type: Task
>          Components: Dependencies
>    Affects Versions: 2.2.1
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>            Priority: Minor
>             Fix For: 2.2.1
> Some dependencies are duplicate, so we need to reduce the redundancies.
> For example, I found the followings need to be refined:
> (1) In components/jetspeed-registry,
>      javax.xml.bind:jaxb-api:jar:2.1:compile could be 
>      replaced by org.apache.geronimo.specs:geronimo-jaxb_2.1_spec:1.0
>      Accordingly, the transitive dependencies could be replaced as well: 
>      stax-api-1.0-2.jar by geronimo-stax-api_1.0_spec-1.0.1.jar
>     (By the way, we still need to keep both activation-1.1.jar geronimo-activation_1.1_spec-1.0.2.jar
>      because activation.jar contains implementations as well as interfaces.)
> (2) In components/jetspeed-cm and in other components:
>     javax.transaction:jta:jar:1.0.1B:runtime could be
>     replaced by org.apache.geronimo.specs:geronimo-jta_1.1_spec.
> (3) In components/jetspeed-portal
>     mail-1.3.3.jar could be replaced by geronimo-javamail_1.4_spec-1.6.jar
>     (geronimo-javamail_1.4_spec-1.6.jar seems to have been used by CXF already.)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message