mirror of https://github.com/apache/maven.git
o Fixed missing requirement in the component definition for the RepositoryCleaner (was missing requirement on MailSender)
o Added a new logging message to report on the actual number of artifacts rewritten during the conversion process. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163841 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e8ecf5e902
commit
793d10f7d2
|
@ -241,8 +241,10 @@ public class RepositoryCleaner
|
|||
|
||||
try
|
||||
{
|
||||
logger.info( "Rewriting " + artifacts.size() + " artifacts (Should be " + ( artifacts.size() * 2 )
|
||||
logger.info( "Rewriting up to " + artifacts.size() + " artifacts (Should be " + ( artifacts.size() * 2 )
|
||||
+ " rewrites including POMs)." );
|
||||
|
||||
int actualRewriteCount = 0;
|
||||
for ( Iterator it = artifacts.iterator(); it.hasNext(); )
|
||||
{
|
||||
Artifact artifact = (Artifact) it.next();
|
||||
|
@ -266,7 +268,8 @@ public class RepositoryCleaner
|
|||
|
||||
if ( artifactSource.exists() && targetMissingOrOlder )
|
||||
{
|
||||
|
||||
actualRewriteCount++;
|
||||
|
||||
try
|
||||
{
|
||||
if ( !configuration.reportOnly() )
|
||||
|
@ -370,6 +373,8 @@ public class RepositoryCleaner
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
logger.info("Actual number of artifacts rewritten: " + actualRewriteCount + " (" + (actualRewriteCount * 2) + " including POMs).");
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
@ -102,6 +102,9 @@
|
|||
<requirement>
|
||||
<role>org.apache.maven.tools.repoclean.digest.ArtifactDigestVerifier</role>
|
||||
</requirement>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.mailsender.MailSender</role>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
<!--
|
||||
|
|
Loading…
Reference in New Issue