Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[iam-dev] More extension point ideas.

While working on https://bugs.eclipse.org/255902 i discovered a useful
extension point we should add.

Currently, at the point of import of a project, the IMavenProject does
not have its artifacts resolved (even direct ones).  So I can't
configure the project's Servlet API at that point.

Idea #1)
I want a project configuration extension point that triggers when an
artifact is resolved and made available in the maven classpath
container.

That way I can bind the Servlet API Facet version based on the
existence of an artifact, or the existence of artifact content (like
the /javax/servlet/resources/web-app_2.5.xsd).

Idea #2)
It would also be nice to be able to attach a configuration event to
the existence of a specific plugin.
We could auto-configure the Java version / Jst compiler version that
way based on the existence of the maven-compiler-plugin.

In order for these to work, I would expect some guidelines on "if
value changes, and you need a recompile, flag it." so that all the
events can process and then the extension point manager can trigger
the recompile once (if so flagged)

This could have an added benefit when the pom is edited / saved
causing a cascading reconfigure at that point as well.  Which doesn't
work right now.

- Joakim Erdfelt


Back to the top