Creating a maven project from the jboss-javaee6-webapp fails due to unsatisfied
constraints for CDI
---------------------------------------------------------------------------------------------------
Key: JBIDE-8962
URL:
https://issues.jboss.org/browse/JBIDE-8962
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: maven
Affects Versions: 3.3.0.M1
Reporter: Fred Bricon
Assignee: Fred Bricon
Fix For: 3.3.0.M2
Create a new maven project using the jboss-javaee6-webapp archetype fails with the
following error :
{noformat}
One or more constraints have not been satisfied.
Constraints for CDI (Contexts and Dependency Injection) 1.0 have not been met.
{noformat}
The CDI Facet depends on the Web Module OR the EJB Module Facet. The CDI configurator is
declared as secondary to the Java configurator AND the wtp configurator. So it's
called BEFORE the WTP configurator, which is responsible for adding the Web or EJB
facets.
It needs to try adding the CDI facet only if Web or EJB is already configured, instead of
just logging an exception.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira