You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2007/09/04 13:55:33 UTC
DO NOT REPLY [Bug 43304] New: - Maven POM dependencies
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
Summary: Maven POM dependencies
Product: Log4j
Version: 1.2
Platform: All
URL: http://repo1.maven.org/maven2/log4j/log4j/1.2.15/log4j-
1.2.15.pom
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: Other
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: jo.vandermeeren@gmail.com
Log4j release 1.2.15 enforces some runtime dependencies (javax.jms, etc) which
should have been marked as optional in the Maven POM, but they are not.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - [PATCH] Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
psmith@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Maven POM dependencies |[PATCH] Maven POM
| |dependencies
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - [PATCH] Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
mail@dekies.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mail@dekies.de
------- Additional Comments From mail@dekies.de 2007-09-26 23:34 -------
*** Bug 43488 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - [PATCH] Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
dennisl@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dennisl@apache.org
------- Additional Comments From dennisl@apache.org 2007-11-27 14:04 -------
The javax.mail dependency should not be marked as provided. Provided means that
the dependency will always be provided by the target environment.
An example to highlight why it would be wrong to mark it as provided. Say you
have a command line application that uses log4j for logging. The user of the
application decides to add an SMTPAppender to send email if something goes
fataly wrong. Now the user needs to take action to make this work. He or she
needs to copy the javamail jar into the classpath of the application. In other
words: javax.mail is not provided by the target environment.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
psmith@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #20824|0 |1
is obsolete| |
------- Additional Comments From psmith@apache.org 2007-09-13 20:12 -------
Created an attachment (id=20825)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20825&action=view)
Newer version with oro not marked as optional (oro is test scope already)
Just realised ORO is only dependency because of test scope, so that one doesn't
need to be marked as optional.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
------- Additional Comments From psmith@apache.org 2007-09-04 21:27 -------
the problem here is that using log4j 1.2.15 in a project will immediately
require that upstream project to depend on java mail and jms etc, when in
reality, this is not the case _unless_ you need to use certain features.
Ideally the upstream projects when depending on log4j only need log4j itself.
If that project then decides to need to use, say, the SMTPAppender, that
upstream project will need to mark itself as depending on javax.mail.
I'm in favour of keeping log4j's mandatory dependencies as small as possible (it
should be zero).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
------- Additional Comments From psmith@apache.org 2007-09-13 20:10 -------
Created an attachment (id=20824)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20824&action=view)
Tweaks dependencies to add optional flag
Attached patch which changes log4j's dependencies to be marked as optional. I
borrowed this from how the ActiveMQ team have specified it.
Taken from the POM reference guide @ maven.apache.org:
"In the shortest terms, optional lets other projects know that, when you use
this project, you do not require this dependency in order to work correctly."
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
------- Additional Comments From carnold@apache.org 2007-09-04 21:22 -------
Background info: http://maven.apache.org/guides/introduction/introduction-to-optional-and-
excludes-dependencies.html
Neither optional dependencies or exclude dependencies (which could be used as a work-around with
1.2.15) are desirable. But log4j 1.2.x isn't a candidate to be split into subprojects with only non-
optional dependencies.
The log4j 1.2.14 POM (and likely proceeding ones) were not actually used to build log4j and listed no
dependencies (or effectively everything was an optional dependency).
I could see how it would be desirable to make the compile scope dependencies (javamail, jms, jmxri,
jmxtools) optional in 1.2.16. Or maybe all but javamail since it is in java.net repo and is more likely to
be used than the others which need to be manually downloaded.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - [PATCH] Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
carnold@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From carnold@apache.org 2007-09-14 15:01 -------
Committed rev 575804.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - [PATCH] Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
gaschbrenner@picturesafe.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From gaschbrenner@picturesafe.de 2007-10-29 06:35 -------
Environmental dependencies like 'javax.mail' or 'javax.serlvet-api' should be
set to scope 'provided'.
Example to explain what I mean:
When a feature uses the dependency 'javax.ejb-2.1' it usually will only be used
in an environment still providing this dependency (J2EE-Server). The scope of
such dependencies should be set to 'provided'.
I guess at least the dependencies 'javax.mail' and 'javax.jms' should get the
scope 'provided'. I do not know enough about the jmx-libs, but I guess they also
can be set to 'provided'.
The 'optional' tag may stay. When they stay, a comment would be nice listing the
optional features that are in need of it. That would help others to decide to
include or exclude this dependency.
Something like: Needed when the MailAppender is used.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - [PATCH] Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
kaj.hejer@usit.uio.no changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kaj.hejer@usit.uio.no
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - [PATCH] Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
------- Additional Comments From dennisl@apache.org 2007-11-27 14:23 -------
Created an attachment (id=21196)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21196&action=view)
This patch reformats the xml by changing whitespace
This patch reformats the xml in the pom with a consistent 2-spaces indentation.
Only whitespace is changed in this patch.
Another patch with improvements to the actual content is coming soon.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 43304] - [PATCH] Maven POM dependencies
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43304
hoju@visi.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |heabdogg@yahoo.com
------- Additional Comments From hoju@visi.com 2007-09-23 20:27 -------
*** Bug 43452 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org