I want to use Eclipse to develop a maven web application, so I download newest eclipse “kepler Java EE” for it has already integrated maven. But the result is errors occur when I try to create a maven project. Then I want to solve this problem.
I download eclipse Indigo Java EE which has not integrated maven. And then I follow the official document on eclipse website and try to install newest maven with url “http://download.eclipse.org/technology/m2e/releases/http://download.eclipse.org/technology/m2e/releases/ “,but error occurs. It prompts “lack some jar”. 😡 I am going to mad.
I download eclipse Indigo for java Development, and it has already integrated with Maven, and I succeed to create a Maven Project. Wow, it’s a good news. So I wonder maybe the newest maven has errors about dependency install.Then Let’s try to install older mavens.
I choose http://download.eclipse.org/technology/m2e/releases/1.0/18.104.22.16811228-1245 to install maven, and it is fine. I get it.
HINT: About how to install maven in detail, you can follow eclipse guide http://wiki.eclipse.org/M2E_updatesite_and_gittags
I have stated that I use Eclipse to develop a maven web application. I follow http://crunchify.com/how-to-create-dynamic-web-project-using-maven-in-eclipse/ to create a dynamci maven web application, but I run into errors “
I google it and conclude that this problem results from proxy configuration less. I need to configure it in settings.xml, but where it is. I just can’t find it under .m2/. I check eclipse->window->preference->maven->setting, and it also prompt “no settings.xml file”. So I decide to create one by myself, and it likes below.
<?xml version=”1.0″ encoding=”UTF-8″?>
<settings xmlns=”http://maven.apache.org/POM/4.0.0” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd“>
Just change the host and port to yours. Then reset settings.xml path under eclipse->window–>preference->maven->setting. Ok, it works.