Warning

XRadar is migrating to a mvn (maven 2) build, and leaving behind maven 1... Most of the data here is still correct, but will soon be out of date.

XRadar Maven Structure

The XRadar Maven plugin wraps in the whole XRadar ant baseproject in the plugin jar. It is a simple and raw, but effective way of ensuring that you get an identical package in Maven as in Ant. See also Maven Installation for more on the maven plugin usage.

Initialization

After checking out the maven-project in the same workspace as the base-project, you first need to run the following task in order to import all the necessary data from the current base project.

maven projects:populate -Dxradar.basedir=../base
				
Similarily, if you have done some changes to the base-project, and want to import these into maven call:
maven projects:clean projects:populate -Dxradar.basedir=../base
				

Build of subprojects

Building all the different parts of the maven configuration is done by running the following target:

maven multiproject:install-snapshot
				
You will now have a complete build of all the subcomponents.

Build and test pluginn

In order to build and install the plugin, run:

cd maven-xradar-plugin
maven plugin:install
				
The plugin is now installed in the repository. You next step is to test that it is working. Go to the xradar-maven root and run:
maven xradar -Dxradar.output.dir=$XRADAR_MAVEN_ROOT/target/xradar
				
The whole analysis of the testproject can now be found under the xradar.output.dir.

Releasing updates

The maven-plugin should have an identical version tag as the corresponding base project it build upon. When building the release, simply update the version, and use the jar file under the pluginn project as the release.