[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-8962) Creating a maven project from the jboss-javaee6-webapp fails due to unsatisfied constraints for CDI

Fred Bricon (JIRA) jira-events at lists.jboss.org
Thu May 19 10:16:01 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-8962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Bricon resolved JBIDE-8962.
--------------------------------

    Resolution: Done


Fixed in trunk. The CDI facet is installed only if the Dynamic Web Project facet is installed and > 2.5 or if EJB Facet is installed and > 3.0 

> 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

        


More information about the jbosstools-issues mailing list