This guide tells you how to set up a JSPWiki Development Environment.
It assumes you are using a Windows based environment
See also HowToWriteAPlugin
Prerequisites#
Install Java#
- http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.htmlContent unavailable! (broken link)https://jspwiki-vm1.apache.org/images/out.png
Install Eclipse#
- http://www.eclipse.org/Content unavailable! (broken link)https://jspwiki-vm1.apache.org/images/out.png
Install Tomcat (optional)#
- http://tomcat.apache.org/Content unavailable! (broken link)https://jspwiki-vm1.apache.org/images/out.png
Install Maven#
- http://maven.apache.org/Content unavailable! (broken link)https://jspwiki-vm1.apache.org/images/out.png
Source Code#
The source code is at: http://svn.apache.org/repos/asf/jspwiki/trunkContent unavailable! (broken link)https://jspwiki-vm1.apache.org/images/out.pngSee http://jspwiki.apache.org/development/source_and_guide.htmlContent unavailable! (broken link)https://jspwiki-vm1.apache.org/images/out.png
Process#
Go to the source directory e.g. C:/code/jspwiki and run:mvn eclipse:eclipse
To compile the code run:
mvn package
To start jspwiki run:
cd jspwiki-war mvn tomcat7:run
Once this completes go to http://localhost:8080/JSPWikiContent unavailable! (broken link)https://jspwiki-vm1.apache.org/images/out.png and you should see an empty wiki.
Configuration#
The default configuration file is found at <jspwiki.dir>/jspwiki-war/src/main/resources/ini/jspwiki.properties For more information see Configuration
It is recommended not to change the above file, but rather create a custom file here:
<jspwiki.dir>/jspwiki-war/src/main/resources/jspwiki-custom.properties
<jspwiki.dir>/jspwiki-war/src/main/resources/jspwiki-custom.properties
One of the important properties in the jspwiki.properties file is the below:
- # jspwiki.fileSystemProvider.pageDir = C:/Data/jspwiki
By default this line ia commented out so it will go to the Java *<user.home>/jspwiki-files* directory. For Example:
- C:/Users/<username>/jspwiki-files
- C:/Documents and Settings/<username>/jspwiki-files
- /home/<username>/jspwiki-files
In there will be all the content files for the wiki pages.
Category.Documentation