You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Woonsan Ko (JIRA)" <je...@portals.apache.org> on 2010/04/08 11:56:36 UTC
[jira] Created: (JS2-1180) Reduce redundant dependencies
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
[jira] Resolved: (JS2-1180) Reduce redundant dependencies
Posted by "Woonsan Ko (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko resolved JS2-1180.
-----------------------------
Resolution: Fixed
Fixed.
Removed javax.activation:activation:jar because geronimo-javamail_1.4_provider contains implementations for JAF.
By the way, we cannot simply use the geronimo javamail pom dependency because the pom does not have those three (javamail spec, javamail provider and activation spec) in the dependency list and so it doesn't pull out those transitively.
Therefore, I left those separately defined.
> 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
[jira] Resolved: (JS2-1180) Reduce redundant dependencies
Posted by "Woonsan Ko (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko resolved JS2-1180.
-----------------------------
Resolution: Fixed
Fixed.
In addition to the description of the issue,
- jaxb-api-2.1.jar is removed because we have geronimo-jaxb_2.1_spec-1.0.jar.
- jta-1.0.1B.jar is removed because we have geronimo-jta_1.1_spec-1.1.jar
- mail-1.3.3.jar is replaced by geronimo-stax-api_1.0_spec-1.0.1.jar and geronimo-javamail_1.4_provider-1.7.jar
- stax-api-1.0-2.jar is removed because we have geronimo-stax-api_1.0_spec-1.0.1.jar
> 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
[jira] Commented: (JS2-1180) Reduce redundant dependencies
Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
[ 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:
org.apache.geronimo.javamail:geronimo-javamail_1.4:1.7:pom
That one will pull in all the needed dependencies:
org.apache.geronimo.specs:geronimo-activation_1.1_spec:1.0.2:jar
org.apache.geronimo.specs:geronimo-javamail_1.4_spec:1.6:jar
org.apache.geronimo.javamail:geronimo-javamail_1.4_provider:1.7:jar
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
[jira] Reopened: (JS2-1180) Reduce redundant dependencies
Posted by "Woonsan Ko (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko reopened JS2-1180:
-----------------------------
Oh, Ate's solution with geronimo javamail pom looks better.
> 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