[Building Sakai] log4j 1.2.15

Anthony Whyte arwhyte at umich.edu
Mon Jan 25 13:30:11 PST 2010


Matt Jones found an interesting blog post on our recent issue with  
log4j 1.2.15.  We may want to consider adding <exclusions> to the  
log4j dependency in order to exclude the jms, jmxtools and jmxri  
dependencies.

http://unitstep.net/blog/2009/05/18/resolving-log4j-1215-dependency-problems-in-maven-using-exclusions/
<dependency>
   <groupId>log4j</groupId>
   <artifactId>log4j</artifactId>
   <version>1.2.15</version>
   <scope>provided</scope>
   <exclusions>
     <exclusion>
       <groupId>javax.jms</groupId>
       <artifactId>jms</artifactId>
     </exclusion>
     <exclusion>
       <groupId>com.sun.jdmk</groupId>
       <artifactId>jmxtools</artifactId>
     </exclusion>
     <exclusion>
       <groupId>com.sun.jmx</groupId>
       <artifactId>jmxri</artifactId>
     </exclusion>
   </exclusions>
</dependency>


Begin forwarded message:

> From: Anthony Whyte <arwhyte at umich.edu>
> Date: January 25, 2010 4:10:59 PM GMT-05:00
> To: "sakai-dev at collab.sakaiproject.org Developers" <sakai-dev at collab.sakaiproject.org 
> >
> Subject: Re: [Building Sakai] kernel/trunk broken?
>
> Transitive dependency fun.  I just popped the jms, jmxtools and  
> jmxri jars into our repo.  kernel-1.2.0-SNAPSHOT (trunk) now builds  
> for me.
>
> Lance ran mvn dependency:tree for me while I was uploading jars.   
> The guilty party: log4j 1.2.15.
>
> Anth
>
> [INFO] +- log4j:log4j:jar:1.2.15:provided
> [INFO] |  +- javax.jms:jms:jar:1.1:provided
> [INFO] |  +- com.sun.jdmk:jmxtools:jar:1.2.1:provided
> [INFO] |  \- com.sun.jmx:jmxri:jar:1.2.1:provided
> 4:07log4j 1.2.15
>
>
>
> On Jan 25, 2010, at 2:45 PM, Speelmon, Lance Day wrote:
>
>> $ svn info
>> URL: https://source.sakaiproject.org/svn/kernel/trunk
>> Revision: 72473
>>
>> $ mvn -e clean install -Dmaven.test.skip=true
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Building Sakai Core Kernel Implementation
>> [INFO]    task-segment: [clean, install]
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean {execution: default-clean}]
>> [INFO] Deleting directory /Develop/kernel-trunk/kernel-impl/target
>> [INFO] [resources:resources {execution: default-resources}]
>> [WARNING] Using platform encoding (MacRoman actually) to copy  
>> filtered resources, i.e. build is platform dependent!
>> [INFO] Copying 4 resources
>> [INFO] skip non existing resourceDirectory /Develop/kernel-trunk/ 
>> kernel-impl/src/main/bundle
>> [INFO] skip non existing resourceDirectory /Develop/kernel-trunk/ 
>> kernel-impl/src/main/resources
>> [INFO] Copying 111 resources
>> [INFO] skip non existing resourceDirectory /Develop/kernel-trunk/ 
>> kernel-impl/src/main/config
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] Compiling 204 source files to /Develop/kernel-trunk/kernel- 
>> impl/target/classes
>> [INFO]  
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>> error: error reading /Users/lance/.m2/repository/javax/jms/jms/1.1/ 
>> jms-1.1.jar; cannot read zip file
>>
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.BuildFailureException: Compilation failure
>> error: error reading /Users/lance/.m2/repository/javax/jms/jms/1.1/ 
>> jms-1.1.jar; cannot read zip file
>>
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .lifecycle 
>> .DefaultLifecycleExecutor 
>> .executeGoals(DefaultLifecycleExecutor.java:715)
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .lifecycle 
>> .DefaultLifecycleExecutor 
>> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .lifecycle 
>> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: 
>> 535)
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .lifecycle 
>> .DefaultLifecycleExecutor 
>> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .lifecycle 
>> .DefaultLifecycleExecutor 
>> .executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .lifecycle 
>> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> 	at  
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java: 
>> 60)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at  
>> sun 
>> .reflect 
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 	at  
>> sun 
>> .reflect 
>> .DelegatingMethodAccessorImpl 
>> .invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: 
>> 315)
>> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> 	at  
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.CompilationFailureException:  
>> Compilation failure
>> error: error reading /Users/lance/.m2/repository/javax/jms/jms/1.1/ 
>> jms-1.1.jar; cannot read zip file
>>
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
>> 	at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java: 
>> 114)
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 
>> 490)
>> 	at  
>> org 
>> .apache 
>> .maven 
>> .lifecycle 
>> .DefaultLifecycleExecutor 
>> .executeGoals(DefaultLifecycleExecutor.java:694)
>> 	... 17 more
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Total time: 12 seconds
>> [INFO] Finished at: Mon Jan 25 14:44:25 EST 2010
>> [INFO] Final Memory: 46M/121M
>> [INFO]  
>> ------------------------------------------------------------------------
>> /Develop/kernel-trunk$
>>
>>
>>
>>
>>
>> Lance Speelmon
>> Scholarly Technologist
>>
>> On Jan 25, 2010, at 2:27 PM, Anthony Whyte wrote:
>>
>>> Nightly2 trunk noon build is alive.  Are you referring to your  
>>> local build as broken?
>>>
>>> http://nightly2.sakaiproject.org:8083/portal
>>>
>>> See thread here:
>>>
>>> http://forums.sun.com/thread.jspa?threadID=5270279
>>>
>>> The Jboss repo has it:
>>>
>>> http://repository.jboss.com/maven2/javax/jms/jms/1.1/
>>>
>>> We can put the jar in the repo if you need it.
>>>
>>> Anth
>>>
>>>
>>> http://java.sun.com/products/jms/
>>>
>>>
>>>
>>>
>>> On Jan 25, 2010, at 2:08 PM, Speelmon, Lance Day wrote:
>>>
>>>> As David Horwitz suggested to me, /Users/me/.m2/repository/javax/ 
>>>> jms/jms/1.1/jms-1.1.jar is indeed not a valid jar file.  Does  
>>>> anyone have a fix?  Thanks, L
>>>>
>>>> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
>>>> <html><head>
>>>> <title>301 Moved Permanently</title>
>>>> </head><body>
>>>> <h1>Moved Permanently</h1>
>>>> <p>The document has moved <a href="http://download.java.net/maven/1/javax.jms/jars/jms-1.1.jar 
>>>> ">here</a>.</p>
>>>> <hr>
>>>> <address>Apache Server at maven-repository.dev.java.net Port 443</ 
>>>> address>
>>>> </body></html>
>>>>
>>>>
>>>> [INFO]  
>>>> ------------------------------------------------------------------------
>>>> [INFO] Building Sakai Core Kernel Implementation
>>>> [INFO]    task-segment: [clean, install]
>>>> [INFO]  
>>>> ------------------------------------------------------------------------
>>>> [INFO] [clean:clean {execution: default-clean}]
>>>> [INFO] Deleting directory /Develop/kernel-trunk/kernel-impl/target
>>>> [INFO] [resources:resources {execution: default-resources}]
>>>> [WARNING] Using platform encoding (MacRoman actually) to copy  
>>>> filtered resources, i.e. build is platform dependent!
>>>> [INFO] Copying 4 resources
>>>> [INFO] skip non existing resourceDirectory /Develop/kernel-trunk/ 
>>>> kernel-impl/src/main/bundle
>>>> [INFO] skip non existing resourceDirectory /Develop/kernel-trunk/ 
>>>> kernel-impl/src/main/resources
>>>> [INFO] Copying 111 resources
>>>> [INFO] skip non existing resourceDirectory /Develop/kernel-trunk/ 
>>>> kernel-impl/src/main/config
>>>> [INFO] [compiler:compile {execution: default-compile}]
>>>> [INFO] Compiling 204 source files to /Develop/kernel-trunk/kernel- 
>>>> impl/target/classes
>>>> [INFO]  
>>>> ------------------------------------------------------------------------
>>>> [ERROR] BUILD FAILURE
>>>> [INFO]  
>>>> ------------------------------------------------------------------------
>>>> [INFO] Compilation failure
>>>> error: error reading /Users/me/.m2/repository/javax/jms/jms/1.1/ 
>>>> jms-1.1.jar; cannot read zip file
>>>>
>>>> [INFO]  
>>>> ------------------------------------------------------------------------
>>>> [INFO] Trace
>>>> org.apache.maven.BuildFailureException: Compilation failure
>>>> error: error reading /Users/me/.m2/repository/javax/jms/jms/1.1/ 
>>>> jms-1.1.jar; cannot read zip file
>>>>
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .lifecycle 
>>>> .DefaultLifecycleExecutor 
>>>> .executeGoals(DefaultLifecycleExecutor.java:715)
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .lifecycle 
>>>> .DefaultLifecycleExecutor 
>>>> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .lifecycle 
>>>> .DefaultLifecycleExecutor 
>>>> .executeGoal(DefaultLifecycleExecutor.java:535)
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .lifecycle 
>>>> .DefaultLifecycleExecutor 
>>>> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .lifecycle 
>>>> .DefaultLifecycleExecutor 
>>>> .executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .lifecycle 
>>>> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java: 
>>>> 180)
>>>> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>> 	at  
>>>> org 
>>>> .apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java: 
>>>> 60)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> 	at  
>>>> sun 
>>>> .reflect 
>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> 	at  
>>>> sun 
>>>> .reflect 
>>>> .DelegatingMethodAccessorImpl 
>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>>>> 	at  
>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>> 	at  
>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 
>>>> 430)
>>>> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>> Caused by: org.apache.maven.plugin.CompilationFailureException:  
>>>> Compilation failure
>>>> error: error reading /Users/me/.m2/repository/javax/jms/jms/11/ 
>>>> jms-1.1.jar; cannot read zip file
>>>>
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
>>>> 	at  
>>>> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .plugin 
>>>> .DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>> 	at  
>>>> org 
>>>> .apache 
>>>> .maven 
>>>> .lifecycle 
>>>> .DefaultLifecycleExecutor 
>>>> .executeGoals(DefaultLifecycleExecutor.java:694)
>>>> 	... 17 more
>>>> [INFO]  
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: 11 seconds
>>>> [INFO] Finished at: Mon Jan 25 14:04:59 EST 2010
>>>> [INFO] Final Memory: 46M/121M
>>>> [INFO]  
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> Lance Speelmon
>>>> Scholarly Technologist
>>>>
>>>> _______________________________________________
>>>> sakai-dev mailing list
>>>> sakai-dev at collab.sakaiproject.org
>>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>>
>>>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org 
>>>>  with a subject of "unsubscribe"
>>>
>>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org 
>  with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100125/70171919/attachment.html 


More information about the sakai-dev mailing list