I moved forward to Eclipse 4.8. My Projects Maven projects under subversion is not displayed as Java Project and the pom.xml is displayed in XML-Editor instead of the well-meant pom-editor.
Steps I done:
Installed eclipse photon
Opend new/empty workspace
Installed subversive from update-site.
Restart
Installed svn-connector SVNKIT from subversive-plugin.
Restart
Checkout project from SVN.
Remove project without delete on HDD.
Import existing maven project from workspace.
Hit "Maven->Update Project..." on all projects in the workspace.
The Project's icon is showing the M-Icon-Overlay let me think it is a maven project. The Project's icon does not contain the J-Icon-Overlay what let me think he does not treat it as a Java project.
Any ideas?
Doesnt work at the moment. I created a workspace in an older version and opend the workspace again in the new eclipse photon. It asks to convert it to the new eclipse's workspace and everything is fine.
Related
i have to rebuilt a maven 1.0 webapplication in Java. However i can not get the application to run in Eclipse IDE.
I already installed Eclipse Luna 4.4 EE including JDK 1.7.
Maven 1.0 was installed succesfully via cmd .bat file.
As Server for the application Tomcat 7 is used.
What do i have to do to migrate the project properly into eclipse.
Any help woulde be much appreciated.
The Problem occured to me is when i tried to import the project as existing maven project it doesnot regconize it as a maven project. And the import stays dead.
Maven Eclipse plugin installation step by step:
Open Eclipse IDE
Click Help -> Install New Software...
Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as "http://download.eclipse.org/technology/m2e/releases" or http://download.eclipse.org/technology/m2e/milestones/1.0
Now click OK
After that installation would be started.
Another way to install Maven plug-in for Eclipse:
Open Eclipse
Go to Help -> Eclipse Marketplace
Search by Maven
Click "Install" button at "Maven Integration for Eclipse" section
Follow the instruction step by step
After successful installation do the followings in Eclipse:
Go to Window --> Preferences
Observe, Maven is enlisted at left panel
Finally,
Click on an existing project
Select Configure -> Convert to Maven Project
Now you can import project.
From command line if you have maven in your system variables, you can do
mvn eclipse:eclipse in your project path.
If not works, you can follow this guide:
https://www.mkyong.com/maven/no-more-mvn-eclipseeclipse-whats-next/
I cloned one of the open source git repositories and was trying to import it as maven project in eclipse. After I imported everything as a maven project, whole package is getting messed up. See the below error:
How can I fix this issue so that I can build it on my local box? I cloned the same git repository locally on my desktop.
I am using eclipse version:
Eclipse IDE for Java Developers
Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600
Steps I have tried already:
I have already tried maven->update project.
I have also tried removing and adding it again.
I tried mvn clean install both on command line and eclipse, they are successful as well.
Can anyone help me with this? If needed, you can also clone it and try importing it to see whether it works for you or not.
The root of your problem is that the build section of the pom.xml for that project specifies:
<sourceDirectory>./src</sourceDirectory>
Eclipse uses the sourceDirectory tag to tell it where the root of the main sources are. If you change that to ./src/main/java, then right-click on the project > Maven > Update Project... and click Ok (I had to do this twice) it will fix the Eclipse classpath so Eclipse can build the project. You can then revert the pom back to the head revision and so long as you don't run Update Project again it should continue to build.
I'm unclear on why that project specifies a non-standard source directory but uses the standard Maven layout, but this should at least get you into a working state within Eclipse.
Hi evevryone,
I am trying to add a maven project with Eclipse.
I have just installed eclipse Java EE Kepler.
I have also inlcuded the SVN and Maven Plug In for eclipse.
When I try to add an existing Maven project I cannot select the SVN repository. Does anyone know why?
Bottom right, hit m2e Marketplace and install the connector you need ;)
I installed JUNO Eclipse and then wanted to get the maven plugin for eclipse. After some searching I got to know that I can install the plugin using eclipse market place. So I searched the plugin and installed it successfully but when I restarted eclipse, I cannot see Maven option when I right click on any project. When I click on WINDOWS--> PREFERENCES , I can see the Maven option there. It means, maven got installed but not sure if completely.
I reinstalled it again but still no luck. Can anyone help?
FYI, I am using maven 3.0.4
If your project is still a standard Java project, then you have to enable Maven for this project. You can do this by right-clicking on the project, then choose Configure -> Convert to Maven project. Then you have to type group id, artifact id etc. and the pom.xml is created for you.
You need to make sure you have installed the Java JDK and add it to the Preferences -> Java -> Installed JREs.
I'm new in Maven,Java and Eclipse. I just download a project that uses Maven. I want to know how can import and run this project by Eclipse. I install m2eclipse and work with it but i don't know how can I import a existing project.
You need a maven plugin for Eclipse. m2eclipse or Apache Maven Plugin
This links will help you to import the project. M2eclipse Guideline and Importing maven project into eclipse
Use the Maven Eclipse Plugin. It generates the necessary files for the Eclipse IDE.
For running maven project you will need to install maven plugin in eclipse and than right click on it and select run as maven install
Here is an alternate way without using m2Eclipse plugin.
Install Maven and add the bat file to the path. Once this is done open a command prompt and go to the directory where the pom.xml file of your project exists. At this directory level do a:
mvn eclipse:eclipse
This will make your project Eclipse friendly. Once this is completed, import the project by using File Menu in Eclipse. File->Import. In dialog select Existng Projects into Workspace. Click Next. Then select the root directory as the directory from which you ran the mvn command. Click Finish.
You project should now be in your Eclipse IDE