From b11e827470e584df2df44ddc6fa29098c1ce05e3 Mon Sep 17 00:00:00 2001 From: bdemers Date: Sun, 1 Feb 2015 13:46:02 -0500 Subject: [PATCH] Add quick multi-module for testing --- .../src/it/multi-module/level-one/pom.xml | 26 +++++++++++ .../src/main/java/com/example/App.java | 13 ++++++ .../src/test/java/com/example/AppTest.java | 38 ++++++++++++++++ .../src/it/multi-module/pom.xml | 44 +++++++++++++++++++ .../sub-parent/level-three/pom.xml | 26 +++++++++++ .../src/main/java/com/example/App.java | 13 ++++++ .../src/test/java/com/example/AppTest.java | 38 ++++++++++++++++ .../src/it/multi-module/sub-parent/pom.xml | 17 +++++++ 8 files changed, 215 insertions(+) create mode 100644 maven-external-version-plugin/src/it/multi-module/level-one/pom.xml create mode 100644 maven-external-version-plugin/src/it/multi-module/level-one/src/main/java/com/example/App.java create mode 100644 maven-external-version-plugin/src/it/multi-module/level-one/src/test/java/com/example/AppTest.java create mode 100644 maven-external-version-plugin/src/it/multi-module/pom.xml create mode 100644 maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/pom.xml create mode 100644 maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/src/main/java/com/example/App.java create mode 100644 maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/src/test/java/com/example/AppTest.java create mode 100644 maven-external-version-plugin/src/it/multi-module/sub-parent/pom.xml diff --git a/maven-external-version-plugin/src/it/multi-module/level-one/pom.xml b/maven-external-version-plugin/src/it/multi-module/level-one/pom.xml new file mode 100644 index 0000000..5fc7a49 --- /dev/null +++ b/maven-external-version-plugin/src/it/multi-module/level-one/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + com.example + multi-module + 1.0-SNAPSHOT + + com.example + level-one + 1.0-SNAPSHOT + level-one + http://maven.apache.org + + UTF-8 + + + + junit + junit + 3.8.1 + test + + + diff --git a/maven-external-version-plugin/src/it/multi-module/level-one/src/main/java/com/example/App.java b/maven-external-version-plugin/src/it/multi-module/level-one/src/main/java/com/example/App.java new file mode 100644 index 0000000..b6bcb1d --- /dev/null +++ b/maven-external-version-plugin/src/it/multi-module/level-one/src/main/java/com/example/App.java @@ -0,0 +1,13 @@ +package com.example; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/maven-external-version-plugin/src/it/multi-module/level-one/src/test/java/com/example/AppTest.java b/maven-external-version-plugin/src/it/multi-module/level-one/src/test/java/com/example/AppTest.java new file mode 100644 index 0000000..474710c --- /dev/null +++ b/maven-external-version-plugin/src/it/multi-module/level-one/src/test/java/com/example/AppTest.java @@ -0,0 +1,38 @@ +package com.example; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} diff --git a/maven-external-version-plugin/src/it/multi-module/pom.xml b/maven-external-version-plugin/src/it/multi-module/pom.xml new file mode 100644 index 0000000..ae37cb9 --- /dev/null +++ b/maven-external-version-plugin/src/it/multi-module/pom.xml @@ -0,0 +1,44 @@ + + + 4.0.0 + com.example + multi-module + 1.0-SNAPSHOT + pom + multi-module + + + level-one + sub-parent + + + + + + + maven-jar-plugin + 2.5 + + + maven-install-plugin + 2.5.2 + + + org.apache.maven.plugins + maven-external-version-plugin + 0.1.0-SNAPSHOT + true + + + + + + + + + + + + + + \ No newline at end of file diff --git a/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/pom.xml b/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/pom.xml new file mode 100644 index 0000000..324f715 --- /dev/null +++ b/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + com.example + sub-parent + 1.0-SNAPSHOT + + com.example + level-three + 1.0-SNAPSHOT + level-three + http://maven.apache.org + + UTF-8 + + + + junit + junit + 3.8.1 + test + + + diff --git a/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/src/main/java/com/example/App.java b/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/src/main/java/com/example/App.java new file mode 100644 index 0000000..b6bcb1d --- /dev/null +++ b/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/src/main/java/com/example/App.java @@ -0,0 +1,13 @@ +package com.example; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/src/test/java/com/example/AppTest.java b/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/src/test/java/com/example/AppTest.java new file mode 100644 index 0000000..474710c --- /dev/null +++ b/maven-external-version-plugin/src/it/multi-module/sub-parent/level-three/src/test/java/com/example/AppTest.java @@ -0,0 +1,38 @@ +package com.example; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} diff --git a/maven-external-version-plugin/src/it/multi-module/sub-parent/pom.xml b/maven-external-version-plugin/src/it/multi-module/sub-parent/pom.xml new file mode 100644 index 0000000..94c54b5 --- /dev/null +++ b/maven-external-version-plugin/src/it/multi-module/sub-parent/pom.xml @@ -0,0 +1,17 @@ + + + 4.0.0 + + multi-module + com.example + 1.0-SNAPSHOT + + com.example + sub-parent + 1.0-SNAPSHOT + pom + sub-parent + + level-three + + \ No newline at end of file