Built by Maven

Built by Maven

Before to develop Demosys, you'll need to install Maven first. For more details on how to install Maven please refer to the Maven documentation .

Here's a brief overview of what you need to do.

  • Download a binary distribution of Maven here .
  • Set the environment variable MAVEN_HOME to point to where you installed Maven (D:\Dev\maven\maven-1.0-beta-9 for me)
  • Change your PATH environment variable so that it points to MAVEN_HOME/bin
  • Get a source distribution of Demosys via CVS here .

To verify that your Maven installation is working, change directory into your Demosys directory which should contain a project.xml file required by Maven. Then type

                maven war:war
            

This should download all the required jars required to build, compile all the code and build and run all the unit test cases, and finally build the web application.

IntelliJ

In order to generate IntelliJ project files, follow these steps :

  1. Remove the previous deploied plugin, MAVEN_HOME\plugins\maven-idea-plugin-x.x
  2. Remove the previous plugin jar, MAVEN_HOME\plugins\maven-idea-plugin-x.x.jar
  3. Download the updated plugin here
  4. Put the jar file in the plugin folder MAVEN_HOME\plugins\
  5. Execute maven in the demosys folder.
                                    maven idea
                                

Checkstyle

In order to generate Checkstyle reports for demosys you had to update the standard maven plugin:

  1. Remove the previous deploied plugin, MAVEN_HOME\plugins\maven-checkstyle-plugin-x.x
  2. Remove the previous plugin jar, MAVEN_HOME\plugins\maven-checkstyle-plugin-x.x.jar
  3. Download the updated plugin here
  4. Put the jar file in the plugin folder MAVEN_HOME\plugins\
  5. To test install, execute maven in the demosys folder , and look the result in target/doc/checkstyle-report.html
                                    maven checkstyle:report xdoc
                                

A step further

To build the web site, do

                    maven site:generate
                

To clean demosys

                    maven clean
                

To see all maven's goal

                    maven -g