[Building Sakai] problems with kernel 1.1.8 build ?

David Haines dlhaines at umich.edu
Thu Jul 15 10:37:12 PDT 2010


Cool, it does make sense now.  I expect the question will come up again since this isn't standard Maven behavior.  I found the Sakai Hudson runs the kernel build with "mvn clean install -Dmaven.test.skip=false" so I'm going with that.

 I'm back in business.

- Dave

David Haines
CTools Developer
Digital Media Commons
University of Michigan 
dlhaines at umich.edu




On Jul 15, 2010, at 11:38 AM, David Horwitz wrote:

> Hi David,
> 
> On 07/15/2010 05:30 PM, David Haines wrote:
>> 
>> I've checked out the kernel 1.1.8 tag (https://source.sakaiproject.org/svn/kernel/tags/kernel-1.1.8) and have noticed a couple of problems building it.  Excerpts from the build log are at the end of this email.
>> 
>> First, org.sakaiproject.util.FormattedTextTest throws a stack trace from a null pointer exception but the build continues.  It's disconcerting to see a stack trace in the build and still have the build succeed.  (See excerpt 1.)
>> 
>>   
> This is side effect of how the kernel unit tests are constructed - short of refactoring all the core services there is no way round this. 
> 
>> Second, building with "mvn clean install test" outright fails. (See excerpt 2.)  Oddly the sequence "mvn clean install" then "mvn test" works.
>> 
>>   
> 
> Seeing as the clean goal runs the unit tests you don't need to specify test as a separate target. Not sure why it fails though ....
> 
> 
> D
> 
>> Does this make sense to anybody?
>> 
>> Thanks - Dave
>> 
>> 
>> Excerpt 1
>> 
>> INFO] ------------------------------------------------------------------------
>> [INFO] Building Sakai Kernel Util
>> [INFO]    task-segment: [clean, install, test]
>> [INFO] ------------------------------------------------------------------------
>> :
>> testStrengthMediocre(org.sakaiproject.util.PasswordCheckTest)  Time elapsed: 0 sec
>> testStrengthStrong(org.sakaiproject.util.PasswordCheckTest)  Time elapsed: 0 sec
>> testStrengthVeryStrong(org.sakaiproject.util.PasswordCheckTest)  Time elapsed: 0.001 sec
>> testStrengthNone(org.sakaiproject.util.PasswordCheckTest)  Time elapsed: 0 sec
>> Running org.sakaiproject.util.FormattedTextTest
>> Jul 15, 2010 11:06:48 AM org.sakaiproject.component.impl.MockCompMgr <init>
>> WARNING: LOADING CM in testing mode... this should only ever happen during unit tests
>> Jul 15, 2010 11:06:48 AM org.sakaiproject.component.impl.MockCompMgr <init>
>> INFO: Created an empty CM mock (no services loaded)
>> Jul 15, 2010 11:06:48 AM org.sakaiproject.util.FormattedText init
>> SEVERE: Error collecting formattedtext.properties (using defaults)
>> java.lang.NullPointerException
>> 	at org.sakaiproject.util.FormattedText.init(FormattedText.java:94)
>> 	at org.sakaiproject.util.FormattedText.processHtml(FormattedText.java:677)
>> 	at org.sakaiproject.util.FormattedText.processFormattedText(FormattedText.java:303)
>> 	at org.sakaiproject.util.FormattedText.processFormattedText(FormattedText.java:232)
>> 	at org.sakaiproject.util.FormattedTextTest.testLegacyProcessFormattedText(FormattedTextTest.java:86)
>> 	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 junit.framework.TestCase.runTest(TestCase.java:154)
>> 	at junit.framework.TestCase.runBare(TestCase.java:127)
>> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
>> :
>> :
>> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.154 sec
>> 
>> 
>> Excerpt 2
>> 
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Building Sakai Kernel Component Package
>> [INFO]    task-segment: [clean, install, test]
>> [INFO] ------------------------------------------------------------------------
>> [INFO] [clean:clean {execution: default-clean}]
>> [INFO] Deleting directory /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/target
>> [INFO] [resources:resources {execution: default-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] skip non existing resourceDirectory /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/src/main/java
>> [INFO] skip non existing resourceDirectory /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/src/main/bundle
>> [INFO] skip non existing resourceDirectory /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/src/main/resources
>> [INFO] skip non existing resourceDirectory /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/src/main/sql
>> [INFO] skip non existing resourceDirectory /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/src/main/config
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] No sources to compile
>> [INFO] [resources:testResources {execution: default-testResources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] skip non existing resourceDirectory /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/src/test/java
>> [INFO] skip non existing resourceDirectory /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/src/test/resources
>> [INFO] [compiler:testCompile {execution: default-testCompile}]
>> [INFO] No sources to compile
>> [INFO] [surefire:test {execution: default-test}]
>> [INFO] No tests to run.
>> [INFO] [sakai:component {execution: default-component}]
>> [INFO] Exploding webapp...
>> [INFO] Assembling webapp sakai-kernel-component in /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/target/sakai-kernel-component-1.1.8
>> [INFO] Copy webapp webResources to /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-component/target/sakai-kernel-component-1.1.8
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Could not explode webapp...
>> 
>> Embedded error: /Volumes/Working/tmp/kernel/kernel-1.1.8/kernel-impl/target/classes (No such file or directory)
>> 
>> David Haines
>> CTools Developer
>> Digital Media Commons
>> University of Michigan 
>> dlhaines at umich.edu
>> 
>> 
>> 
>>   
>> 
>> _______________________________________________
>> 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/20100715/ad84e265/attachment.html 


More information about the sakai-dev mailing list