From d8aaa44931bb2685d173d33989194ad9f1ba1f67 Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 11 Dec 2017 12:46:15 +0900 Subject: [PATCH] project shared --- .idea/codeStyles/Project.xml | 28 ++ .idea/compiler.xml | 19 + .idea/dbnavigator.xml | 453 ++++++++++++++++++ .idea/encodings.xml | 6 + ...__ch_qos_logback_logback_classic_1_2_3.xml | 13 + ...ven__ch_qos_logback_logback_core_1_2_3.xml | 13 + .idea/libraries/Maven__junit_junit_4_12.xml | 13 + .../Maven__org_hamcrest_hamcrest_core_1_3.xml | 13 + .../Maven__org_slf4j_slf4j_api_1_7_25.xml | 13 + .idea/misc.xml | 13 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + maven_archetype_spring_boot.iml | 20 + pom.xml | 55 +++ .../META-INF/maven/archetype-metadata.xml | 32 ++ .../resources/archetype-resources/.gitignore | 59 +++ .../resources/archetype-resources/pom.xml | 36 ++ .../__artifactId__/Application.java | 13 + .../src/main/resources/application.properties | 0 .../__artifactId__/ApplicationTests.java | 24 + .../archetype-resources/src/test/resources/_ | 0 21 files changed, 837 insertions(+) create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/compiler.xml create mode 100644 .idea/dbnavigator.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml create mode 100644 .idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml create mode 100644 .idea/libraries/Maven__junit_junit_4_12.xml create mode 100644 .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml create mode 100644 .idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 maven_archetype_spring_boot.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/.gitignore create mode 100644 src/main/resources/archetype-resources/pom.xml create mode 100644 src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/__artifactId__/Application.java create mode 100644 src/main/resources/archetype-resources/src/main/resources/application.properties create mode 100644 src/main/resources/archetype-resources/src/test/java/__packageInPathFormat__/__artifactId__/ApplicationTests.java create mode 100644 src/main/resources/archetype-resources/src/test/resources/_ diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..565c347 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..8543495 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/dbnavigator.xml b/.idea/dbnavigator.xml new file mode 100644 index 0000000..67ce0f0 --- /dev/null +++ b/.idea/dbnavigator.xml @@ -0,0 +1,453 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..b26911b --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml new file mode 100644 index 0000000..6fec8f4 --- /dev/null +++ b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml new file mode 100644 index 0000000..9eb8596 --- /dev/null +++ b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__junit_junit_4_12.xml b/.idea/libraries/Maven__junit_junit_4_12.xml new file mode 100644 index 0000000..d411041 --- /dev/null +++ b/.idea/libraries/Maven__junit_junit_4_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml new file mode 100644 index 0000000..f58bbc1 --- /dev/null +++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml new file mode 100644 index 0000000..20e8163 --- /dev/null +++ b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..e8942bd --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..077175f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/maven_archetype_spring_boot.iml b/maven_archetype_spring_boot.iml new file mode 100644 index 0000000..9133397 --- /dev/null +++ b/maven_archetype_spring_boot.iml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..0dc3f91 --- /dev/null +++ b/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + + + com.loafle + maven_parent_jar + 1.0.0-RELEASE + + + + com.loafle + maven_archetype_spring_boot + 1.5.9-RELEASE + maven-archetype + + + UTF-8 + 3.0.1 + 3.0.1 + 3.0.2 + + + + + + org.apache.maven.archetype + archetype-packaging + ${maven.archetype-packaging.version} + + + + + + + org.apache.maven.plugins + maven-archetype-plugin + ${maven.maven-archetype-plugin.version} + true + + + org.apache.maven.plugins + maven-resources-plugin + ${maven.maven-resources-plugin.version} + + 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..5eaefa0 --- /dev/null +++ b/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,32 @@ + + + + + + + .gitignore + + + + src/main/java + + **/*.java + + + + src/main/resources + + + src/test/java + + **/*.java + + + + src/test/resources + + + diff --git a/src/main/resources/archetype-resources/.gitignore b/src/main/resources/archetype-resources/.gitignore new file mode 100644 index 0000000..4c59dc4 --- /dev/null +++ b/src/main/resources/archetype-resources/.gitignore @@ -0,0 +1,59 @@ +# Mac +._* +.DS_Store +.Spotlight-V100 +.Trashes + +# Windows +Thumbs.db +Desktop.ini + +# Eclipse +.buildpath +.classpath +*.launch +.loadpath +.metadata +.project +*.pydevproject +.settings/ +.springBeans + +# Intellij +.idea/ +*.iml +*.iws +*.ipr +*.ids +*.orig + +# Node +/**/node/ +/**/node_modules/ + +# SASS +/**/.sass-cache/ + +# Bower +/**/vendor/ + +# Maven +log/ +target/ + +# Package Files +*.jar +*.war +*.ear + +# Java +*.class + +# Directories +/build/ +/bin/ +/out/ +/deploy/ + +# Logs +*.log \ No newline at end of file diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000..409fea5 --- /dev/null +++ b/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,36 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 1.5.9.RELEASE + + + + ${groupId} + ${artifactId} + ${version} + jar + + ${groupId}.${artifactId} + ${artifactId} project for Spring Boot + + + 3.0.0 + + + + 1.8 + UTF-8 + UTF-8 + ${java.version} + ${java.version} + + + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/__artifactId__/Application.java b/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/__artifactId__/Application.java new file mode 100644 index 0000000..26ee376 --- /dev/null +++ b/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/__artifactId__/Application.java @@ -0,0 +1,13 @@ +package ${package}.${artifactId}; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Application { + + public static void main(String[] args) { + SpringApplication.run(Application.class, args); + } + +} diff --git a/src/main/resources/archetype-resources/src/main/resources/application.properties b/src/main/resources/archetype-resources/src/main/resources/application.properties new file mode 100644 index 0000000..e69de29 diff --git a/src/main/resources/archetype-resources/src/test/java/__packageInPathFormat__/__artifactId__/ApplicationTests.java b/src/main/resources/archetype-resources/src/test/java/__packageInPathFormat__/__artifactId__/ApplicationTests.java new file mode 100644 index 0000000..af99444 --- /dev/null +++ b/src/main/resources/archetype-resources/src/test/java/__packageInPathFormat__/__artifactId__/ApplicationTests.java @@ -0,0 +1,24 @@ +package ${package}.${artifactId}; + +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.SpringApplicationConfiguration; +import org.springframework.context.ApplicationContext; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.web.context.WebApplicationContext; + +@RunWith(SpringJUnit4ClassRunner.class) +@SpringApplicationConfiguration(classes = Application.class) +public class ApplicationTests { + + @Autowired + private ApplicationContext applicationContext; + + @Test + public void testStart() throws Exception { + + } + +} \ No newline at end of file diff --git a/src/main/resources/archetype-resources/src/test/resources/_ b/src/main/resources/archetype-resources/src/test/resources/_ new file mode 100644 index 0000000..e69de29