[jsword-devel] Trying to build against maven built jar files

DM Smith dmsmith at crosswire.org
Thu Feb 17 12:57:22 MST 2011


On 02/17/2011 02:30 PM, Chris Burrell wrote:
> Mind if i move the properties files as well?
> Chris
I thought they were. Which ones have not been moved?
-- DM

>
>
> On 17 February 2011 02:16, DM Smith <dmsmith at crosswire.org 
> <mailto:dmsmith at crosswire.org>> wrote:
>
>     Feel free to move it.
>
>     Cent from my fone so theer mite be tipos. ;)
>
>     On Feb 16, 2011, at 2:50 PM, Chris Burrell <chris at burrell.me.uk
>     <mailto:chris at burrell.me.uk>> wrote:
>
>>     Could be because it's currently under src/main/java as opposed to
>>     src/main/resources...
>>
>>     Indeed it is that, since the compiled version of the JAR has that
>>     missing. I could add a workaround to the Maven build (although it
>>     breaks the fundamental maven convention of it being under
>>     src/main/resources). That is one option. My preferred
>>     option would be to move it to the resources folder - however I
>>     don't want to break an ant build or anything...
>>
>>     Any ideas?
>>     Chris
>>
>>
>>
>>     On 15 February 2011 14:46, DM Smith <dmsmith at crosswire.org
>>     <mailto:dmsmith at crosswire.org>> wrote:
>>
>>         On 02/14/2011 03:20 PM, Chris Burrell wrote:
>>>         Hi
>>>
>>>         Still trying to get the maven build to work. I'm hitting
>>>         some sort of ClassNotFound issue, and thought I'd float the
>>>         stack trace in case anyone has any ideas. Something to do
>>>         with the IndexManager not being found, but having a look at
>>>         that, it looks like an interface...
>>
>>         Some guesses:
>>         The IndexManager is defined via a *.plugin file, which has
>>         moved to src/main/resources. Could that be the problem?
>>         Or is it that maven uses it's own class loader where we rely
>>         on the JSword class loader to find resources? (This is a
>>         known problem.)
>>
>>>
>>>
>>>
>>>         java.lang.ExceptionInInitializerError
>>>         at
>>>         org.crosswire.jsword.book.sword.SwordBookDriver.getBooks(SwordBookDriver.java:114)
>>>         at
>>>         org.crosswire.jsword.book.sword.SwordBookDriver.getBooks(SwordBookDriver.java:78)
>>>         at
>>>         org.crosswire.jsword.book.Books.registerDriver(Books.java:271)
>>>         at org.crosswire.jsword.book.Books.autoRegister(Books.java:404)
>>>         at org.crosswire.jsword.book.Books.initialize(Books.java:384)
>>>         at org.crosswire.jsword.book.Books.<init>(Books.java:58)
>>>         at org.crosswire.jsword.book.Books.<clinit>(Books.java:450)
>>>         at
>>>         com.tyndalehouse.step.core.service.impl.JSwordServiceImpl.isInstalled(JSwordServiceImpl.java:244)
>>>         at
>>>         com.tyndalehouse.step.core.prebuild.DownloadJSwordBiblesPreReq.installDefaultJSwordDefaultBibleVersions(DownloadJSwordBiblesPreReq.java:47)
>>>         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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>>>         at
>>>         org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>>>         at
>>>         org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>>>         at
>>>         org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>>>         at
>>>         org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
>>>         at
>>>         org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
>>>         at
>>>         org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
>>>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>>>         at
>>>         org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>>>         at
>>>         org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>>>         at
>>>         org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>>>         at
>>>         org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>>>         at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>>>         at
>>>         org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
>>>         at
>>>         org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>>>         at
>>>         org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>>>         at
>>>         org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>>>         at
>>>         org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>>>         at
>>>         org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>>>         *Caused by: java.lang.NullPointerException*
>>>         *at
>>>         sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)*
>>>         *
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)*
>>>         *
>>>         at
>>>         org.crosswire.common.util.ClassUtil.forName(ClassUtil.java:53)*
>>>         *
>>>         at
>>>         org.crosswire.common.util.PluginUtil.getImplementor(PluginUtil.java:148)*
>>>         *
>>>         at
>>>         org.crosswire.common.util.PluginUtil.getImplementation(PluginUtil.java:182)*
>>>         *
>>>         at
>>>         org.crosswire.jsword.index.IndexManagerFactory.<clinit>(IndexManagerFactory.java:65)*
>>>         *
>>>         ... 32 more*
>>>
>>>
>>>
>>>
>>>         _______________________________________________
>>>         jsword-devel mailing list
>>>         jsword-devel at crosswire.org  <mailto:jsword-devel at crosswire.org>
>>>         http://www.crosswire.org/mailman/listinfo/jsword-devel
>>
>>
>>         _______________________________________________
>>         jsword-devel mailing list
>>         jsword-devel at crosswire.org <mailto:jsword-devel at crosswire.org>
>>         http://www.crosswire.org/mailman/listinfo/jsword-devel
>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20110217/e9a92a45/attachment-0001.html>


More information about the jsword-devel mailing list