------ Aggregating JXR Reports for Multi-module Projects ------ Maria Odea Ching ------ 2010-01-20 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. Aggregating JXR Reports for Multi-module Projects The <<>> parameter of the JXR Plugin can be used to generate JXR files for multi-module projects. Using this parameter, you can opt to generate one compiled set of JXR files for the whole project (all modules) or generate one set of JXR files for each module. For example, you have the following directory structure: +-----+ Project |-- pom.xml |-- Module1 | |-- src | | `-- main | | `-- java | | `-- com | | `-- module1 | | `-- app | | `-- Module1App.java | `-- pom.xml |-- Module2 | |-- src | | `-- main | | `-- java | | `-- com | | `-- module2 | | `-- app | | `-- Module2App.java | `-- pom.xml `-- Module3 |-- src | `-- main | `-- java | `-- com | `-- module3 | `-- app | `-- Module3App.java `-- pom.xml +-----+ And you have the following configuration in your <<>>: +-----+ ... org.apache.maven.plugins maven-jxr-plugin ${project.version} aggregate aggregate test-aggregate ... ... +-----+ When you execute <<>> from the parent directory, which is , a set of JXR files will be created in the target directory of where all of the JXR files of the project's submodules are included. Otherwise a set of JXR files for will be generated in the target directory of , another set of JXR files for will be generated in the target directory of , and so on.