Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/it/MDEPLOY-169_deploy-at-end-multithread/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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()
15 changes: 12 additions & 3 deletions src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
2 changes: 1 addition & 1 deletion src/it/MDEPLOY-224_deploy-at-end-only-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
15 changes: 12 additions & 3 deletions src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/it/MDEPLOY-225_deploy-at-end-skip-root/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
18 changes: 15 additions & 3 deletions src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Loading