try
{
provider.addProviderProperties();
// cache the provider lookup
String providerName = provider.getProviderName();
Classpath providerClasspath = ClasspathCache.getCachedClassPath( providerName );
if ( providerClasspath == null )
{
providerClasspath = provider.getProviderClasspath();
ClasspathCache.setCachedClasspath( providerName, providerClasspath );
}
Classpath inprocClassPath = new Classpath( providerClasspath );
Artifact surefireArtifact = getCommonArtifact();
inprocClassPath.addClassPathElementUrl( surefireArtifact.getFile().getAbsolutePath() );
final Classpath testClasspath = generateTestClasspath();
logClasspath( testClasspath, "test classpath" );
logClasspath( providerClasspath, "provider classpath" );
final ClasspathConfiguration classpathConfiguration =
new ClasspathConfiguration( testClasspath, providerClasspath, inprocClassPath,