You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Thomas D'Silva (JIRA)" <ji...@apache.org> on 2018/11/15 22:18:00 UTC
[jira] [Resolved] (PHOENIX-5016) Set https.protocols=TLSv1.2 while
compiling with Java 1.7
[ https://issues.apache.org/jira/browse/PHOENIX-5016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas D'Silva resolved PHOENIX-5016.
-------------------------------------
Resolution: Duplicate
> Set https.protocols=TLSv1.2 while compiling with Java 1.7
> ----------------------------------------------------------
>
> Key: PHOENIX-5016
> URL: https://issues.apache.org/jira/browse/PHOENIX-5016
> Project: Phoenix
> Issue Type: Improvement
> Reporter: Thomas D'Silva
> Assignee: Thomas D'Silva
> Priority: Major
>
> When compiling with Java 1.7 we see an error "Received fatal alert: protocol_version" is because of the TLS version ([https://stackoverflow.com/questions/50946420/could-not-transfer-artifact-https-repo-maven-apache-org-maven2-received-fat]). I was able to compile using Java 1.7 (after removing my .m2 folder) after adding {{-Dhttps.protocols=TLSv1.2}} to the {{MAVEN_OPTS}} environment variable.
> See if its possible to set this in pom.xml
> {code}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>3.0</version>
> <configuration>
> <compilerArgs>
> <arg>-Dhttps.protocols=TLSv1.2</arg>
> </compilerArgs>
> <source>1.7</source>
> <target>1.7</target>
> </configuration>
> </plugin>
> {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)