Hi,

> You are right; I need to use a proxy server to connect to the internet. 
For my
> project, I don't need internet access. Why does Maven need it.

Maven needs either an Internet connection or a repository manager with a 
valid Internet connection to download plugins for building your project. 
I.e. plugins for compiling your code, create a jar, install/deploy etc.pp. 
Also see [1] and [2].


> And 
> what can I do
> to fix the problem?

Well, specify the correct proxy settings in your IDE and in 
$HOME/.m2/settings.xml. See [3] for example.

The better option is to install a repository manager such as Nexus, 
Archiva, Artifactory etc. on a machine on your network, especially if 
you're not the only one working with Maven ([4]).


[1] https://maven.apache.org/general.html#proxy-needed
[2] https://maven.apache.org/plugins/index.html
[3] https://maven.apache.org/guides/mini/guide-proxies.html
[4] https://maven.apache.org/repository-management.html


HTH

Thorsten
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to