Change maven central URLs to use https: which is now required
Change-Id: I9cbf6319a20900069f697f99a1730a86bfa6eaa5
diff --git a/tools/build/libgen/pom.xml b/tools/build/libgen/pom.xml
index 3cfa162..2f17fa1 100644
--- a/tools/build/libgen/pom.xml
+++ b/tools/build/libgen/pom.xml
@@ -29,7 +29,7 @@
<groupId>org.onosproject</groupId>
<artifactId>onos-libgen</artifactId>
<packaging>jar</packaging>
- <version>2.2-SNAPSHOT</version>
+ <version>2.2</version>
<description>Third-party library generator for ONOS Bazel workspace</description>
<url>http://onosproject.org/</url>
diff --git a/tools/build/libgen/src/main/java/org/onosproject/libgen/AetherResolver.java b/tools/build/libgen/src/main/java/org/onosproject/libgen/AetherResolver.java
index 23ffc9e..62d23cc 100755
--- a/tools/build/libgen/src/main/java/org/onosproject/libgen/AetherResolver.java
+++ b/tools/build/libgen/src/main/java/org/onosproject/libgen/AetherResolver.java
@@ -59,7 +59,7 @@
* Resolver capable of resolving Maven coordinates to a Maven artifact.
*/
public class AetherResolver {
- private static final String CENTRAL_URL = "http://repo1.maven.org/maven2/";
+ private static final String CENTRAL_URL = "https://repo1.maven.org/maven2/";
private static RepositorySystem system;
private static RepositorySystemSession session;
diff --git a/tools/build/libgen/src/main/java/org/onosproject/libgen/BazelArtifact.java b/tools/build/libgen/src/main/java/org/onosproject/libgen/BazelArtifact.java
index ae13b56..1f935a8 100644
--- a/tools/build/libgen/src/main/java/org/onosproject/libgen/BazelArtifact.java
+++ b/tools/build/libgen/src/main/java/org/onosproject/libgen/BazelArtifact.java
@@ -184,7 +184,7 @@
@Override
String httpUrl() {
- return "http://repo1.maven.org/maven2/" +
+ return "https://repo1.maven.org/maven2/" +
artifact.getGroupId().replace(".", "/") +
"/" + artifact.getArtifactId() +
"/" + artifact.getVersion() +
diff --git a/tools/build/onos-lib-gen b/tools/build/onos-lib-gen
index 7e6c951..321fe84 100755
--- a/tools/build/onos-lib-gen
+++ b/tools/build/onos-lib-gen
@@ -9,7 +9,7 @@
cd $ONOS_ROOT
REPO=${M2_REPO:-~/.m2/repository}
-VER=2.1
+VER=2.2
ARTIFACT=org/onosproject/onos-libgen/$VER/onos-libgen-$VER.jar
JAR=$REPO/$ARTIFACT
@@ -17,7 +17,7 @@
if [ ! -f $JAR ]; then
printf "Downloading onos-libgen-$VER.jar..."
mkdir -p $(dirname $JAR)
- curl http://repo1.maven.org/maven2/$ARTIFACT > $JAR
+ curl https://repo1.maven.org/maven2/$ARTIFACT > $JAR
[ -f $JAR ] && printf "Done.\n"
fi