From 1fb083bf2525276c1a355b8826ebea55c41cd333 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Sat, 28 Jan 2023 16:29:35 +0100 Subject: [PATCH] [MDEPLOY-225] DeployAtEnd - ITs for skipped root project --- .../module1/pom.xml | 37 ++++++++ .../module2/pom.xml | 38 ++++++++ .../pom.xml | 88 +++++++++++++++++++ .../verify.groovy | 22 +++++ 4 files changed, 185 insertions(+) create mode 100644 src/it/MDEPLOY-225_deploy-at-end-skip-root/module1/pom.xml create mode 100644 src/it/MDEPLOY-225_deploy-at-end-skip-root/module2/pom.xml create mode 100644 src/it/MDEPLOY-225_deploy-at-end-skip-root/pom.xml create mode 100644 src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy diff --git a/src/it/MDEPLOY-225_deploy-at-end-skip-root/module1/pom.xml b/src/it/MDEPLOY-225_deploy-at-end-skip-root/module1/pom.xml new file mode 100644 index 00000000..325a6342 --- /dev/null +++ b/src/it/MDEPLOY-225_deploy-at-end-skip-root/module1/pom.xml @@ -0,0 +1,37 @@ + + + + + + 4.0.0 + + + org.apache.maven.its.mdeploy-225 + parent + 1.0 + + module1 + + + + org.apache.maven.plugins + maven-deploy-plugin + @project.version@ + + false + + + + + + diff --git a/src/it/MDEPLOY-225_deploy-at-end-skip-root/module2/pom.xml b/src/it/MDEPLOY-225_deploy-at-end-skip-root/module2/pom.xml new file mode 100644 index 00000000..5bb4f62a --- /dev/null +++ b/src/it/MDEPLOY-225_deploy-at-end-skip-root/module2/pom.xml @@ -0,0 +1,38 @@ + + + + + + 4.0.0 + + + org.apache.maven.its.mdeploy-225 + parent + 1.0 + + module2 + pom + + + + + org.apache.maven.plugins + maven-deploy-plugin + @project.version@ + + false + + + + + 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 new file mode 100644 index 00000000..8ac0f820 --- /dev/null +++ b/src/it/MDEPLOY-225_deploy-at-end-skip-root/pom.xml @@ -0,0 +1,88 @@ + + + + + + 4.0.0 + + org.apache.maven.its.mdeploy-225 + parent + 1.0 + pom + + + Tests deployment at end with skipped root project. + + + + true + + + + + it + file:///${basedir}/target/repo + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + @mavenCompilerPluginVersion@ + + + org.apache.maven.plugins + maven-deploy-plugin + @project.version@ + + true + true + + + + org.apache.maven.plugins + maven-install-plugin + @mavenInstallPluginVersion@ + + + org.apache.maven.plugins + maven-jar-plugin + @mavenJarPluginVersion@ + + + org.apache.maven.plugins + maven-resources-plugin + @mavenResourcesPluginVersion@ + + + org.apache.maven.plugins + maven-surefire-plugin + @mavenSurefirePluginVersion@ + + + + + + module1 + module2 + + 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 new file mode 100644 index 00000000..edcc0b97 --- /dev/null +++ b/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy @@ -0,0 +1,22 @@ +/* + * 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. + */ + +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()