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
jgarrison
Post subject: Error when closing maven dependency project  PostPosted: Jul 24, 2012 - 05:42 PM



Joined: Jul 24, 2012
Posts: 2

By default we have MyEclipse->Maven4MyEclipse->Resolve dependencies from Workspace projects configured to be on. This generally works well for us.

However when we close a maven project that a Maven Webapp depends on, we get the following error for the webapp: "Invalid classpath publish/export dependency [project that was closed]. Project entries not supported.

We have found that we can get rid of the error by configuring the webapp by unchecking "Resolve dependencies from Workspace projects" and apply the change. Once it has been applied the error goes away and all is happy... accept we cant resolve workspace dependencies. Luckily we can immediately go recheck it and apply it again and now all the non-closed dependencies will be resolved and the closed project dependency will be fetched from our company repo.

So what I was wondering is if there is some bit of obvious project configuration we are missing or to know if this is a known issue so we can stop thinking about it and just deal with the mild annoyance.

MyEclipse version: 10.5-20120615
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jul 25, 2012 - 07:36 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2518

jgarrison,

I've filed a bug for this issue, we'll investigate and get back to you on whether a workaround is possible. There is no configuration or preference that would change this behavior, but perhaps we'll be able to put a fix into our next release.

Thank you for your report.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-piotr
Post subject:   PostPosted: Jul 25, 2012 - 02:35 PM



Joined: Feb 10, 2011
Posts: 67

jgarrison,

I have reproduced your issue and I have found that you can run Maven4MyEclipse -> "Update project dependencies" on the selected project from popup menu, which will remove the error. This action is intended to be used in case of such problems. Also, if the project got replaced with a JAR from repository in Maven Dependencies container, you can safely remove the error from problems view by simply deleting it (right click -> delete) without running Update project dependencies action. I hope this solution will be agreeable for you. Let me know how it works for you!

_________________
Piotrek
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
jgarrison
Post subject:   PostPosted: Jul 31, 2012 - 08:28 PM



Joined: Jul 24, 2012
Posts: 2

Hi,

Thanks for the reply. We had previously been just doing Maven4MyEclipse -> Update Dependencies and that wasn't getting rid of the error. Following Piotr's advice I did Maven4MyEclipse -> Update Project Configuration and that solved the issue.

If the bug Brian submitted is still open I think a nice enhancement would be to run this automatically when a dependency is closed.

Thanks for the help
 
 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