How-To Create Your Own Workspace
Back to current version Restore this version
This articles is outdated, we are currently working on a new guide.

Prerequisites#

or

IntelliJ IDEA#

Please do also take a look at the screencasts that show the set up of an IntelliJ workspace.

First time starting IDEA#

When you first start IDEA you can choose which plugins to enable/disable. Just leave everything enabled to be on the safe side.
After that choose "New Project" and then "Empty Project". Give it a name and hit "Ok".

Auto-Import Maven Modules#

Set IntelliJ to automatically import checked-out or created maven modules: Settings -> "Maven" -> "Importing" -> activate "import maven projects automatically"

Import Repositories#

Select "VCS -> Checkout from Version Control -> Subversion".

Add following repositories by clicking on the "+"-Symbol:

https://github.com/denkbares/Commons.git
https://github.com/denkbares/d3web-Runtime.git
https://github.com/denkbares/d3web-KnowWE.git

Select the three main projects (denkbares-Commons, d3web, and KnowWE) as well as KnowWE-App from inside the trunks of the three repositories. They are in the trunk/folders respectively. One by one, right click one the projects and select Check out and choose your Idea project folder. After that, select the following path $yourprojectname/$projectparent (usually the one in the middle). When IDEA has finished checking everything out, select "File -> New/Module from Existing Sources..." and choose your project path. You get asked which module to import, choose "Import Module from external Model/Maven" and hit "Next". In the next screen hit "Next" again and "Finish" afterwards.

Building and starting KnowWE#

Select "Run -> Edit Configurations" and add "Tomcat Server -> local". Hit configure and choose your tomcat path. In den bottom pane click "+" and choose "Build Artifacts". Select "KnowWE-App:war exploded". Click on the "Deployment" tab and add "KnowWE-App:war exploded". Select as Application Context "/KnowWE" and click on "Ok". Build KnowWE by clicking on the green arrow right next to our new tomcat configuration.

Transitioning from Eclipse to IntelliJ IDEA#

The d3web/KnowWE community started developing with Eclipse, but recently some of our developers are transitioning to IntelliJ IDEA. If you are considering to transition yourself, you might find the following article helpful: IntelliJ FAQ

Eclipse#

At denkbares, we currently don't use eclipse for the development of d3web-KnowWE, but it should work anyway and some users are successfully using it. Here a short guide from Alberto (aarmijo on github):

Set-up:#

Instructions:#