MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dinesh19aug
Post subject: Existing Maven projects not recognized as maven prjects  PostPosted: Jul 17, 2012 - 04:27 PM



Joined: Jul 17, 2012
Posts: 2

Details:
Myeclipse version 10.5
JDK 1.5
Maven 2.2.1

What am I trying to do:
I have upgraded from MyEclipse 8.6 to 10.5 and I am checking out the existing Maven web project from SVN. However I do not see Maven4Eclipse in the Project options.
The maven symbol "M" which usually shows up if a project has maven capabilities is also missing. I could not see an option Add maven capabilities".

Steps :
1. Checkout maven project from SVN(which worked in Myeclipse 8.5 version).
2. Right click on project and I expect to see Maven4Eclipse option but that is missing.

I can do Maven Clean instal using Project--> Run As --> Maven --> Clean install and the project builds fine. However the project folder structure remains as generic project, it is not even recognized as Java project.

So far I have tried all these options:
1. uninstalling Maven
2. Enable DTP (deprecated feature) .Select Windows--> Prefences-->General-Capabilities--> Myeclipse Standard tools--> Advanced --> WTP Depreacted(Check)

However nothing works. Any help??
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Jul 18, 2012 - 06:41 AM



Joined: Mar 09, 2011
Posts: 713

dinesh,

Sorry you are seeing this issue.

When you checked out your project from SVN, you should have received a prompt to upgrade the project for MyEclipse 9 and above. You should chose to upgrade as Maven support has changed from release 9. If you have not already done so, you can upgrade by going to the menu bar and choosing MyEclipse->Upgrade Projects for MyEclipse 9 and above...

If this is not the cause of the problem, can you confirm that the project is stored in SVN as a complete MyEclipse project? If not you may need to check it out as a Maven project. To check out maven projects, use File->Import->Maven4MyEclipse->Checkout Maven Projects from SCM. In the dialog that comes up, you will see a link near the bottom of the window for SCM connectors. You need to click this and install the m2e Team provider for the SVN plug-in you're using (subclipse or subversive). Once the team provider is installed and MyEclipse restarted, you can check out pure Maven projects from SVN and they will be checked out as MyEclipse projects. You don't need to do this if the SVN project is already a MyEclipse project.

If none of this helps, please attach your .project file for the project that is causing problems, so we can investigate further.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
dinesh19aug
Post subject: Resolved  PostPosted: Aug 15, 2012 - 09:33 PM



Joined: Jul 17, 2012
Posts: 2

support-tony wrote:
dinesh,

Sorry you are seeing this issue.

When you checked out your project from SVN, you should have received a prompt to upgrade the project for MyEclipse 9 and above. You should chose to upgrade as Maven support has changed from release 9. If you have not already done so, you can upgrade by going to the menu bar and choosing MyEclipse->Upgrade Projects for MyEclipse 9 and above...

If this is not the cause of the problem, can you confirm that the project is stored in SVN as a complete MyEclipse project? If not you may need to check it out as a Maven project. To check out maven projects, use File->Import->Maven4MyEclipse->Checkout Maven Projects from SCM. In the dialog that comes up, you will see a link near the bottom of the window for SCM connectors. You need to click this and install the m2e Team provider for the SVN plug-in you're using (subclipse or subversive). Once the team provider is installed and MyEclipse restarted, you can check out pure Maven projects from SVN and they will be checked out as MyEclipse projects. You don't need to do this if the SVN project is already a MyEclipse project.

If none of this helps, please attach your .project file for the project that is causing problems, so we can investigate further.


Thanks Tony. This issue is resolved.
1. The project was already updated to Myeclipse 9, so that did not help.
2. I did not want to go this route because then I knew I would not be able to commit the files to SVN from Myeclipse.

What worked.
1. Checked out the project from SVN like I did from previous Myeclipse 8.6
2. Right click on the project--> Configure--> Convert to maven project...

That's it.

In Myeclipse 8.6, all I had to was Right click on prject and and click on Enable Maven dependencies, but this option was not there in Myeclipse, in fact it was moved under Configure--> Convert to maven...".

I am not sure if I am the only one who did not knew about this new options, but if there are other people who are asking about this then please add a tutorial about this on Myeclipse tutorials section.

Thanks,
Dinesh
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Aug 16, 2012 - 05:28 AM



Joined: Nov 11, 2010
Posts: 2148

Dinesh,

Glad that you got it working. We will surely do the needful about the new options.
Do let us know if you see any issues.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits