Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems integrating Maven with Eclipse Kepler

I am totally new to working with Maven in Eclipse. I am using the latest verion of Eclipse (Kepler). According other posts, as well as Eclipse's help page http://help.eclipse.org/kepler/index.jsp?topic=//org.eclipse.platform.doc.user/tasks/tasks-127.htm , I am supposed to try to install new software within Eclipse IDE.

However, when I try to Add Eclipse's recommended m2e release, Eclipse gives me an error:

Unable to read repository at http://download.eclipse.org/technology/m2e/releases. download.eclipse[...]releases is not a valid repository location.

Essentially I run into the same problem no matter which approach I take outlined on the Eclipse help page. Is there some other/better way to integrate Maven with Eclipse? Are there steps I should have taken before this? All I have done so far is install Eclipse. How can I successfully get Maven running?

EDIT: Now I am using Java EE and still run into problems when making a Maven project. I get a "Could not resolve archetype error" could this be because I'm behind a proxy?

like image 522
Man Friday Avatar asked Aug 28 '13 21:08

Man Friday


People also ask

Why does Maven build failure in Eclipse?

Try this: Eclipse IDE > Window > Show View > Maven Repositories > Local Repositories > Rebuild Index. Try cleaning and refreshing the project within eclipse. You might also have to delete that particular jar from your m2 repository and force maven to re-download it.

Does Eclipse work with Maven?

Eclipse IDE has fantastic support for Maven. We can easily create maven projects, build, deploy, and run it using the Eclipse GUI based interface. In this tutorial, we will learn how to use maven in Eclipse. We will go through the following examples.


1 Answers

Most convenient option:

The reason you're getting that error is because that repo is deprecated, and it has been moved. Example of how the new repo looks:

http://download.eclipse.org/technology/m2e/releases/1.0/1.0.0.20110607-2117

Copy that in the Install New Software view, and you will see that it works.


Other options:

  • Install the Maven Integration from Eclipse Marketplace (Help -> Eclipse Marketplace)
  • Download the EE version of Kepler (comes with m2e)
  • Choose your own release (bottom of the page) and use the Install New Software view.
  • like image 183
    Georgian Avatar answered Oct 19 '22 15:10

    Georgian