From ab32782b4797fb1d76c001b97c4eb5ac35808d6d Mon Sep 17 00:00:00 2001 From: dpuchakayala Date: Mon, 24 May 2021 23:48:26 -0400 Subject: [PATCH] Steps to overcome maven build issues --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 51c6e3e..b247b2d 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,30 @@ Udacity and Twitter bring you Real-Time Analytics with Apache Storm Join the course for free: www.udacity.com/course/ud381 + +Since maven has enforced new ssl policy + +## settings.xml +We need to add a settings.xml to use http instead of https + +`vi /home/vagrant/.m2/settings.xml` +
+<settings>
+    <mirrors>
+        <mirror>
+            <id>centralhttps</id>
+            <mirrorOf>central</mirrorOf>
+            <name>Maven central https</name>
+            <url>http://insecure.repo1.maven.org/maven2/</url>
+        </mirror>
+    </mirrors>
+</settings>
+
+ +## New storm build command +to avoid peer not authenticated error + +` +mvn package -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dhttps.protocols=TLSv1.2 +` +