Confluence 2.5.6 : Setup Confluence Source Code For Development
This page last changed on Apr 17, 2007 by mjensen.
Software developers can customise Confluence extensively by modifying the source code. Follow the instructions to build Confluence from source using IntelliJ IDEA. Setup Development EnvironmentComplete the Initial Development Environment Setup to setup your environment. Download Confluence Source CodeAccess to the Confluence source code is provided to all commercial license holders. If you don't have a commercial licence but believe you have a valid reason to need the source, you can request access. If you have source-code access:
Configure settings.xmlThe settings.xml file is the file that stores the configurations that are relevant to Maven 2. This should be under your $HOME/.m2/ directory (which is located at C:\Documents and Settings[your username]\.m2 on a Windows environment). Dependencies are, by default, downloaded in $HOME/.m2/repository. You can see an example settings.xml.
If you don't have any existing file, create a new file called settings.xml and paste the example code into it. If you have already a settings.xml then just add the extra information.
Install Confluence into the local Maven2 repositoryBecause of Maven2's dependencies you have to install Confluence into the local repository to get rid of any warning messages that pop up with maven commands. So use the following command: > cd $CONFSRC/confluence
> mvn install -Pcore,bamboo -Dunit-test=false
This will take approximately 10 minutes to run for the first time, as all the dependencies are downloaded from the Internet. Go get a cup of coffee or find a blog to read. Building a new StandaloneYou can build a Confluence standalone distribution from this source release using the 'standalone' maven profile.
Create the IDEA project filesOpen a command prompt and enter the following: > cd $CONFSRC/confluence > mvn atlassian-idea:all -Pidea That's it! Now just open up the freshly-generated 'confluence-project.ipr' file in IDEA. It should look something like this:
Setup Confluence EnvironmentOnce the project is loaded, you will need to set up where the 'confluence home' is.
Compiling and running ConfluenceNow that it's set up, we should make sure it's all working by getting it to run inside IDEA.
Hopefully your project will now run and you will be able to access Confluence through your web browser. What's Next?Now that we've got Confluence running, we can start working on plugins. ![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
Document generated by Confluence on Oct 10, 2007 18:36 |