<snapshots>disabled</snapshots>
<releases>once</releases>
<checksum>fix</checksum>
- <cache-failures>cache</cache-failures>
+ <cache-failures>cached</cache-failures>
</policies>
<whiteListPatterns>
<whiteListPattern>**/*</whiteListPattern>
<snapshots>disabled</snapshots>
<releases>once</releases>
<checksum>fix</checksum>
- <cache-failures>cache</cache-failures>
+ <cache-failures>cached</cache-failures>
</policies>
<whiteListPatterns>
<whiteListPattern>javax/**</whiteListPattern>
import java.util.Properties;
/**
- * {@link PreDownloadPolicy} to check if the requested url has failed before.
+ * {@link PreDownloadPolicy} to check if the requested url has failed before.
*
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
* @version $Id$
- *
* @plexus.component role="org.apache.maven.archiva.policies.PreDownloadPolicy"
- * role-hint="cache-failures"
+ * role-hint="cache-failures"
*/
public class CachedFailuresPolicy
extends AbstractLogEnabled
{
/**
* The CACHED policy indicates that if the URL provided exists in the
- * cached failures pool, then the policy fails, and the download isn't even
+ * cached failures pool, then the policy fails, and the download isn't even
* attempted.
*/
public static final String CACHED = "cached";
if ( !options.contains( policySetting ) )
{
// No valid code? false it is then.
- getLogger().error( "Unknown checksum policyCode [" + policySetting + "]" );
+ getLogger().error( "Unknown check-failures policyCode [" + policySetting + "]" );
return false;
}
return false;
}
}
-
+
getLogger().debug( "OK to fetch, check-failures detected no issues." );
return true;