mirror of https://github.com/apache/druid.git
fix pull-deps remoteRepository option
This commit is contained in:
parent
25a0eb7ed5
commit
657a5ac346
|
@ -27,9 +27,9 @@ layout: doc_page
|
||||||
|
|
||||||
A local repostiry that Maven will use to put downloaded files. Then pull-deps will lay these files out into the extensions directory as needed.
|
A local repostiry that Maven will use to put downloaded files. Then pull-deps will lay these files out into the extensions directory as needed.
|
||||||
|
|
||||||
`-r` or `--remoteRepositories`
|
`-r` or `--remoteRepository`
|
||||||
|
|
||||||
A JSON Array list of remote repositories to load dependencies from.
|
Add a remote repository to the default remote repository list, which includes https://repo1.maven.org/maven2/ and https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local
|
||||||
|
|
||||||
`-d` or `--defaultVersion`
|
`-d` or `--defaultVersion`
|
||||||
|
|
||||||
|
|
|
@ -106,11 +106,11 @@ public class PullDependencies implements Runnable
|
||||||
public String localRepository = String.format("%s/%s", System.getProperty("user.home"), ".m2/repository");
|
public String localRepository = String.format("%s/%s", System.getProperty("user.home"), ".m2/repository");
|
||||||
|
|
||||||
@Option(
|
@Option(
|
||||||
name = {"-r", "--remoteRepositories"},
|
name = {"-r", "--remoteRepository"},
|
||||||
title = "A JSON Array list of remote repositories to load dependencies from.",
|
title = "Add a remote repository to the default remote repository list, which includes https://repo1.maven.org/maven2/ and https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local",
|
||||||
required = false
|
required = false
|
||||||
)
|
)
|
||||||
List<String> remoteRepositories = ImmutableList.of(
|
List<String> remoteRepositories = Lists.newArrayList(
|
||||||
"https://repo1.maven.org/maven2/",
|
"https://repo1.maven.org/maven2/",
|
||||||
"https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local"
|
"https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local"
|
||||||
);
|
);
|
||||||
|
@ -157,6 +157,12 @@ public class PullDependencies implements Runnable
|
||||||
createRootExtensionsDirectory(extensionsDir);
|
createRootExtensionsDirectory(extensionsDir);
|
||||||
createRootExtensionsDirectory(hadoopDependenciesDir);
|
createRootExtensionsDirectory(hadoopDependenciesDir);
|
||||||
|
|
||||||
|
log.info(
|
||||||
|
"Start pull-deps with local repository [%s] and remote repositories [%s]",
|
||||||
|
localRepository,
|
||||||
|
remoteRepositories
|
||||||
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
log.info("Start downloading dependencies for extension coordinates: [%s]", coordinates);
|
log.info("Start downloading dependencies for extension coordinates: [%s]", coordinates);
|
||||||
for (final String coordinate : coordinates) {
|
for (final String coordinate : coordinates) {
|
||||||
|
|
Loading…
Reference in New Issue