From 55b98395689906cc011671cd53b466c9f59b9157 Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Thu, 2 May 2013 14:50:49 +0200 Subject: [PATCH] HelloWorld with maven --- pom.xml | 43 +++++++++++++++++++ .../java/at/ac/tuwien/lsdc/HelloWorld.java | 12 ++++++ src/main/resources/logback.xml | 24 +++++++++++ src/test/java/dummy | 1 + src/test/resources/dummy | 1 + 5 files changed, 81 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/at/ac/tuwien/lsdc/HelloWorld.java create mode 100644 src/main/resources/logback.xml create mode 100644 src/test/java/dummy create mode 100644 src/test/resources/dummy diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..1157f99 --- /dev/null +++ b/pom.xml @@ -0,0 +1,43 @@ + + 4.0.0 + at.ac.tuwien.lsdc + lsdc + 0.0.1-SNAPSHOT + + + UTF-8 + + + + + org.slf4j + slf4j-api + 1.6.6 + + + ch.qos.logback + logback-classic + 1.0.7 + + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + maven-compiler-plugin + 2.3.2 + + 1.7 + 1.7 + + + + + + diff --git a/src/main/java/at/ac/tuwien/lsdc/HelloWorld.java b/src/main/java/at/ac/tuwien/lsdc/HelloWorld.java new file mode 100644 index 0000000..108f36e --- /dev/null +++ b/src/main/java/at/ac/tuwien/lsdc/HelloWorld.java @@ -0,0 +1,12 @@ +package at.ac.tuwien.lsdc; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class HelloWorld { + private static final Logger log = LoggerFactory.getLogger(HelloWorld.class); + + public static void main(String[] args) throws Exception { + log.info("Hello World!"); + } +} diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..4cb3709 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,24 @@ + + + + + + %-4relative [%thread] %-5level %class - %msg%n + + + + + + %-30(%d{HH:mm:ss.SSS} [%thread]) %-5level %logger{32} - %msg%n + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/java/dummy b/src/test/java/dummy new file mode 100644 index 0000000..2a51033 --- /dev/null +++ b/src/test/java/dummy @@ -0,0 +1 @@ +just a dummy such that git can maintain the directory structure needed by maven \ No newline at end of file diff --git a/src/test/resources/dummy b/src/test/resources/dummy new file mode 100644 index 0000000..2a51033 --- /dev/null +++ b/src/test/resources/dummy @@ -0,0 +1 @@ +just a dummy such that git can maintain the directory structure needed by maven \ No newline at end of file -- 2.43.0