From 9d3ab581009e3ab7a08e61f86f270134194bded5 Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: Wed, 14 Sep 2011 15:48:30 +0200 Subject: [PATCH 1/3] Add Maven 3 compatibility --- archetype-common/pom.xml | 8 ++++++++ maven-archetype-plugin/pom.xml | 4 ++++ .../org/apache/maven/archetype/mojos/IntegrationTestMojo.java | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/archetype-common/pom.xml b/archetype-common/pom.xml index 9197880..f1ac876 100644 --- a/archetype-common/pom.xml +++ b/archetype-common/pom.xml @@ -73,6 +73,14 @@ org.apache.maven + maven-compat + + + org.apache.maven + maven-core + + + org.apache.maven maven-model diff --git a/maven-archetype-plugin/pom.xml b/maven-archetype-plugin/pom.xml index 9bb19c9..2713361 100644 --- a/maven-archetype-plugin/pom.xml +++ b/maven-archetype-plugin/pom.xml @@ -83,6 +83,10 @@ org.codehaus.plexus + plexus-interactivity-api + + + org.codehaus.plexus plexus-utils diff --git a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java index 66966d4..0b48590 100644 --- a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java +++ b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java @@ -673,7 +673,7 @@ public class IntegrationTestMojo // interpolation with token @...@ Map composite = getInterpolationValueSource(); reader = ReaderFactory.newXmlReader( originalFile ); - reader = new InterpolationFilterReader( reader, composite, "@", "@" ); + reader = new InterpolationFilterReader( reader, ( Map ) composite, "@", "@" ); xml = IOUtil.toString( reader ); } finally -- 2.5.5