This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new afad583b18 Clarify that all path based default value are absolute
afad583b18 is described below
commit afad583b1820aece72043d9c0567e47cce8e566c
Author: Konrad Windszus <[email protected]>
AuthorDate: Mon Nov 23 13:58:32 2026 +0100
Clarify that all path based default value are absolute
Compare with the super POM.
---
api/maven-api-model/src/main/mdo/maven.mdo | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/api/maven-api-model/src/main/mdo/maven.mdo
b/api/maven-api-model/src/main/mdo/maven.mdo
index 50cb9ffed7..9c71aaa1dc 100644
--- a/api/maven-api-model/src/main/mdo/maven.mdo
+++ b/api/maven-api-model/src/main/mdo/maven.mdo
@@ -817,7 +817,7 @@
<description>
This element describes all the classpath resources such as
properties
files associated with a project's unit tests.
- The default value is {@code src/test/resources}.
+ The default value is {@code ${project.basedir}/src/test/resources}.
@deprecated Replaced by {@code <Source>} with {@code test}
scope and {@code resources} language.
</description>
@@ -834,7 +834,7 @@
<version>4.0.0+</version>
<description>
The directory where all files generated by the build are placed.
- The default value is {@code target}.
+ The default value is {@code ${project.basedir}/target}.
</description>
<type>String</type>
</field>
@@ -906,7 +906,7 @@
This element specifies a directory containing the source of the
project. The
generated build system will compile the sources from this
directory when the project is
built. The path given is relative to the project descriptor.
- The default value is {@code src/main/java}.
+ The default value is {@code ${project.basedir}/src/main/java}.
@deprecated Replaced by {@code <Source>} with {@code main}
scope.
</description>
@@ -923,7 +923,7 @@
project. This directory is meant to be different from the
sourceDirectory, in that its
contents will be copied to the output directory in most cases
(since scripts are
interpreted rather than compiled).
- The default value is {@code src/main/scripts}.
+ The default value is {@code ${project.basedir}/src/main/scripts}.
@deprecated since 4.0.0.
Use {@code <source>} elements with {@code script} language
@@ -941,7 +941,7 @@
This element specifies a directory containing the unit test source
of the
project. The generated build system will compile these directories
when the project is
being tested. The path given is relative to the project descriptor.
- The default value is {@code src/test/java}.
+ The default value is {@code ${project.basedir}/src/test/java}.
@deprecated Replaced by {@code <Source>} with {@code test}
scope.
</description>
@@ -955,7 +955,7 @@
<version>4.0.0+</version>
<description>
The directory where compiled application classes are placed.
- The default value is {@code target/classes}.
+ The default value is {@code ${project.build.directory}/classes}.
</description>
<type>String</type>
</field>
@@ -964,7 +964,7 @@
<version>4.0.0+</version>
<description>
The directory where compiled test classes are placed.
- The default value is {@code target/test-classes}.
+ The default value is {@code
${project.build.directory}/test-classes}.
</description>
<type>String</type>
</field>
@@ -2169,9 +2169,9 @@
If unspecified, then the default value is one of the following:
<ul>
- <li>{@code ${project.build.outputDirectory}} (typically {@code
target/classes}) if {@code scope} is "main",</li>
- <li>{@code ${project.build.testOutputDirectory}} (typically
{@code target/test-classes}) if {@code scope} is "test",</li>
- <li>{@code ${project.build.directory}} (typically {@code
target}) otherwise.</li>
+ <li>{@code ${project.build.outputDirectory}} (typically {@code
${project.basedir}/target/classes}) if {@code scope} is "main",</li>
+ <li>{@code ${project.build.testOutputDirectory}} (typically
{@code ${project.basedir}/target/test-classes}) if {@code scope} is "test",</li>
+ <li>{@code ${project.build.directory}} (typically {@code
${project.basedir}/target}) otherwise.</li>
</ul>
<p>If this property is specified but is a relative path,