Skip to content

Commit de1d765

Browse files
committed
Fix the ssl protocol_version error #311
1 parent 3c47bc0 commit de1d765

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.mvn/wrapper/maven-wrapper.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.2.5/apache-maven-3.2.5-bin.zip
1+
# for gh-311 (modify url of maven central to http from https)
2+
distributionUrl=http://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.2.5/apache-maven-3.2.5-bin.zip

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ jdk:
1313
- openjdk7
1414
- openjdk6
1515

16+
before_install:
17+
# for gh-311 (modify to use the TLSv1.2 on Java 7)
18+
- export _JAVA_OPTIONS=-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2
19+
1620
after_success:
1721
- chmod -R 777 ./travis/after_success.sh
1822
- ./travis/after_success.sh

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,30 @@
336336
</plugin>
337337
</plugins>
338338
</build>
339+
<!-- for gh-311 (modify url of maven central to http from https) -->
340+
<repositories>
341+
<repository>
342+
<snapshots>
343+
<enabled>false</enabled>
344+
</snapshots>
345+
<id>central</id>
346+
<name>Central Repository</name>
347+
<url>http://repo1.maven.org/maven2/</url>
348+
</repository>
349+
</repositories>
350+
<pluginRepositories>
351+
<pluginRepository>
352+
<releases>
353+
<updatePolicy>never</updatePolicy>
354+
</releases>
355+
<snapshots>
356+
<enabled>false</enabled>
357+
</snapshots>
358+
<id>central</id>
359+
<name>Central Repository</name>
360+
<url>http://repo1.maven.org/maven2/</url>
361+
</pluginRepository>
362+
</pluginRepositories>
339363
</profile>
340364
</profiles>
341365

0 commit comments

Comments
 (0)