diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/MapSort/.gitignore b/MapSort/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/MapSort/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/MapSort/pom.xml b/MapSort/pom.xml new file mode 100644 index 00000000..bdb9ad3f --- /dev/null +++ b/MapSort/pom.xml @@ -0,0 +1,22 @@ + + 4.0.0 + + + com.hmkcode + java + 1.0 + + + MapSort + 1.0-SNAPSHOT + jar + + MapSort + http://maven.apache.org + + + UTF-8 + + + diff --git a/castor-xml-object/.gitignore b/castor-xml-object/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/castor-xml-object/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/castor-xml-object/pom.xml b/castor-xml-object/pom.xml index 85caf8a0..165d420d 100644 --- a/castor-xml-object/pom.xml +++ b/castor-xml-object/pom.xml @@ -1,31 +1,36 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - castor-xml-object - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - castor-xml-object - http://maven.apache.org + castor-xml-object + 1.0-SNAPSHOT + jar - - UTF-8 - + castor-xml-object + http://maven.apache.org - - - - org.codehaus.castor - castor - 1.2 - - - xerces - xercesImpl - 2.8.1 - - - + + UTF-8 + + + + + + org.codehaus.castor + castor + 1.2 + + + xerces + xercesImpl + 2.8.1 + + + diff --git a/gson-json-java/.gitignore b/gson-json-java/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/gson-json-java/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/gson-json-java/pom.xml b/gson-json-java/pom.xml index 0b82328b..09efa6a2 100644 --- a/gson-json-java/pom.xml +++ b/gson-json-java/pom.xml @@ -1,24 +1,29 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - gson-json-java - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - gson-json-java - http://maven.apache.org + gson-json-java + 1.0-SNAPSHOT + jar - - UTF-8 - + gson-json-java + http://maven.apache.org - - - com.google.code.gson - gson - 2.2.4 - - + + UTF-8 + + + + + com.google.code.gson + gson + 2.2.4 + + diff --git a/itext-create-pdf/.gitignore b/itext-create-pdf/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/itext-create-pdf/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/itext-create-pdf/pom.xml b/itext-create-pdf/pom.xml index 62ed8fd2..d32abeae 100644 --- a/itext-create-pdf/pom.xml +++ b/itext-create-pdf/pom.xml @@ -1,24 +1,29 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - itext-create-pdf - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - itext-create-pdf - http://maven.apache.org + itext-create-pdf + 1.0-SNAPSHOT + jar - - UTF-8 - + itext-create-pdf + http://maven.apache.org - - - com.itextpdf - itextpdf - 5.4.2 - - + + UTF-8 + + + + + com.itextpdf + itextpdf + 5.4.2 + + diff --git a/itext-java-html-pdf/.gitignore b/itext-java-html-pdf/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/itext-java-html-pdf/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/itext-java-html-pdf/pom.xml b/itext-java-html-pdf/pom.xml index d764eeb2..b5a31ebf 100644 --- a/itext-java-html-pdf/pom.xml +++ b/itext-java-html-pdf/pom.xml @@ -1,29 +1,34 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - itext-java-html-pdf - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - itext-java-html-pdf - http://maven.apache.org + itext-java-html-pdf + 1.0-SNAPSHOT + jar - - UTF-8 - + itext-java-html-pdf + http://maven.apache.org - - - com.itextpdf - itextpdf - 5.4.2 - - - com.itextpdf.tool - xmlworker - 5.4.1 - - + + UTF-8 + + + + + com.itextpdf + itextpdf + 5.4.2 + + + com.itextpdf.tool + xmlworker + 5.4.1 + + diff --git a/itext-java-pdf-table/.gitignore b/itext-java-pdf-table/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/itext-java-pdf-table/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/itext-java-pdf-table/pom.xml b/itext-java-pdf-table/pom.xml index 543d20c0..218dee60 100644 --- a/itext-java-pdf-table/pom.xml +++ b/itext-java-pdf-table/pom.xml @@ -1,29 +1,34 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - itext-java-pdf-table - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - itext-java-pdf-table - http://maven.apache.org + itext-java-pdf-table + 1.0-SNAPSHOT + jar - - UTF-8 - + itext-java-pdf-table + http://maven.apache.org - - - com.itextpdf - itextpdf - 5.4.2 - - - com.itextpdf.tool - xmlworker - 5.4.1 - - + + UTF-8 + + + + + com.itextpdf + itextpdf + 5.4.2 + + + com.itextpdf.tool + xmlworker + 5.4.1 + + diff --git a/jackson-json-java/.gitignore b/jackson-json-java/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/jackson-json-java/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/jackson-json-java/pom.xml b/jackson-json-java/pom.xml index dc616dfe..1e1df031 100644 --- a/jackson-json-java/pom.xml +++ b/jackson-json-java/pom.xml @@ -1,34 +1,39 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - jackson-json-java - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - jackson-json-java - http://maven.apache.org + jackson-json-java + 1.0-SNAPSHOT + jar - - UTF-8 - + jackson-json-java + http://maven.apache.org - - - com.fasterxml.jackson.core - jackson-core - 2.2.2 - - - com.fasterxml.jackson.core - jackson-databind - 2.2.2 - - - com.fasterxml.jackson.core - jackson-annotations - 2.2.2 - - + + UTF-8 + + + + + com.fasterxml.jackson.core + jackson-core + 2.2.2 + + + com.fasterxml.jackson.core + jackson-databind + 2.2.2 + + + com.fasterxml.jackson.core + jackson-annotations + 2.2.2 + + diff --git a/java-async-servlet/.gitignore b/java-async-servlet/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/java-async-servlet/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/java-async-servlet/pom.xml b/java-async-servlet/pom.xml index e98d4c48..883b475e 100644 --- a/java-async-servlet/pom.xml +++ b/java-async-servlet/pom.xml @@ -1,37 +1,42 @@ - 4.0.0 - - com.hmkcode - java-async-servlet - 1.0-SNAPSHOT - war - - java-async-servlet - http://maven.apache.org - - - UTF-8 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - - - - - - java-async-servlet - - - org.eclipse.jetty - jetty-maven-plugin - 9.0.0.M5 - - - - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + + + com.hmkcode + java + 1.0 + + + java-async-servlet + 1.0-SNAPSHOT + war + + java-async-servlet + http://maven.apache.org + + + UTF-8 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + + + + + + java-async-servlet + + + org.eclipse.jetty + jetty-maven-plugin + 9.0.0.M5 + + + + diff --git a/java-combinations/.gitignore b/java-combinations/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/java-combinations/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/java-combinations/pom.xml b/java-combinations/pom.xml new file mode 100644 index 00000000..9a8717fe --- /dev/null +++ b/java-combinations/pom.xml @@ -0,0 +1,22 @@ + + 4.0.0 + + + com.hmkcode + java + 1.0 + + + java-combinations + 1.0-SNAPSHOT + jar + + java-combinations + http://maven.apache.org + + + UTF-8 + + + diff --git a/java-combinations/Combination.java b/java-combinations/src/main/java/com/hmkcode/baloot/Combination.java similarity index 100% rename from java-combinations/Combination.java rename to java-combinations/src/main/java/com/hmkcode/baloot/Combination.java diff --git a/java-excel-poi/.gitignore b/java-excel-poi/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/java-excel-poi/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/java-excel-poi/pom.xml b/java-excel-poi/pom.xml index 33c58ad3..c65f1e79 100644 --- a/java-excel-poi/pom.xml +++ b/java-excel-poi/pom.xml @@ -1,29 +1,34 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - java-excel-poi - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - java-excel-poi - http://maven.apache.org + java-excel-poi + 1.0-SNAPSHOT + jar - - UTF-8 - + java-excel-poi + http://maven.apache.org - - - org.apache.poi - poi - 3.9 - - - org.apache.poi - poi-ooxml - 3.9 - - + + UTF-8 + + + + + org.apache.poi + poi + 3.9 + + + org.apache.poi + poi-ooxml + 3.9 + + diff --git a/java-inputstream-string/.gitignore b/java-inputstream-string/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/java-inputstream-string/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/java-inputstream-string/pom.xml b/java-inputstream-string/pom.xml index fe17beb1..1e1ab2d1 100644 --- a/java-inputstream-string/pom.xml +++ b/java-inputstream-string/pom.xml @@ -1,29 +1,34 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - java-inputstream-string - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - java-inputstream-string - http://maven.apache.org + java-inputstream-string + 1.0-SNAPSHOT + jar - - UTF-8 - + java-inputstream-string + http://maven.apache.org - - - commons-io - commons-io - 2.4 - - - com.google.guava - guava - 14.0.1 - - + + UTF-8 + + + + + commons-io + commons-io + 2.4 + + + com.google.guava + guava + 14.0.1 + + diff --git a/java-list-map/.gitignore b/java-list-map/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/java-list-map/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/java-list-map/pom.xml b/java-list-map/pom.xml index e5be4e9b..8b307b9b 100644 --- a/java-list-map/pom.xml +++ b/java-list-map/pom.xml @@ -1,25 +1,30 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - java-list-map - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - java-list-map - http://maven.apache.org + java-list-map + 1.0-SNAPSHOT + jar - - UTF-8 - + java-list-map + http://maven.apache.org - - - junit - junit - 3.8.1 - test - - + + UTF-8 + + + + + junit + junit + 3.8.1 + test + + diff --git a/java-servlet-json/.gitignore b/java-servlet-json/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/java-servlet-json/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/java-servlet-json/pom.xml b/java-servlet-json/pom.xml index dd7dc447..7a042385 100644 --- a/java-servlet-json/pom.xml +++ b/java-servlet-json/pom.xml @@ -1,50 +1,55 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - java-servlet-json - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - java-servlet-json - http://maven.apache.org + java-servlet-json + 1.0-SNAPSHOT + jar - - UTF-8 - + java-servlet-json + http://maven.apache.org - - - javax.servlet - javax.servlet-api - 3.1.0 - - - com.fasterxml.jackson.core - jackson-core - 2.2.2 - - - com.fasterxml.jackson.core - jackson-databind - 2.2.2 - - - com.fasterxml.jackson.core - jackson-annotations - 2.2.2 - - - - - java-servlet-json - - - org.eclipse.jetty - jetty-maven-plugin - 9.0.4.v20130625 - - - + + UTF-8 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + + + com.fasterxml.jackson.core + jackson-core + 2.2.2 + + + com.fasterxml.jackson.core + jackson-databind + 2.2.2 + + + com.fasterxml.jackson.core + jackson-annotations + 2.2.2 + + + + + java-servlet-json + + + org.eclipse.jetty + jetty-maven-plugin + 9.0.4.v20130625 + + + diff --git a/java-simple-text-file-reader/.gitignore b/java-simple-text-file-reader/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/java-simple-text-file-reader/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/java-simple-text-file-reader/pom.xml b/java-simple-text-file-reader/pom.xml new file mode 100644 index 00000000..f6aa4526 --- /dev/null +++ b/java-simple-text-file-reader/pom.xml @@ -0,0 +1,22 @@ + + 4.0.0 + + + com.hmkcode + java + 1.0 + + + java-simple-text-file-reader + 1.0-SNAPSHOT + jar + + java-simple-text-file-reader + http://maven.apache.org + + + UTF-8 + + + diff --git a/java-unzip/.gitignore b/java-unzip/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/java-unzip/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/java-unzip/pom.xml b/java-unzip/pom.xml new file mode 100644 index 00000000..a1e24d79 --- /dev/null +++ b/java-unzip/pom.xml @@ -0,0 +1,22 @@ + + 4.0.0 + + + com.hmkcode + java + 1.0 + + + java-unzip + 1.0-SNAPSHOT + jar + + java-unzip + http://maven.apache.org + + + UTF-8 + + + diff --git a/junit-exception/.gitignore b/junit-exception/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/junit-exception/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/junit-exception/pom.xml b/junit-exception/pom.xml index a6588dd5..73be2ad2 100644 --- a/junit-exception/pom.xml +++ b/junit-exception/pom.xml @@ -2,7 +2,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.hmkcode + + com.hmkcode + java + 1.0 + + junit-exception 1.0-SNAPSHOT jar diff --git a/mybatis-insert-generatedkey/.gitignore b/mybatis-insert-generatedkey/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/mybatis-insert-generatedkey/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/mybatis-insert-generatedkey/pom.xml b/mybatis-insert-generatedkey/pom.xml index 2240ebf5..35fe7c8e 100644 --- a/mybatis-insert-generatedkey/pom.xml +++ b/mybatis-insert-generatedkey/pom.xml @@ -1,150 +1,155 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - mybatis-insert-generatedkey - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - mybatis-insert-generatedkey - http://maven.apache.org + mybatis-insert-generatedkey + 1.0-SNAPSHOT + jar - - UTF-8 - 3.1.0.RELEASE - + mybatis-insert-generatedkey + http://maven.apache.org - - - com.h2database - h2 - 1.3.171 - - - junit - junit - 4.11 - test - - - org.mybatis - mybatis - 3.2.1 - - - org.mybatis - mybatis-spring - 1.2.0 - - - org.springframework - spring-core - ${org.springframework.version} - - - org.springframework - spring-expression - ${org.springframework.version} - - - org.springframework - spring-beans - ${org.springframework.version} - - - org.springframework - spring-aop - ${org.springframework.version} - - - org.springframework - spring-context - ${org.springframework.version} - - - org.springframework - spring-context-support - ${org.springframework.version} - - - org.springframework - spring-tx - ${org.springframework.version} - - - org.springframework - spring-jdbc - ${org.springframework.version} - - - org.springframework - spring-orm - ${org.springframework.version} - - - org.springframework - spring-oxm - ${org.springframework.version} - - - org.springframework - spring-web - ${org.springframework.version} - - - org.springframework - spring-webmvc - ${org.springframework.version} - - - org.springframework - spring-webmvc-portlet - ${org.springframework.version} - - - org.springframework - spring-asm - ${org.springframework.version} - - - org.springframework - spring-context-support - ${org.springframework.version} - - - org.springframework - spring-test - ${org.springframework.version} - test - - - - - - maven-compiler-plugin - 2.0.2 - - 1.6 - 1.6 - - - - org.codehaus.mojo - exec-maven-plugin - - - my-execution - compile - - java - - - - - com.hmkcode.spring.mybatis.App - - - - + + UTF-8 + 3.1.0.RELEASE + + + + + com.h2database + h2 + 1.3.171 + + + junit + junit + 4.11 + test + + + org.mybatis + mybatis + 3.2.1 + + + org.mybatis + mybatis-spring + 1.2.0 + + + org.springframework + spring-core + ${org.springframework.version} + + + org.springframework + spring-expression + ${org.springframework.version} + + + org.springframework + spring-beans + ${org.springframework.version} + + + org.springframework + spring-aop + ${org.springframework.version} + + + org.springframework + spring-context + ${org.springframework.version} + + + org.springframework + spring-context-support + ${org.springframework.version} + + + org.springframework + spring-tx + ${org.springframework.version} + + + org.springframework + spring-jdbc + ${org.springframework.version} + + + org.springframework + spring-orm + ${org.springframework.version} + + + org.springframework + spring-oxm + ${org.springframework.version} + + + org.springframework + spring-web + ${org.springframework.version} + + + org.springframework + spring-webmvc + ${org.springframework.version} + + + org.springframework + spring-webmvc-portlet + ${org.springframework.version} + + + org.springframework + spring-asm + ${org.springframework.version} + + + org.springframework + spring-context-support + ${org.springframework.version} + + + org.springframework + spring-test + ${org.springframework.version} + test + + + + + + maven-compiler-plugin + 2.0.2 + + 1.6 + 1.6 + + + + org.codehaus.mojo + exec-maven-plugin + + + my-execution + compile + + java + + + + + com.hmkcode.spring.mybatis.App + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..83e4db6e --- /dev/null +++ b/pom.xml @@ -0,0 +1,51 @@ + + + 4.0.0 + com.hmkcode + 1.0 + java + pom + Java + + + castor-xml-object + gson-json-java + itext-create-pdf + itext-java-html-pdf + itext-java-pdf-table + jackson-json-java + java-async-servlet + java-combinations + java-excel-poi + java-inputstream-string + java-list-map + java-servlet-json + java-simple-text-file-reader + java-unzip + junit-exception + MapSort + mybatis-insert-generatedkey + servlet-file-upload + simple-junit + webservlet-annotation + websocket-java-api + xstream-java-xml + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.6 + 1.6 + + + + + + + \ No newline at end of file diff --git a/servlet-file-upload/.gitignore b/servlet-file-upload/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/servlet-file-upload/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/servlet-file-upload/pom.xml b/servlet-file-upload/pom.xml index 8b5ac147..004938db 100644 --- a/servlet-file-upload/pom.xml +++ b/servlet-file-upload/pom.xml @@ -1,60 +1,65 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - servlet-file-upload - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - servlet-file-upload - http://maven.apache.org + servlet-file-upload + 1.0-SNAPSHOT + jar - - UTF-8 - + servlet-file-upload + http://maven.apache.org - - - javax.servlet - javax.servlet-api - 3.1.0 - - - commons-fileupload - commons-fileupload - 1.3 - - - commons-io - commons-io - 2.4 - - - com.fasterxml.jackson.core - jackson-core - 2.2.2 - - - com.fasterxml.jackson.core - jackson-databind - 2.2.2 - - - com.fasterxml.jackson.core - jackson-annotations - 2.2.2 - - - - - servlet-file-upload - - - org.eclipse.jetty - jetty-maven-plugin - 9.0.4.v20130625 - - - + + UTF-8 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + + + commons-fileupload + commons-fileupload + 1.3 + + + commons-io + commons-io + 2.4 + + + com.fasterxml.jackson.core + jackson-core + 2.2.2 + + + com.fasterxml.jackson.core + jackson-databind + 2.2.2 + + + com.fasterxml.jackson.core + jackson-annotations + 2.2.2 + + + + + servlet-file-upload + + + org.eclipse.jetty + jetty-maven-plugin + 9.0.4.v20130625 + + + diff --git a/simple-junit/.gitignore b/simple-junit/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/simple-junit/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/simple-junit/pom.xml b/simple-junit/pom.xml index 0dbb592d..751b94d0 100644 --- a/simple-junit/pom.xml +++ b/simple-junit/pom.xml @@ -2,7 +2,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.hmkcode + + com.hmkcode + java + 1.0 + + simple-junit 1.0-SNAPSHOT jar diff --git a/simple-junit/src/main/java/com/hmkcode/junit/Math.java b/simple-junit/src/main/java/com/hmkcode/junit/Math.java index 0468cb1f..6db6abbb 100644 --- a/simple-junit/src/main/java/com/hmkcode/junit/Math.java +++ b/simple-junit/src/main/java/com/hmkcode/junit/Math.java @@ -1,26 +1,24 @@ package com.hmkcode.junit; /** - * Hello world! - * + * Class to do basic math calculations */ -public class Math -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } +public class Math { + - public double sum(double x, double y){ - return x+y; + public double sum(double x, double y) { + return x + y; } - public double multiply(double x, double y){ - return x*y; + + public double multiply(double x, double y) { + return x * y; } - public double divide(double x, double y){ - return x/y; + + public double divide(double x, double y) { + return x / y; } - public double subtract(double x, double y){ + + public double subtract(double x, double y) { return x - y; } diff --git a/simple-junit/src/test/java/com/hmkcode/junit/MathTest.java b/simple-junit/src/test/java/com/hmkcode/junit/MathTest.java index 0fc88cfd..8197c715 100644 --- a/simple-junit/src/test/java/com/hmkcode/junit/MathTest.java +++ b/simple-junit/src/test/java/com/hmkcode/junit/MathTest.java @@ -2,12 +2,11 @@ import static org.junit.Assert.assertThat; -import org.junit.Rule; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.*; import org.junit.rules.Timeout; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; + import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.is; @@ -20,44 +19,49 @@ @RunWith(JUnit4.class) public class MathTest { - @Rule - public Timeout globalTimeout = new Timeout(3000); // 3 seconds max per method tested + @Rule + public Timeout globalTimeout = new Timeout(3000); // 3 seconds max per method tested + + private Math math; + + @Before + public void setUp() { + math = new Math(); + } - - com.hmkcode.junit.Math math = new com.hmkcode.junit.Math(); - - @Test - @Ignore - public void testAssertNotNull() { - org.junit.Assert.assertNotNull("should not be null", math); - } + @Test + @Ignore + public void testAssertNotNull() { + Assert.assertNotNull("should not be null", math); + } @Test - public void testSum(){ - org.junit.Assert.assertTrue("failure - not equal", math.sum(3, 2) == 5); - - //to test timeout - /*for (;;) { + public void testSum() { + Assert.assertTrue("failure - not equal", math.sum(3, 2) == 5); + + //uncomment to test timeout + /*for (;;) { }*/ } - + @Test - public void testMultiply(){ - org.junit.Assert.assertTrue("failure - not equal", math.multiply(3, 2) == 6); + public void testMultiply() { + Assert.assertTrue("failure - not equal", math.multiply(3, 2) == 6); } - + @Test - public void testDivide(){ - double x = 3,y = 2; - assertThat("failure - can't divide by 0",y, is(not(0.0))); - org.junit.Assert.assertTrue("failure - not equal", math.divide(x, y) == 1.5); + public void testDivide() { + double x = 3; + double y = 2; + assertThat("failure - can't divide by 0", y, is(not(0.0))); + Assert.assertTrue("failure - not equal", math.divide(x, y) == 1.5); } - + @Test - public void testSubtract(){ - org.junit.Assert.assertTrue("failure - not equal", math.subtract(3, 2) == 1); + public void testSubtract() { + Assert.assertTrue("failure - not equal", math.subtract(3, 2) == 1); } - - + + } \ No newline at end of file diff --git a/simple-junit/target/classes/com/hmkcode/junit/Math.class b/simple-junit/target/classes/com/hmkcode/junit/Math.class deleted file mode 100644 index 7af1fc90..00000000 Binary files a/simple-junit/target/classes/com/hmkcode/junit/Math.class and /dev/null differ diff --git a/simple-junit/target/surefire-reports/TEST-com.hmkcode.junit.MathTest.xml b/simple-junit/target/surefire-reports/TEST-com.hmkcode.junit.MathTest.xml deleted file mode 100644 index e1e758d8..00000000 --- a/simple-junit/target/surefire-reports/TEST-com.hmkcode.junit.MathTest.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/simple-junit/target/surefire-reports/com.hmkcode.junit.MathTest.txt b/simple-junit/target/surefire-reports/com.hmkcode.junit.MathTest.txt deleted file mode 100644 index c05a1198..00000000 --- a/simple-junit/target/surefire-reports/com.hmkcode.junit.MathTest.txt +++ /dev/null @@ -1,4 +0,0 @@ -------------------------------------------------------------------------------- -Test set: com.hmkcode.junit.MathTest -------------------------------------------------------------------------------- -Tests run: 5, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.06 sec diff --git a/simple-junit/target/test-classes/com/hmkcode/junit/MathTest.class b/simple-junit/target/test-classes/com/hmkcode/junit/MathTest.class deleted file mode 100644 index 85c0ebbd..00000000 Binary files a/simple-junit/target/test-classes/com/hmkcode/junit/MathTest.class and /dev/null differ diff --git a/webservlet-annotation/.gitignore b/webservlet-annotation/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/webservlet-annotation/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/webservlet-annotation/pom.xml b/webservlet-annotation/pom.xml index e30dbcef..8b80f078 100644 --- a/webservlet-annotation/pom.xml +++ b/webservlet-annotation/pom.xml @@ -1,16 +1,27 @@ - - + 4.0.0 - com.hmkcode + + com.hmkcode + java + 1.0 + + webservlet-annotation 1.0-SNAPSHOT war webservlet-annotation - + + + + java.net-promoted + https://maven.java.net/content/groups/promoted/ + + + diff --git a/websocket-java-api/.gitignore b/websocket-java-api/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/websocket-java-api/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/websocket-java-api/pom.xml b/websocket-java-api/pom.xml new file mode 100644 index 00000000..10dc5768 --- /dev/null +++ b/websocket-java-api/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + + com.hmkcode + java + 1.0 + + + 1.0 + websocket-java-api + pom + Java + + + websocket-app-client + websocket-glassfish-server + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.6 + 1.6 + + + + + + + \ No newline at end of file diff --git a/websocket-java-api/websocket-app-client/.gitignore b/websocket-java-api/websocket-app-client/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/websocket-java-api/websocket-app-client/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/websocket-java-api/websocket-app-client/pom.xml b/websocket-java-api/websocket-app-client/pom.xml index 31a8e8cd..c5930a6a 100644 --- a/websocket-java-api/websocket-app-client/pom.xml +++ b/websocket-java-api/websocket-app-client/pom.xml @@ -1,14 +1,18 @@ - - - com.hmkcode + + + + com.hmkcode + websocket-java-api + 1.0 + + websocket-app-client 1.0-SNAPSHOT jar 4.0.0 websocket-app-client - diff --git a/websocket-java-api/websocket-glassfish-server/.gitignore b/websocket-java-api/websocket-glassfish-server/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/websocket-java-api/websocket-glassfish-server/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/websocket-java-api/websocket-glassfish-server/pom.xml b/websocket-java-api/websocket-glassfish-server/pom.xml index 0816dd05..1ab66b87 100644 --- a/websocket-java-api/websocket-glassfish-server/pom.xml +++ b/websocket-java-api/websocket-glassfish-server/pom.xml @@ -1,8 +1,12 @@ - - - com.hmkcode + + + com.hmkcode + websocket-java-api + 1.0 + + websocket-glassfish-server 1.0-SNAPSHOT war diff --git a/xstream-java-xml/.gitignore b/xstream-java-xml/.gitignore new file mode 100644 index 00000000..7116901b --- /dev/null +++ b/xstream-java-xml/.gitignore @@ -0,0 +1,36 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.project +*.classpath +*.iml + + +.settings/* +.idea/* +target/* + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +/target/ diff --git a/xstream-java-xml/pom.xml b/xstream-java-xml/pom.xml index a0563de9..af12e213 100644 --- a/xstream-java-xml/pom.xml +++ b/xstream-java-xml/pom.xml @@ -1,24 +1,29 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.hmkcode - xstream-java-xml - 1.0-SNAPSHOT - jar + + com.hmkcode + java + 1.0 + - xstream-java-xml - http://maven.apache.org + xstream-java-xml + 1.0-SNAPSHOT + jar - - UTF-8 - + xstream-java-xml + http://maven.apache.org - - - com.thoughtworks.xstream - xstream - 1.4.4 - - + + UTF-8 + + + + + com.thoughtworks.xstream + xstream + 1.4.4 + +