last day (27 days later) » 

11:50
0
Q: Could not understand about Maven pom file using Eclipse

Aj StylesI am very new to Maven and i am creating my first maven project of maven-archetype-quickstart Then it generates the error message :: But in my project explorer : I am unable to understand that why it is creating a proper maven project every time it shows a red warning mark into my proj...

I guess you have some kind of network/proxy problem.
@JF Meier how can I resolve this problem??
Figure out if your firewall/proxy/network blocks access to MavenCentral. If you are inside a company, speak to the network administrator,
@JF Meier Sir I am using maven into my PC so provide me steps to figure out about Proxy
So are you inside a company network or not? If so, talk to your network people, if not, check if you run a firewall.
11:50
@JF Meier no sir i am not inside any company
My firewall is running I found difficult to check that whether firewall blocks the MavenCentral or not. So tell me how i can check for it
Sorry, but I don't know your firewall.
@JF Meier sir I recognized that in my settings.xml the command related to proxy are commented . Maybe it produced problem??
In a private network, you usually don't have a proxy. So that is probably fine.
@JF Meier so as I am in private network there is no proxy as you mentioned so why I am unable to create a maven project and I tried as turn off my firewall from my system and create a new maven project it still gives the same problem.
Actually, I don't know.
11:50
@JF Meier what else I could do for resolve my problems and thanks for your time sir
You could try to remove the settings.xml from your .m2 directory and try again (after restarting eclipse). The settings.xml is probably not necessary in your case.
@JF Meier after removing settings.xml it still produces the same error.
You are running a recent, normal eclipse?
@JF Meier version Eclipse jee mars.2(4.5.2)
I am running out of ideas. But I would try to reinstall eclipse (maybe a more recent one) and also delete everything from the local repository.
11:50
For the number of Maven projects I have worked on, this is quite common. As the description says, it can't resolve (cannot find) your dependencies (libraries). You don't really need internet access to resolve your dependencies. An alternative is to download the required dependencies into your .m2 folder as local dependencies. Point your project to your local dependencies by setting the full .m2 path in your settings.xml. Make sure your project is using that settings.xml. Update Maven project again in offline mode. If it doesn't work. Update Maven project again by unchecking "offline" checkbox.
@user3437460 please excuse my ignorance, sir would you help me to tell brifely about you said about "You don't really need internet access to resolve your dependencies. An alternative is to download the required dependencies into your .m2 folder as local dependencies." So how can I download dependencies into my .m2 folder

  last day (27 days later) »