From e1a2cf09323e65ce6cb1958b2c5c7e49b92beead Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 5 Apr 2017 19:54:03 +0900 Subject: [PATCH] shared maven_archetype_java project --- maven_archetype_java.iml | 18 +++++++ pom.xml | 48 +++++++++++++++++++ .../META-INF/maven/archetype-metadata.xml | 26 ++++++++++ .../resources/archetype-resources/pom.xml | 21 ++++++++ .../src/main/java/App.java | 7 +++ .../archetype-resources/src/main/resources/_ | 0 .../src/test/java/AppTest.java | 11 +++++ .../src/test/resources/logback.xml | 17 +++++++ 8 files changed, 148 insertions(+) create mode 100644 maven_archetype_java.iml create mode 100644 pom.xml create mode 100644 src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 src/main/resources/archetype-resources/pom.xml create mode 100644 src/main/resources/archetype-resources/src/main/java/App.java create mode 100644 src/main/resources/archetype-resources/src/main/resources/_ create mode 100644 src/main/resources/archetype-resources/src/test/java/AppTest.java create mode 100644 src/main/resources/archetype-resources/src/test/resources/logback.xml diff --git a/maven_archetype_java.iml b/maven_archetype_java.iml new file mode 100644 index 0000000..29e0753 --- /dev/null +++ b/maven_archetype_java.iml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..60d68b4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + + + com.loafle + maven_parent_jar + 1.0.0-RELEASE + + + com.loafle + maven_archetype_java + 1.0.0-RELEASE + maven_archetype_java + maven-archetype + + + + + org.apache.maven.archetype + archetype-packaging + 3.0.0 + + + + + + + org.apache.maven.plugins + maven-archetype-plugin + 3.0.0 + true + + + org.apache.maven.plugins + maven-resources-plugin + 3.0.2 + + true + + + + + + + \ No newline at end of file diff --git a/src/main/resources/META-INF/maven/archetype-metadata.xml b/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000..24540f3 --- /dev/null +++ b/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,26 @@ + + + + + src/main/java + + **/*.java + + + + src/main/resources + + + src/test/java + + **/*.java + + + + src/test/resources + + + diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000..33f4ad2 --- /dev/null +++ b/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + + com.loafle + maven_parent_jar + 1.0.0-RELEASE + + + ${groupId} + ${artifactId} + jar + ${version} + ${groupId}.${artifactId} + + + + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/src/main/java/App.java b/src/main/resources/archetype-resources/src/main/java/App.java new file mode 100644 index 0000000..cfc0e5e --- /dev/null +++ b/src/main/resources/archetype-resources/src/main/java/App.java @@ -0,0 +1,7 @@ +package ${package}; + +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} \ No newline at end of file diff --git a/src/main/resources/archetype-resources/src/main/resources/_ b/src/main/resources/archetype-resources/src/main/resources/_ new file mode 100644 index 0000000..e69de29 diff --git a/src/main/resources/archetype-resources/src/test/java/AppTest.java b/src/main/resources/archetype-resources/src/test/java/AppTest.java new file mode 100644 index 0000000..9436d75 --- /dev/null +++ b/src/main/resources/archetype-resources/src/test/java/AppTest.java @@ -0,0 +1,11 @@ + +package ${package}; +import static org.junit.Assert.*; +import org.junit.Test; + +public class AppTest { + @Test + public void testSum() { + fail("Not yet implemented"); + } +} \ No newline at end of file diff --git a/src/main/resources/archetype-resources/src/test/resources/logback.xml b/src/main/resources/archetype-resources/src/test/resources/logback.xml new file mode 100644 index 0000000..e1df174 --- /dev/null +++ b/src/main/resources/archetype-resources/src/test/resources/logback.xml @@ -0,0 +1,17 @@ + + + ${artifactId} + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{32} - %msg%n + + + + + + + + + \ No newline at end of file