Community
Participate
Working Groups
I have two projects, one is the parent of the other. With only the child project pom editor open, add a depedency then manage it with the parent pom. This results in the error: Project build error: 'dependencies.dependency.version' for org.apache.httpcomponents:httpclient:jar is missing.
first I thought it's just a matter of command execution ordering but it's not that simple. It's EMF<->SSE bridging at it's best.. if you never open the parent file in current session, do the manage action then 1. if you open the parent file then, the changes are visible in the parent's ui/xml. but have not been persisted to file. (restarting the IDE will "remove" the entry from the file. 2. if you don't open it at all, save the child and just exit, the changes will not be there on restart in the parent file. if you have the parent file opened, it will be modified and will be marked as such until you save. the change does propagate to file.
reworked the managing of dependencies persistence level, relying on PomEdits class and editing of raw DOM model now). seems to fix the problem.
.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/