Not able to connect to internet/repo through proxy

177 Views Asked by At

I use a java framework to develop a crud application. This framework is called: "Cuba.Platform".

My problem is, that I am not able to open the project in cuba. When I try to open my project there, I get this problem:

“Repository contains cuba artifacts not found in https://repo.cuba-platform.com/content/groups/work

I read a thread about a similar problem: https://www.cuba-platform.com/discuss/t/not-able-to-connect-to-internet-repo-through-proxy/387

But my question is, how I can modify it? How can I access to my project even through the proxy server?

They explain that I should set the JAVA_OPS variable, but how? I dont know how to do it, and not find something useful, that could explain me so, that I could understand it.

If someone could help me out, I would be very happy.

Thanks a lot

1

There are 1 best solutions below

1
knstvk On

If you are on Windows, open This PC (Context menu) > Properties > Advanced System Settings > Environment variables and add the following variable:

Name: JAVA_OPTS

Value: "-Dhttp.proxyHost=192.168.1.1" "-Dhttp.proxyPort=3128" "-Dhttps.proxyHost=192.168.1.1" "-Dhttps.proxyPort=3128"

Change your proxy address and port accordingly.