[ http://jira.codehaus.org/browse/MNGECLIPSE-59?page=comments#action_67370
]
Marek Bieganski commented on MNGECLIPSE-59:
-------------------------------------------
getWorkspaceNature(Artifact) method iterates over all projects every time it is
called.
Isn't it a good idea to cache natures in map indexed with artifact key and
reset this map only if needed?
static Map getWorkspaceNatures() throws CoreException {
IProject[] projects =
ResourcesPlugin.getWorkspace().getRoot().getProjects();
Map natures=new Hashtable();
for (int i = 0; i < projects.length; ++i) {
IProject project = projects[i];
if (project.isOpen()) {
Maven2Nature nature = (Maven2Nature)project.getNature(NATURE_ID);
if (nature != null) {
natures.put(nature.getArtifactKey(),nature);
}
}
}
return natures;
}
> Allow artifact resolution from workspace projects
> -------------------------------------------------
>
> Key: MNGECLIPSE-59
> URL: http://jira.codehaus.org/browse/MNGECLIPSE-59
> Project: Maven 2.x Extension for Eclipse
> Type: New Feature
> Components: Dependency Resolver
> Versions: 0.0.4
> Reporter: Leonardo Quijano Vincenzi
> Assignee: Eugene Kuleshov
> Attachments: ArtifactResolver-try3.patch, MNGECLIPSE-59,
> mngeclipse-59-drew-hack.txt, project-artifacts.patch
>
>
> Provide artifact resolution from workspace projects, which override the same
> artifact from the local or remote repositories. This would allow to work with
> dependant Eclipse projects without specifying the Eclipse dependency manually.
> The workspace artifact resolution would have to be specified manually, since
> several Maven-Enabled projects in the same workspace could have the same
> artifact and version Id. Or at least automatic resolution with an optional
> override would be nice.
> More comments here:
> http://jira.codehaus.org/browse/MNGECLIPSE-58
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira