Hi Fabian,
On 06/01/15 10:24, Fabian Cretton wrote:
Until the end of 2014, but before the release of Marmotta 3.3.0, we
did develop two modules based on Marmotta's "3.3.0-SNAPSHOT" code
from the "develop" branch.
Those modules do work properly in our fork which has not been
updated yet to 3.3.0. Also, the code is not yet published on our
github fork.
The modules should depend on the Maven level, not at the source code
one. Therefore the fork should not be required anymore, but I don't know
if it includes any patch...
What would you recommend to make those modules available to the
community ? and what do we technically need to do ?
I'd say create individual repositories at github with each module. Or
even better, group all together under a common repository that includes
a marmotta webapp launcher with your modules.
As a simple test, I did download the new Marmotta 3.3.0 installer,
but when I add the module's .jar file to
"apache-tomcat-7.0.53\webapps\marmotta\WEB-INF\lib", then Marmotta
will fail to start-up. I guess this is normal.
No, it should load the modules, as soon as you also copied all required
dependencies. Any stacktrace to debug the issue?
As I said, it's better to do such things at Maven level.
Before investigating further, I think I need more explanation than
the one found on
http://wiki.apache.org/marmotta/Customizing#Build_your_custom_module
That's the basic documentation you need, right.
Also, the modules need their own folders in Marmotta's home. When
starting the service of the module, those folder will be created by
the module if they don't exist yet. But some files will be required
in those folders and I would like to know if their is any "easy" way
to distribute those files on the first launch (for instance copying
them from the .jar content), or if an installation programm would be
more "clean" ?
I guess we do not provide the basic infrastructure for such tasks. But
you can easily implement it observing the SystemStartupEvent. Although
it's for something else, the code for copying a custom template might be
relevant for you (I guess it's the same business):
http://wiki.apache.org/marmotta/Customizing#Templates
The simplest solution if someone would like to test/use the modules
would be: just place the .jar in "\webapps\marmotta\WEB-INF\lib",
but maybe that can't be so simple ?
The problem is the dependencies, as I pointed above.
Let's keep talking how to support you on this.
Cheers,
--
Sergio Fernández
Senior Researcher
Knowledge and Media Technologies
Salzburg Research Forschungsgesellschaft mbH
Jakob-Haringer-Straße 5/3 | 5020 Salzburg, Austria
T: +43 662 2288 318 | M: +43 660 2747 925
[email protected]
http://www.salzburgresearch.at
--
Sergio Fernández
Partner Technology Manager
Redlink GmbH
m: +43 660 2747 925
e: [email protected]
w: http://redlink.co