Blame SOURCES/0001-Update-to-Plexus-Container-1.5.5.patch

0d7a50
From 7da9425b8fc0cb20500f4e5aa8a8adc67d107969 Mon Sep 17 00:00:00 2001
0d7a50
From: Mikolaj Izdebski <mizdebsk@redhat.com>
0d7a50
Date: Wed, 6 Nov 2013 12:46:26 +0100
0d7a50
Subject: [PATCH] Update to Plexus Container 1.5.5
0d7a50
0d7a50
---
0d7a50
 .../java/org/apache/maven/doxia/module/AbstractIdentityTest.java   | 3 ++-
0d7a50
 .../test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java    | 3 ++-
0d7a50
 .../test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java | 3 ++-
0d7a50
 pom.xml                                                            | 7 +------
0d7a50
 4 files changed, 7 insertions(+), 9 deletions(-)
0d7a50
0d7a50
diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
0d7a50
index 100add3..8c78956 100644
0d7a50
--- a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
0d7a50
+++ b/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
0d7a50
@@ -33,6 +33,7 @@ import org.apache.maven.doxia.parser.Parser;
0d7a50
 import org.apache.maven.doxia.sink.Sink;
0d7a50
 import org.apache.maven.doxia.sink.SinkTestDocument;
0d7a50
 import org.apache.maven.doxia.sink.TextSink;
0d7a50
+import org.codehaus.plexus.DefaultPlexusContainer;
0d7a50
 import org.codehaus.plexus.util.IOUtil;
0d7a50
 
0d7a50
 /**
0d7a50
@@ -107,7 +108,7 @@ public abstract class AbstractIdentityTest
0d7a50
         writer = new StringWriter();
0d7a50
         sink = new TextSink( writer );
0d7a50
         Parser parser = createParser();
0d7a50
-        parser.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
0d7a50
+        parser.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ) );
0d7a50
         parser.parse( reader, sink );
0d7a50
         String actual = writer.toString();
0d7a50
 
0d7a50
diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
0d7a50
index ebba69c..1aac4fc 100644
0d7a50
--- a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
0d7a50
+++ b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
0d7a50
@@ -25,6 +25,7 @@ import java.io.Writer;
0d7a50
 
0d7a50
 import org.apache.maven.doxia.AbstractModuleTest;
0d7a50
 import org.apache.maven.doxia.logging.PlexusLoggerWrapper;
0d7a50
+import org.codehaus.plexus.DefaultPlexusContainer;
0d7a50
 import org.codehaus.plexus.util.IOUtil;
0d7a50
 
0d7a50
 /**
0d7a50
@@ -54,7 +55,7 @@ public abstract class AbstractSinkTest
0d7a50
 
0d7a50
         testWriter.reset();
0d7a50
         sink = createSink( testWriter );
0d7a50
-        sink.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
0d7a50
+        sink.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ) );
0d7a50
     }
0d7a50
 
0d7a50
     // ---------------------------------------------------------------------
0d7a50
diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
0d7a50
index 5f9108e..88db2b4 100644
0d7a50
--- a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
0d7a50
+++ b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
0d7a50
@@ -31,6 +31,7 @@ import junit.framework.AssertionFailedError;
0d7a50
 
0d7a50
 import org.apache.maven.doxia.parser.Parser;
0d7a50
 
0d7a50
+import org.codehaus.plexus.DefaultPlexusContainer;
0d7a50
 import org.codehaus.plexus.PlexusTestCase;
0d7a50
 import org.codehaus.plexus.logging.Logger;
0d7a50
 
0d7a50
@@ -96,7 +97,7 @@ public abstract class AbstractXmlValidator
0d7a50
     public void testValidateFiles()
0d7a50
         throws Exception
0d7a50
     {
0d7a50
-        final Logger logger = getContainer().getLoggerManager().getLoggerForComponent( Parser.ROLE );
0d7a50
+        final Logger logger = ( ( DefaultPlexusContainer )getContainer() ).getLoggerManager().getLoggerForComponent( Parser.ROLE );
0d7a50
 
0d7a50
         for ( Iterator<Map.Entry<String, String>> it = getTestDocuments().entrySet().iterator(); it.hasNext(); )
0d7a50
         {
0d7a50
diff --git a/pom.xml b/pom.xml
0d7a50
index 754f65d..82b36c3 100644
0d7a50
--- a/pom.xml
0d7a50
+++ b/pom.xml
0d7a50
@@ -287,18 +287,13 @@ under the License.
0d7a50
       <dependency>
0d7a50
         <groupId>org.codehaus.plexus</groupId>
0d7a50
         <artifactId>plexus-container-default</artifactId>
0d7a50
-        <version>1.0-alpha-30</version>
0d7a50
+        <version>1.5.5</version>
0d7a50
       </dependency>
0d7a50
       <dependency>
0d7a50
         <groupId>org.codehaus.plexus</groupId>
0d7a50
         <artifactId>plexus-utils</artifactId>
0d7a50
         <version>3.0.10</version>
0d7a50
       </dependency>
0d7a50
-      <dependency>
0d7a50
-        <groupId>org.codehaus.plexus</groupId>
0d7a50
-        <artifactId>plexus-component-annotations</artifactId>
0d7a50
-        <version>1.5.5</version>
0d7a50
-      </dependency>
0d7a50
     </dependencies>
0d7a50
   </dependencyManagement>
0d7a50
   <dependencies>
0d7a50
-- 
0d7a50
1.8.1.4
0d7a50