From 9c5e04b419cf6ee7003fe305331a618c818208a5 Mon Sep 17 00:00:00 2001 From: "Ealden Esto E. Escanan" Date: Sun, 18 Sep 2011 14:51:20 +0800 Subject: [PATCH 1/4] Explicitly set encoding to UTF-8 for Maven modules It seems that it is not enough to set encoding on the root POM, as Maven 3 complains that encoding is not set for the submodules. Signed-off-by: Ealden Esto E. Escanan --- helloworld/pom.xml | 11 ++++++----- log4j/pom.xml | 2 +- stocks/pom.xml | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/helloworld/pom.xml b/helloworld/pom.xml index 7560936..178fa1d 100644 --- a/helloworld/pom.xml +++ b/helloworld/pom.xml @@ -18,6 +18,7 @@ true 3.0.5.RELEASE 1.0.0.RELEASE + UTF-8 @@ -39,7 +40,7 @@ org.springframework.amqp spring-rabbit ${spring.amqp.version} - + org.springframework @@ -70,15 +71,15 @@ 2.2 runtime - - + + junit junit 4.8.1 test - + org.slf4j slf4j-api @@ -102,7 +103,7 @@ 1.2.14 runtime - + diff --git a/log4j/pom.xml b/log4j/pom.xml index 5d10103..e48591d 100644 --- a/log4j/pom.xml +++ b/log4j/pom.xml @@ -18,6 +18,7 @@ true 3.0.5.RELEASE 1.0.0.RELEASE + UTF-8 @@ -208,4 +209,3 @@ - \ No newline at end of file diff --git a/stocks/pom.xml b/stocks/pom.xml index 925e6d5..4423e1d 100644 --- a/stocks/pom.xml +++ b/stocks/pom.xml @@ -17,6 +17,7 @@ true 3.0.5.RELEASE 1.0.0.RELEASE + UTF-8 From a5accdb862d0a869708365d422969415eb4a1034 Mon Sep 17 00:00:00 2001 From: "Ealden Esto E. Escanan" Date: Sun, 18 Sep 2011 14:53:37 +0800 Subject: [PATCH 2/4] Relocate AspectJ groupId to org.aspectj instead of aspectj org.aspectj is the new groupId as per Maven 3. Signed-off-by: Ealden Esto E. Escanan --- log4j/pom.xml | 4 ++-- stocks/pom.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/log4j/pom.xml b/log4j/pom.xml index e48591d..10d7098 100644 --- a/log4j/pom.xml +++ b/log4j/pom.xml @@ -94,12 +94,12 @@ 2.2 - aspectj + org.aspectj aspectjrt 1.5.4 - aspectj + org.aspectj aspectjweaver 1.5.4 diff --git a/stocks/pom.xml b/stocks/pom.xml index 4423e1d..f0ece29 100644 --- a/stocks/pom.xml +++ b/stocks/pom.xml @@ -93,12 +93,12 @@ 2.2 - aspectj + org.aspectj aspectjrt 1.5.4 - aspectj + org.aspectj aspectjweaver 1.5.4 From 2f1dd01bacfb19fddd130eb6d790e34311a4b94b Mon Sep 17 00:00:00 2001 From: "Ealden Esto E. Escanan" Date: Sun, 18 Sep 2011 14:55:36 +0800 Subject: [PATCH 3/4] Replaced deprecated pom.artifactId with project.artifactId Signed-off-by: Ealden Esto E. Escanan --- helloworld/pom.xml | 2 +- log4j/pom.xml | 2 +- stocks/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helloworld/pom.xml b/helloworld/pom.xml index 178fa1d..39eef12 100644 --- a/helloworld/pom.xml +++ b/helloworld/pom.xml @@ -163,7 +163,7 @@ http://www.springframework.org/download staging - file:///${user.dir}/target/staging/org.springframework.batch.archetype/${pom.artifactId} + file:///${user.dir}/target/staging/org.springframework.batch.archetype/${project.artifactId} spring-release diff --git a/log4j/pom.xml b/log4j/pom.xml index 10d7098..2e0ec8f 100644 --- a/log4j/pom.xml +++ b/log4j/pom.xml @@ -194,7 +194,7 @@ http://www.springframework.org/download staging - file:///${user.dir}/target/staging/org.springframework.batch.archetype/${pom.artifactId} + file:///${user.dir}/target/staging/org.springframework.batch.archetype/${project.artifactId} spring-release diff --git a/stocks/pom.xml b/stocks/pom.xml index f0ece29..8e9b9ab 100644 --- a/stocks/pom.xml +++ b/stocks/pom.xml @@ -193,7 +193,7 @@ http://www.springframework.org/download staging - file:///${user.dir}/target/staging/org.springframework.batch.archetype/${pom.artifactId} + file:///${user.dir}/target/staging/org.springframework.batch.archetype/${project.artifactId} spring-release From 033db3809ac550748a570f754b5db49e140f5716 Mon Sep 17 00:00:00 2001 From: "Ealden Esto E. Escanan" Date: Sun, 18 Sep 2011 15:16:03 +0800 Subject: [PATCH 4/4] Lock plugin versions to their latest version to remove warning from Maven Signed-off-by: Ealden Esto E. Escanan --- helloworld/pom.xml | 2 ++ log4j/pom.xml | 3 +++ stocks/pom.xml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/helloworld/pom.xml b/helloworld/pom.xml index 39eef12..46d8a41 100644 --- a/helloworld/pom.xml +++ b/helloworld/pom.xml @@ -129,6 +129,7 @@ org.apache.maven.plugins maven-compiler-plugin + 2.3.2 1.5 1.5 @@ -137,6 +138,7 @@ org.apache.maven.plugins maven-surefire-plugin + 2.9 diff --git a/log4j/pom.xml b/log4j/pom.xml index 2e0ec8f..6eb405a 100644 --- a/log4j/pom.xml +++ b/log4j/pom.xml @@ -156,10 +156,12 @@ org.mortbay.jetty maven-jetty-plugin + 6.1.26 org.apache.maven.plugins maven-compiler-plugin + 2.3.2 1.5 1.5 @@ -168,6 +170,7 @@ org.apache.maven.plugins maven-surefire-plugin + 2.9 diff --git a/stocks/pom.xml b/stocks/pom.xml index 8e9b9ab..3b7fcb5 100644 --- a/stocks/pom.xml +++ b/stocks/pom.xml @@ -155,10 +155,12 @@ org.mortbay.jetty maven-jetty-plugin + 6.1.26 org.apache.maven.plugins maven-compiler-plugin + 2.3.2 1.5 1.5 @@ -167,6 +169,7 @@ org.apache.maven.plugins maven-surefire-plugin + 2.9