On Wed, Aug 1, 2012 at 9:16 PM, Rupert Westenthaler < [email protected]> wrote:
> Hi > > On Thu, Aug 2, 2012 at 3:04 AM, harish suvarna <[email protected]> wrote: > > Removing the stanbol folder in the trunk helped me. This stanbol folder > is > > created by the build process. > > Generally: The first time you start Stanbol (and the /stanbol folder > is created) the jar files (bundles) , configurations ... are copied > from the runnable jar. On any further start the copied information are > used. Therefore replacing the launcher jar will not have any effect! > > To update a component (e.g. an Engine) you need to use the > "install/update" the according Bundle(s). This can be done by several > different ways (e.g. by going to > "http://{stanbol}/system/console/bundles" and using the > '[install/update...]' button.) > > Harish>>>> I uninstalled the bundle in the console, then I goto the enhancer/engines/langdetect folder and did a 'mvn clean install'. Then I come to the browser and do an install mannually. Somehow this cycle did not help me. I for the sake of learning, renamed index folder, bundles folder etc, I was starting Stanbol again. But was surprised that none of these folders are created again. Now I understand. You can also use the Sling Maven Plugin [1] or configure the Sling > File Provider [2]. As there is no documentation here the needed steps > to setup the Sling File Provider > > 0) Install the "Sling File Provider" Bundle (not needed as this is > included by default) > 1) Configure the "sling.fileinstall.dir" property: You can add this to > the "{stanbol-working-dir}/stanbol/sling.properties file" or parse it > as a system property '-Dsling.fileinstall.dir={path-to-dir}' when you > start stanbol. > 2) Create the referenced Folder > > Harish>>> Will experiment with it. Thanks. > After that the "Sling File Provider" will automatically > install/update/delete bundles and configurations added/updated/deleted > in that folder. > > [1] http://sling.apache.org/site/sling.html > [2] > http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.installer.provider.file-1.0.2 > > > Thanks a lot for the help. > > > > In general, if we have a custom jar file how do we integrate into > stanbol? > > Does stanbol allow this? > > You can install OSGI bundles by using the Felix Web Console (as > described above). Jar files that are no Bundles can not be added to > Stanbol. > Harish>>> I have the paoding.jar file. I checked in repo1.maven.org, it has com.54chen (groupid), paoding-rose (artifact id). I am not sure about this. The packages I use from paoding are something like net.paoding.analysis.analyzer.*. So here I am with a jar file which is not there in central repository. For now, I mannually created in my local .m2 repository the path net.paoding....then I do Embed-dependency in pom.xml for this jar file. For now it seems to work. But for long run, we need a central repository entry. In the abscense, what is the process to integrate jar files? > > best > Rupert > > -- > | Rupert Westenthaler [email protected] > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen >
