-
Notifications
You must be signed in to change notification settings - Fork 1
Webservice Build Project
|
ℹ️
|
Before starting, please make sure you already set up the KnowledgeFinder requirements:
KnowledgeFinder - Prerequisites Also this webservice requires an instance of Apache Solr running with KnowledgeFinder - Dataimport. |
Clone the repository at https://github.com/KnowledgeFinder/knowledgefinder-webapp
|
ℹ️
|
To build the project, another configuration project is needed, e.g. the KnowledgeFinder example configuration. In the following the example configuration project is used to illustrate the set up. A list of configuration projects can be found at KnowledgeFinder - Instances. |
Comment the usage of the module knowledgefinder-webapp/portlet (only if you want to run the webservice without the portlet/visualization):
knowledgefinder-webapp/pom.xml
...
<modules>
...
<!--<module>portlet</module>
<module>${knowledgefinderII.path.prefix}knowledgefinder-config-${knowledgefinderII.instance.name}/portlet-config</module>-->
</modules>
...Set the path to your local liferay installation:
knowledgefinder-core/pom.xml
...
<properties>
<knowledgefinderII.liferay.dir>/path/to/liferay/installation</knowledgefinderII.liferay.dir>
...
</properties>
...|
ℹ️
|
Instead you can also add -DknowledgefinderII.liferay.dir=/path/to/liferay/installation to your maven goal. This will overwrite the variable set in the properties. |
This webservice requires a instance of Apache Sol running with KnowledgeFinder II - Solr Index. The connection information needs to be configured in the webservice.properties in your webservice configuration project. For an example configuration see the documentation of the KnowledgeFinder example project.
-
Command line:
cd ./knowledgefinder-webapp/ mvn clean installIf Maven runs out of memory set the environment variable
MAVEN_OPTSe. g. to-Xmx512m. -
Eclipse:
-
Add new Maven Run Configuration with base directory
${workspace_loc:/knowledgefinder-webapp}, goalclean installto build the webservice project.
-
run the maven-liferay plugin
-
Command line:
cd ./knowledgefinder-webapp/ mvn liferay:deployIf Maven runs out of memory set the environment variable
MAVEN_OPTSe.g. to-Xmx512m. -
Eclipse:
-
Add new Maven Run Configuration with base directory
${workspace_loc:/knowledgefinder-webapp}, goalliferay:deployto build the webservice project.
-
-
optional: needed for having the liferay server option in eclipse
-
search in eclipse marketplace for liferay and install the Liferay IDE
-
Open the Servers view
-
Create a new server
-
Select Liferay, Inc. → Liferay v6.2 CE Server (Tomcat 7)
-
Provide your Liferay Tomcat directory
-
Start the Server
|
ℹ️
|
If you encounter a java.lang.OutOfMemoryError on start up, add the VM argument "-XX:MaxPermSize=256m" to the servers run configuration. |
To fireup Liferay portal, see https://web.liferay.com/de/quick-start point 3