o Merge branch 'master' into eclipse-aether

Conflicts:
	maven-embedder/src/main/java/org/slf4j/impl/MavenSlf4jSimpleFriend.java
	pom.xml
This commit is contained in:
Jason van Zyl 2013-03-18 13:27:43 -07:00
commit f50ae7b059
2 changed files with 9 additions and 2 deletions

View File

@ -19,6 +19,9 @@
* under the License.
*/
import org.slf4j.ILoggerFactory;
import org.slf4j.LoggerFactory;
/**
* Utility for Maven to access Slf4j-Simple internals through package access.
* Use with precaution, since this is not normally intended for production use.
@ -28,6 +31,10 @@ public class MavenSlf4jSimpleFriend
public static void init()
{
SimpleLogger.init();
SimpleLoggerFactory.INSTANCE.reset();
ILoggerFactory loggerFactory = LoggerFactory.getILoggerFactory();
if ( loggerFactory instanceof SimpleLoggerFactory )
{
( (SimpleLoggerFactory) loggerFactory ).reset();
}
}
}

View File

@ -58,8 +58,8 @@
<cipherVersion>1.7</cipherVersion>
<modelloVersion>1.7</modelloVersion>
<jxpathVersion>1.3</jxpathVersion>
<slf4jVersion>1.7.3</slf4jVersion>
<aetherVersion>0.9.0.M2</aetherVersion>
<slf4jVersion>1.7.4</slf4jVersion>
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
<!-- Control the name of the distribution and information output by mvn -->
<distributionId>apache-maven</distributionId>