This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch maven-deploy-plugin-3.x
in repository https://gitbox.apache.org/repos/asf/maven-deploy-plugin.git
The following commit(s) were added to refs/heads/maven-deploy-plugin-3.x by
this push:
new bed4d62 update deployAtEnd ITs to match latest 4 behaviour
bed4d62 is described below
commit bed4d62dc21edd31f38618b18b10de1016a45e43
Author: Hervé Boutemy <[email protected]>
AuthorDate: Sat Jun 13 12:32:06 2026 +0200
update deployAtEnd ITs to match latest 4 behaviour
---
.../verify.groovy | 15 ++++++++++++---
.../verify.groovy | 15 ++++++++++++---
src/it/MDEPLOY-224_deploy-at-end-only-modules/pom.xml | 2 +-
.../verify.groovy | 15 ++++++++++++---
src/it/MDEPLOY-225_deploy-at-end-skip-root/pom.xml | 2 +-
.../MDEPLOY-225_deploy-at-end-skip-root/verify.groovy | 18 +++++++++++++++---
6 files changed, 53 insertions(+), 14 deletions(-)
diff --git a/src/it/MDEPLOY-169_deploy-at-end-multithread/verify.groovy
b/src/it/MDEPLOY-169_deploy-at-end-multithread/verify.groovy
index e06044f..43461cb 100644
--- a/src/it/MDEPLOY-169_deploy-at-end-multithread/verify.groovy
+++ b/src/it/MDEPLOY-169_deploy-at-end-multithread/verify.groovy
@@ -17,6 +17,15 @@
* under the License.
*/
-assert new File( basedir,
"target/repo/org/apache/maven/its/mdeploy-169/multithread/1.0/multithread-1.0.pom"
).exists()
-assert new File( basedir,
"module1/target/repo/org/apache/maven/its/mdeploy-169/module1/1.0/module1-1.0.pom"
).exists()
-assert new File( basedir,
"module2/target/repo/org/apache/maven/its/mdeploy-169/module2/1.0/module2-1.0.pom"
).exists()
+rootRepo = new File( basedir, "target/repo" )
+module1Repo = new File( basedir, "module1/target/repo" )
+module2Repo = new File( basedir, "module2/target/repo" )
+
+if (mavenVersion.startsWith('4.')) {
+ // Maven 4 deploys in the root target directory, as defined in the root POM
+ module1Repo = module2Repo = rootRepo
+}
+
+assert new File( rootRepo,
"org/apache/maven/its/mdeploy-169/multithread/1.0/multithread-1.0.pom"
).exists()
+assert new File( module1Repo,
"org/apache/maven/its/mdeploy-169/module1/1.0/module1-1.0.pom" ).exists()
+assert new File( module2Repo,
"org/apache/maven/its/mdeploy-169/module2/1.0/module2-1.0.pom" ).exists()
diff --git a/src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy
b/src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy
index 6dfba56..c32fe82 100644
--- a/src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy
+++ b/src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy
@@ -17,6 +17,15 @@
* under the License.
*/
-assert new File( basedir,
"target/repo/org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom"
).exists()
-assert new File( basedir,
"module1/target/repo/org/apache/maven/its/mdeploy-170/module1/1.0/module1-1.0.pom"
).exists()
-assert !( new File( basedir,
"module2/target/repo/org/apache/maven/its/mdeploy-170/module2/1.0/module2-1.0.pom"
).exists() )
+rootRepo = new File( basedir, "target/repo" )
+module1Repo = new File( basedir, "module1/target/repo" )
+module2Repo = new File( basedir, "module1/target/repo" )
+
+if (mavenVersion.startsWith('4.')) {
+ // Maven 4 deploys in the root target directory, as defined in the root POM
+ module1Repo = module2Repo = rootRepo
+}
+
+assert new File( rootRepo,
"org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom"
).exists()
+assert new File( module1Repo,
"org/apache/maven/its/mdeploy-170/module1/1.0/module1-1.0.pom" ).exists()
+assert !( new File( module2Repo,
"org/apache/maven/its/mdeploy-170/module2/1.0/module2-1.0.pom" ).exists() )
diff --git a/src/it/MDEPLOY-224_deploy-at-end-only-modules/pom.xml
b/src/it/MDEPLOY-224_deploy-at-end-only-modules/pom.xml
index f40c64a..05c561c 100644
--- a/src/it/MDEPLOY-224_deploy-at-end-only-modules/pom.xml
+++ b/src/it/MDEPLOY-224_deploy-at-end-only-modules/pom.xml
@@ -28,7 +28,7 @@ under the License.
<packaging>pom</packaging>
<description>
- Tests deployment at end only in modules.
+ Tests deployment at end only in modules.
https://github.com/apache/maven-deploy-plugin/issues/374
</description>
<properties>
diff --git a/src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy
b/src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy
index 063f2ae..6909378 100644
--- a/src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy
+++ b/src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy
@@ -17,9 +17,18 @@
* under the License.
*/
-assert new File( basedir,
"target/repo/org/apache/maven/its/mdeploy-224/parent/1.0/parent-1.0.pom"
).exists()
-assert new File( basedir,
"module1/target/repo/org/apache/maven/its/mdeploy-224/module1/1.0/module1-1.0.pom"
).exists()
-assert new File( basedir,
"module2/target/repo/org/apache/maven/its/mdeploy-224/module2/1.0/module2-1.0.pom"
).exists()
+rootRepo = new File( basedir, "target/repo" )
+module1Repo = new File( basedir, "module1/target/repo" )
+module2Repo = new File( basedir, "module2/target/repo" )
+
+if (mavenVersion.startsWith('4.')) {
+ // Maven 4 deploys in the root target directory, as defined in the root POM
+ module1Repo = module2Repo = rootRepo
+}
+
+assert new File( rootRepo,
"org/apache/maven/its/mdeploy-224/parent/1.0/parent-1.0.pom" ).exists()
+assert new File( module1Repo,
"org/apache/maven/its/mdeploy-224/module1/1.0/module1-1.0.pom" ).exists()
+assert new File( module2Repo,
"org/apache/maven/its/mdeploy-224/module2/1.0/module2-1.0.pom" ).exists()
def buildLog = new File ( basedir, "build.log").text
diff --git a/src/it/MDEPLOY-225_deploy-at-end-skip-root/pom.xml
b/src/it/MDEPLOY-225_deploy-at-end-skip-root/pom.xml
index 8ac0f82..1ffe960 100644
--- a/src/it/MDEPLOY-225_deploy-at-end-skip-root/pom.xml
+++ b/src/it/MDEPLOY-225_deploy-at-end-skip-root/pom.xml
@@ -28,7 +28,7 @@ under the License.
<packaging>pom</packaging>
<description>
- Tests deployment at end with skipped root project.
+ Tests deployment at end with skipped root project.
https://github.com/apache/maven-deploy-plugin/issues/533
</description>
<properties>
diff --git a/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy
b/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy
index edcc0b9..03ecebb 100644
--- a/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy
+++ b/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy
@@ -17,6 +17,18 @@
* under the License.
*/
-assert ! new File( basedir, "target/repo" ).exists()
-assert new File( basedir,
"module1/target/repo/org/apache/maven/its/mdeploy-225/module1/1.0/module1-1.0.pom"
).exists()
-assert new File( basedir,
"module2/target/repo/org/apache/maven/its/mdeploy-225/module2/1.0/module2-1.0.pom"
).exists()
+rootRepo = new File( basedir, "target/repo" )
+module1Repo = new File( basedir, "module1/target/repo" )
+module2Repo = new File( basedir, "module2/target/repo" )
+
+if (mavenVersion.startsWith('4.')) {
+ // Maven 4 deploys in the root target directory, as defined in the root
POM (even if not deployed)
+ module1Repo = module2Repo = rootRepo
+} else {
+ // Maven 3 deploys in the each module target directory, nothing in root
+ assert ! rootRepo.exists()
+}
+
+// check that files are deployed both by Maven 3 and 4 =
https://github.com/apache/maven-deploy-plugin/issues/533
+assert new File( module1Repo,
"org/apache/maven/its/mdeploy-225/module1/1.0/module1-1.0.pom" ).exists()
+assert new File( module2Repo,
"org/apache/maven/its/mdeploy-225/module2/1.0/module2-1.0.pom" ).exists()