This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch maven-4.0.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-4.0.x by this push:
     new 14789b9702 Clarify that all path based default value are absolute
14789b9702 is described below

commit 14789b9702a246a561e1357c6a47cb777a0f6bd4
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 2ffd75aba7..c93c9eb49c 100644
--- a/api/maven-api-model/src/main/mdo/maven.mdo
+++ b/api/maven-api-model/src/main/mdo/maven.mdo
@@ -798,7 +798,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 &lt;Source&gt;} with {@code test} 
scope and {@code resources} language.
           </description>
@@ -815,7 +815,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>
@@ -887,7 +887,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 &lt;Source&gt;} with {@code main} 
scope.
           </description>
@@ -904,7 +904,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 Replaced by {@code &lt;Source&gt;} with {@code script} 
language.
           </description>
@@ -920,7 +920,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 &lt;Source&gt;} with {@code test} 
scope.
           </description>
@@ -934,7 +934,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>
@@ -943,7 +943,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>
@@ -2130,9 +2130,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,

Reply via email to