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
gang.yang
Post subject: Build path not auto updated after adding new maven dependenc  PostPosted: Mar 20, 2012 - 09:13 PM



Joined: Jul 06, 2009
Posts: 13

Hi,

I don't remember having this problem. But I'm using MyEclipse 9. After adding some new maven dependencies, the build path libraries was not automatically updated. So I end up being able to build the project with maven, but myeclipse shows error because of the missing new jars. How do I make myeclipse to update the build path libraries with the maven dependencies?

Thanks,
Gang
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Mar 21, 2012 - 11:13 AM



Joined: Nov 11, 2010
Posts: 2491

Gang,

Sorry that you are seeing this issue.

Can you give us some more details to help investigate the issue?

1) Can you please share the installation details from MyEclipse > Installation Summary > Installation Details ? Paste them here for us.

2) Can you clarify if the issue exists with all the added dependencies or just specific ones. Can you please list out the specific ones ?

3) I added a jar to the Maven repository from Import > Maven4MyEclipse > Import jar to Maven repository and then added the jar to the project from project > Maven4MyEclipse > Add Dependency wizard. I could see the jar auto updated in the project's build path.

4) Please list out the steps in detail which you are following for us to help replicate it at our end.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gang.yang
Post subject:   PostPosted: Mar 21, 2012 - 05:02 PM



Joined: Jul 06, 2009
Posts: 13

Hi, Swapna,

Thanks for the reply. Your item 3) lead me to look into Maven4MyEclipse settings. I had Dependeny Management turned off (this is a replicated dev env at home). After turning it on, it does what I expected (as in my office dev env). So the problem is solved.

To clarify, my problem was not to import a dependency and then add it to the project's dependency via Maven4MyEclipse wizard. My problem was to add a dependency by manipulating the pom.xml of the project. After saving the pom.xml, MyEclipse did not automatically analyze the pom.xml dependencies and add it to MyEclipse's build path libraries. The cause was that I did not turn on Maven4MyEclipse's Depdendency Management. After doing so, it works.

Gang
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Mar 27, 2012 - 05:56 AM



Joined: Nov 11, 2010
Posts: 2491

Gang,

Glad that it is working.
Do let us know if you have 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