aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-projects/maven/modules-declaration
diff options
context:
space:
mode:
Diffstat (limited to 'it/it-projects/maven/modules-declaration')
-rw-r--r--it/it-projects/maven/modules-declaration/module_a/pom.xml14
-rw-r--r--it/it-projects/maven/modules-declaration/module_a/src/main/java/HelloA.java2
-rw-r--r--it/it-projects/maven/modules-declaration/module_b/pom.xml14
-rw-r--r--it/it-projects/maven/modules-declaration/module_b/src/main/java/HelloB.java2
-rw-r--r--it/it-projects/maven/modules-declaration/module_c/pom.xml14
-rw-r--r--it/it-projects/maven/modules-declaration/module_c/src/main/java/HelloC.java2
-rw-r--r--it/it-projects/maven/modules-declaration/module_d/mypom.xml14
-rw-r--r--it/it-projects/maven/modules-declaration/module_d/src/main/java/HelloD.java2
-rw-r--r--it/it-projects/maven/modules-declaration/module_e/mypom14
-rw-r--r--it/it-projects/maven/modules-declaration/module_e/src/main/java/HelloE.java2
-rw-r--r--it/it-projects/maven/modules-declaration/pom.xml27
11 files changed, 107 insertions, 0 deletions
diff --git a/it/it-projects/maven/modules-declaration/module_a/pom.xml b/it/it-projects/maven/modules-declaration/module_a/pom.xml
new file mode 100644
index 00000000000..73191c11f29
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_a/pom.xml
@@ -0,0 +1,14 @@
+<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.sonar.tests.modules-declaration</groupId>
+ <artifactId>root</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>module_a</artifactId>
+
+ <name>Module A</name>
+
+</project>
diff --git a/it/it-projects/maven/modules-declaration/module_a/src/main/java/HelloA.java b/it/it-projects/maven/modules-declaration/module_a/src/main/java/HelloA.java
new file mode 100644
index 00000000000..ac7c3f94636
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_a/src/main/java/HelloA.java
@@ -0,0 +1,2 @@
+public class HelloA {
+}
diff --git a/it/it-projects/maven/modules-declaration/module_b/pom.xml b/it/it-projects/maven/modules-declaration/module_b/pom.xml
new file mode 100644
index 00000000000..b31c90d4731
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_b/pom.xml
@@ -0,0 +1,14 @@
+<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.sonar.tests.modules-declaration</groupId>
+ <artifactId>root</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>module_b</artifactId>
+
+ <name>Module B</name>
+
+</project>
diff --git a/it/it-projects/maven/modules-declaration/module_b/src/main/java/HelloB.java b/it/it-projects/maven/modules-declaration/module_b/src/main/java/HelloB.java
new file mode 100644
index 00000000000..4ee68d3ed39
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_b/src/main/java/HelloB.java
@@ -0,0 +1,2 @@
+public class HelloB {
+}
diff --git a/it/it-projects/maven/modules-declaration/module_c/pom.xml b/it/it-projects/maven/modules-declaration/module_c/pom.xml
new file mode 100644
index 00000000000..ab027ada34b
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_c/pom.xml
@@ -0,0 +1,14 @@
+<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.sonar.tests.modules-declaration</groupId>
+ <artifactId>root</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>module_c</artifactId>
+
+ <name>Module C</name>
+
+</project>
diff --git a/it/it-projects/maven/modules-declaration/module_c/src/main/java/HelloC.java b/it/it-projects/maven/modules-declaration/module_c/src/main/java/HelloC.java
new file mode 100644
index 00000000000..242abb3a77f
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_c/src/main/java/HelloC.java
@@ -0,0 +1,2 @@
+public class HelloC {
+}
diff --git a/it/it-projects/maven/modules-declaration/module_d/mypom.xml b/it/it-projects/maven/modules-declaration/module_d/mypom.xml
new file mode 100644
index 00000000000..13a86363e0e
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_d/mypom.xml
@@ -0,0 +1,14 @@
+<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.sonar.tests.modules-declaration</groupId>
+ <artifactId>root</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>module_d</artifactId>
+
+ <name>Module D</name>
+
+</project>
diff --git a/it/it-projects/maven/modules-declaration/module_d/src/main/java/HelloD.java b/it/it-projects/maven/modules-declaration/module_d/src/main/java/HelloD.java
new file mode 100644
index 00000000000..b01a5d8d3ba
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_d/src/main/java/HelloD.java
@@ -0,0 +1,2 @@
+public class HelloD {
+}
diff --git a/it/it-projects/maven/modules-declaration/module_e/mypom b/it/it-projects/maven/modules-declaration/module_e/mypom
new file mode 100644
index 00000000000..de92d8431ec
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_e/mypom
@@ -0,0 +1,14 @@
+<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.sonar.tests.modules-declaration</groupId>
+ <artifactId>root</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>module_e</artifactId>
+
+ <name>Module E</name>
+
+</project>
diff --git a/it/it-projects/maven/modules-declaration/module_e/src/main/java/HelloE.java b/it/it-projects/maven/modules-declaration/module_e/src/main/java/HelloE.java
new file mode 100644
index 00000000000..041f6e8984b
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/module_e/src/main/java/HelloE.java
@@ -0,0 +1,2 @@
+public class HelloE {
+}
diff --git a/it/it-projects/maven/modules-declaration/pom.xml b/it/it-projects/maven/modules-declaration/pom.xml
new file mode 100644
index 00000000000..0d4eedf4e96
--- /dev/null
+++ b/it/it-projects/maven/modules-declaration/pom.xml
@@ -0,0 +1,27 @@
+<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.sonar.tests.modules-declaration</groupId>
+ <artifactId>root</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <name>Root</name>
+
+ <modules>
+ <!-- Standard/normal way - directory name -->
+ <module>module_a</module>
+
+ <!-- Just in case - trailing slash in a directory name -->
+ <module>module_b/</module>
+
+ <!-- File with usual name -->
+ <module>module_c/pom.xml</module>
+
+ <!-- Strange use case, but seems valid (tested with Maven 2.0.11, 2.2.1 and 3.0.3) - file with unusual name -->
+ <module>module_d/mypom.xml</module>
+ <module>module_e/mypom</module>
+ </modules>
+
+</project>