Add IT for a flat multimodule project
git-svn-id: https://svn.apache.org/repos/asf/maven/shared/trunk@1477780 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/it/multimodule-flat/invoker.properties b/src/it/multimodule-flat/invoker.properties
new file mode 100644
index 0000000..40c083e
--- /dev/null
+++ b/src/it/multimodule-flat/invoker.properties
@@ -0,0 +1,2 @@
+invoker.goals = org.apache.maven.shared.project.utils.it:maven-projectutils-plugin:resolve-site org.apache.maven.shared.project.utils.it:maven-projectutils-plugin:resolve-scm
+invoker.project = project
\ No newline at end of file
diff --git a/src/it/multimodule-flat/module/pom.xml b/src/it/multimodule-flat/module/pom.xml
new file mode 100644
index 0000000..343e7c2
--- /dev/null
+++ b/src/it/multimodule-flat/module/pom.xml
@@ -0,0 +1,17 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.shared.project.utils.it.multimodule-flat</groupId>
+ <artifactId>multimodule</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <relativePath>../project</relativePath>
+ </parent>
+ <artifactId>module</artifactId>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>../submodule</module>
+ </modules>
+
+</project>
\ No newline at end of file
diff --git a/src/it/multimodule-flat/project/pom.xml b/src/it/multimodule-flat/project/pom.xml
new file mode 100644
index 0000000..475568a
--- /dev/null
+++ b/src/it/multimodule-flat/project/pom.xml
@@ -0,0 +1,23 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.shared.project.utils.it.multimodule-flat</groupId>
+ <artifactId>multimodule</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <distributionManagement>
+ <site>
+ <url>http://localhost/project</url>
+ </site>
+ </distributionManagement>
+
+ <scm>
+ <connection>scm:local:/multimodule/project</connection>
+ <developerConnection>scm:local:/smultimodule/project</developerConnection>
+ </scm>
+
+ <modules>
+ <module>../module</module>
+ </modules>
+</project>
\ No newline at end of file
diff --git a/src/it/multimodule-flat/submodule/pom.xml b/src/it/multimodule-flat/submodule/pom.xml
new file mode 100644
index 0000000..7026ba8
--- /dev/null
+++ b/src/it/multimodule-flat/submodule/pom.xml
@@ -0,0 +1,13 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.shared.project.utils.it.multimodule-flat</groupId>
+ <artifactId>module</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <relativePath>../module</relativePath>
+ </parent>
+ <artifactId>submodule</artifactId>
+ <packaging>pom</packaging>
+
+</project>
\ No newline at end of file
diff --git a/src/it/multimodule-flat/verify.groovy b/src/it/multimodule-flat/verify.groovy
new file mode 100644
index 0000000..2903898
--- /dev/null
+++ b/src/it/multimodule-flat/verify.groovy
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+File buildLog = new File( basedir, 'build.log' )
+assert buildLog.text.contains( '[INFO] Resolved distributionManagement site URL for org.apache.maven.shared.project.utils.it.multimodule-flat:multimodule:pom:0.0.1-SNAPSHOT: http://localhost/project')
+assert buildLog.text.contains( '[INFO] Resolved distributionManagement site URL for org.apache.maven.shared.project.utils.it.multimodule-flat:module:pom:0.0.1-SNAPSHOT: http://localhost/module' )
+assert buildLog.text.contains( '[INFO] Resolved distributionManagement site URL for org.apache.maven.shared.project.utils.it.multimodule-flat:submodule:pom:0.0.1-SNAPSHOT: http://localhost/submodule' )
+
+assert buildLog.text.contains( '[INFO] Resolved scm connection for org.apache.maven.shared.project.utils.it.multimodule-flat:multimodule:pom:0.0.1-SNAPSHOT: scm:local:/multimodule/project' )
+assert buildLog.text.contains( '[INFO] Resolved scm developer connection for org.apache.maven.shared.project.utils.it.multimodule-flat:multimodule:pom:0.0.1-SNAPSHOT: scm:local:/smultimodule/project' )
+
+assert buildLog.text.contains( '[INFO] Resolved scm connection for org.apache.maven.shared.project.utils.it.multimodule-flat:module:pom:0.0.1-SNAPSHOT: scm:local:/multimodule/module' )
+assert buildLog.text.contains( '[INFO] Resolved scm developer connection for org.apache.maven.shared.project.utils.it.multimodule-flat:module:pom:0.0.1-SNAPSHOT: scm:local:/smultimodule/module' )
+
+assert buildLog.text.contains( '[INFO] Resolved scm connection for org.apache.maven.shared.project.utils.it.multimodule-flat:submodule:pom:0.0.1-SNAPSHOT: scm:local:/multimodule/submodule' )
+assert buildLog.text.contains( '[INFO] Resolved scm developer connection for org.apache.maven.shared.project.utils.it.multimodule-flat:submodule:pom:0.0.1-SNAPSHOT: scm:local:/smultimodule/submodule' )