A
A
Anton2015-04-08 09:17:09
MySQL
Anton, 2015-04-08 09:17:09

How to install Maven dependency mysql-connector-java?

I'm trying to connect mysql-connector to a maven project. Tried several versions of the connector
92369ebb021d4574af7b04b5d1fddccc.png
Says dependency not found. And through the environment:
fdcaff8379b84be28ee169cfeac6a171.png
Finds a bunch of options in the repository, but when you try to connect:
036d9c8f365f47fa93c2c6d1b9ed04b2.png
Again an error!
Why is that? Previously, somehow it was possible to connect everything. And now something is wrong... I
'm using a proxy. I registered the proxy settings in the environment, they are in order (connection test = saxesfull)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danila, 2015-04-10
@fattan

~/.m2/settings.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings>
<proxies>
    <proxy>
  <active>true</active>
  <protocol>http</protocol>
  <host>PROXY_HOST</host>
  <port>PROXY_PORT</port>
<!--	<username>proxyuser</username>
  <password>somepassword</password> -->
  <nonProxyHosts>*.YOUR-DOMAIN.ru|127.0.0.1</nonProxyHosts>
    </proxy>
</proxies>
</settings>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question