From c27bfea688618de60f2de19a5b3a635df22db9ba Mon Sep 17 00:00:00 2001 From: Drew Short Date: Tue, 31 Dec 2013 19:35:48 -0600 Subject: [PATCH] Initial Maven setup commit --- .gitignore | 10 + pom.xml | 181 ++++++++++++++++++ src/includes/log4j.properties | 4 + src/main/java/com/sothr/imagetools/App.java | 13 ++ .../java/com/sothr/imagetools/AppTest.java | 38 ++++ 5 files changed, 246 insertions(+) create mode 100644 pom.xml create mode 100644 src/includes/log4j.properties create mode 100644 src/main/java/com/sothr/imagetools/App.java create mode 100644 src/test/java/com/sothr/imagetools/AppTest.java diff --git a/.gitignore b/.gitignore index 0f182a0..df60504 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,13 @@ *.jar *.war *.ear + +# IDEA Files +.idea/ +*.iml + +# Dolphin Directory Files +.directory + +# Maven Target Files +target/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8579a57 --- /dev/null +++ b/pom.xml @@ -0,0 +1,181 @@ + + 4.0.0 + + com.sothr.imagetools + Image-Tools + 0.1.0-SNAPSHOT + jar + + Image-Tools + An image collection management utility + http://imagetools.sothr.com + + Sothr Software + + + + UTF-8 + 1.7 + 3.8.1 + 1.2.17 + 1.7.5 + 2.10.2 + 8.0.0-M1 + + + + + junit + junit + ${lib.junit.version} + test + + + log4j + log4j + ${lib.log4j.version} + + + org.slf4j + slf4j-api + ${lib.slf4j.version} + + + org.slf4j + slf4j-log4j12 + ${lib.slf4j.version} + + + org.scala-lang + scala-library + ${lib.scala-library.version} + + + org.scalafx + scalafx_2.10 + ${lib.scalafx.version} + + + + + + + + + + com.zenjava + javafx-maven-plugin + 2.0 + + com.sothr.imagetools.App + + + + net.alchim31.maven + scala-maven-plugin + 3.1.6 + + + org.apache.maven.plugins + maven-resources-plugin + 2.6 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + ${jdk.version} + ${jdk.version} + + + + compile + + compile + + + + + + net.alchim31.maven + scala-maven-plugin + + + scala-compile-first + process-resources + + add-source + compile + + + + scala-test-compile + process-test-resources + + testCompile + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + + + true + com.sothr.imagetools.App + lib + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.5.1 + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/lib/ + + + + + + org.apache.maven.plugins + maven-resources-plugin + 2.6 + + + copy-resources + validate + + copy-resources + + + ${basedir}/target + + + src/includes + true + + + + + + + + + diff --git a/src/includes/log4j.properties b/src/includes/log4j.properties new file mode 100644 index 0000000..70b39b4 --- /dev/null +++ b/src/includes/log4j.properties @@ -0,0 +1,4 @@ +log4j.rootLogger=DEBUG, A1 +log4j.appender.A1=org.apache.log4j.ConsoleAppender +log4j.appender.A1.layout=org.apache.log4j.EnhancedPatternLayout +log4j.appender.A1.layout.ConversionPattern=%d{yy-MM-dd HH:mm:ss} %-5p [%c{3.}] - %m%n diff --git a/src/main/java/com/sothr/imagetools/App.java b/src/main/java/com/sothr/imagetools/App.java new file mode 100644 index 0000000..8f5f1da --- /dev/null +++ b/src/main/java/com/sothr/imagetools/App.java @@ -0,0 +1,13 @@ +package com.sothr.imagetools; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/test/java/com/sothr/imagetools/AppTest.java b/src/test/java/com/sothr/imagetools/AppTest.java new file mode 100644 index 0000000..1f00f6a --- /dev/null +++ b/src/test/java/com/sothr/imagetools/AppTest.java @@ -0,0 +1,38 @@ +package com.sothr.imagetools; + +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 ); + } +}