Open e-mon opened 6 years ago
Hello, @e-mon
IIUC, Plugin loading does not support Proxy yet.
private static final List<RemoteRepository> DEFAULT_REPOSITORIES = ImmutableList.copyOf(new RemoteRepository[] {
new RemoteRepository.Builder("central", "default", "http://central.maven.org/maven2/").build(),
new RemoteRepository.Builder("jcenter", "default", "http://jcenter.bintray.com/").build(),
});
The RemoteRepository.Builder
needs to set proxy parameter.
https://maven.apache.org/resolver/apidocs/org/eclipse/aether/repository/RemoteRepository.Builder.html#setProxy(org.eclipse.aether.repository.Proxy)
I checked current implementation.
It requires the following consideration to implement the proxy setting for RemotePluginLoader.
digdag-client
package.digdag-standards
. (I'm not sure whether this change possible or not.)This change is rough test implementation.
In the proxy environment plugin loading function does not seem to work.
I tried putting proxy setting in
~/.m2/settings.xml
and set environment variables (http_proxy
,https_proxy
) , but it still does not work.my environment:
digdag version: 0.9.24
How to set proxy for loading plugin?