Debian Codegraph @

doxia-integration-tools/src/site/apt/index.apt

raw
1 ------
2 Introduction
3 ------
4 Dennis Lundberg
5 Hervé Boutemy
6 ------
7 2016-03-27
8 ------
9
10 ~~ Licensed to the Apache Software Foundation (ASF) under one
11 ~~ or more contributor license agreements. See the NOTICE file
12 ~~ distributed with this work for additional information
13 ~~ regarding copyright ownership. The ASF licenses this file
14 ~~ to you under the Apache License, Version 2.0 (the
15 ~~ "License"); you may not use this file except in compliance
16 ~~ with the License. You may obtain a copy of the License at
17 ~~
18 ~~ http://www.apache.org/licenses/LICENSE-2.0
19 ~~
20 ~~ Unless required by applicable law or agreed to in writing,
21 ~~ software distributed under the License is distributed on an
22 ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23 ~~ KIND, either express or implied. See the License for the
24 ~~ specific language governing permissions and limitations
25 ~~ under the License.
26
27 ~~ NOTE: For help with the syntax of this file, see:
28 ~~ http://maven.apache.org/doxia/references/apt-format.html
29
30
31 Maven Doxia Integration Tools
32
33 This shared component has some utilities that are useful when integrating Doxia in Maven,
34 mainly for site generation and report creation.
35
36 The main entry point is the
37 {{{./apidocs/org/apache/maven/doxia/tools/SiteTool.html}SiteTool}} Plexus component.
38
39 * Usage
40
41 Instructions on how to use the integration of Doxia in Maven can be found {{{./usage.html}here}}.
42
43 * <<<site.xml>>> Model Interpolation
44
45 Interpolation of {{{../doxia-site-model/site.html}<<<site.xml>>> model}} injects
46 Maven project's information, replacing <<<$\{...\}>>> with calculated values
47 like it happens in {{{/ref/current/maven-model-builder/#Model_Interpolation}Maven model interpolation}}.
48
49 Interpolation can be <<late>> or <<early>>:
50
51 * with <<late>> interpolation, replacement happens <<after>> inheritance. This is the classical behaviour in Maven pom,
52
53 * with <<early>> interpolation, replacement happens <<before>> inheritance: this was the default behaviour for <<<project.*>>>
54 values until Doxia Sitetools 1.7 (used in {{{/plugins/maven-site-plugin/history.html} Maven Site Plugin 3.5}}), when these early and late interpolation definitions didn't exist.
55 Since Doxia Sitetools 1.7.1 (used in {{{/plugins/maven-site-plugin/history.html} Maven Site Plugin 3.5.1}}), early interpolation happens for <<<this.*>>> values.
56
57 []
58
59 Values are evaluated in sequence from different syntaxes:
60
61 *-----------------+--------------+--------------------+------------------+
62 || late value || early value || evaluation result || common examples ||
63 *-----------------+--------------+--------------------+------------------+
64 | <<<project.*>>> | <<<this.*>>> | POM content (see {{{/ref/current/maven-model/maven.html}POM reference}}) | <<<$\{project.version\}>>>\
65 | | | <<<$\{this.url\}>>>
66 *-----------------+--------------+--------------------+------------------+
67 | <<<*>>> | <<<this.*>>> | model properties, such as project properties set in the pom | <<<$\{any.key\}>>>\
68 | | | <<<$\{this.any.key\}>>>
69 *-----------------+--------------+--------------------+------------------+
70 | <<<env.*>>>\
71 <<<*>>> | | environment variables | <<<$\{env.PATH\}>>>
72 *-----------------+--------------+--------------------+------------------+