mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
show installed plugins without internet connection, see #44
This commit is contained in:
@@ -58,7 +58,6 @@ import org.sonatype.aether.impl.VersionResolver;
|
|||||||
import org.sonatype.aether.impl.internal.DefaultServiceLocator;
|
import org.sonatype.aether.impl.internal.DefaultServiceLocator;
|
||||||
import org.sonatype.aether.repository.LocalRepository;
|
import org.sonatype.aether.repository.LocalRepository;
|
||||||
import org.sonatype.aether.repository.Proxy;
|
import org.sonatype.aether.repository.Proxy;
|
||||||
import org.sonatype.aether.repository.ProxySelector;
|
|
||||||
import org.sonatype.aether.repository.RemoteRepository;
|
import org.sonatype.aether.repository.RemoteRepository;
|
||||||
import org.sonatype.aether.resolution.DependencyRequest;
|
import org.sonatype.aether.resolution.DependencyRequest;
|
||||||
import org.sonatype.aether.spi.connector.RepositoryConnectorFactory;
|
import org.sonatype.aether.spi.connector.RepositoryConnectorFactory;
|
||||||
|
|||||||
@@ -558,13 +558,18 @@ public class DefaultPluginManager implements PluginManager
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
throw new PluginLoadException(ex);
|
logger.error("could not load plugins from plugin center", ex);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
IOUtil.close(input);
|
IOUtil.close(input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (center == null)
|
||||||
|
{
|
||||||
|
center = new PluginCenter();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user