You need to implement
org.eclipse.m2e.core.project.configurator.AbstractProjectConfigurator.configure(ProjectConfigurationRequest
request, IProgressMonitor monitor) which will be called during maven
project import or a manual trigger of "Maven > Update Project
Configuration". Reading
can be helpful (or not!)
Examples of Facet installation can be found in the source of JBoss Tools
(ex:
)
The configurator needs to be declared in both plugin.xml and
lifecycle-mapping.xml, present at the root of the eclipse plugin.
HIH
Fred Bricon
On 23/09/2011 16:18, Rob Cernich wrote:
Hey Snjeza,
Thanks for the reply.
> If you want to create a Maven project using a WTP project wizard
> (dynamic web project, ejb project, ear project, utility project ...),
> you have to add the JBoss Maven integration facet that will add the
> Maven builder/nature to the project. It will create pom.xml and the
> corresponding maven plugin (war, ejb, ear) and enable you to add
> Maven
> dependencies using Maven Library Provider
> (
https://issues.jboss.org/browse/JBIDE-4565).
>
> The JBoss Maven Integration facet is also obliged if you want to use
> some of the JBoss Maven configurators (JSF, CDI, Seam 2, Portlet,
> Hibernate ...).
This use case helps me better understand the purpose of the maven facet.
On a related note, is there a hook for configuring project facets during a project
import, specifically import existing maven project?
Thanks again,
Rob
_______________________________________________
jbosstools-dev mailing list
jbosstools-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosstools-dev