Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9302

Maven CDI Configurator: Update project configuration fails on EJB / WAR project with CDI dependency

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.3.0.M2
    • Fix Version/s: 3.3.0.M3
    • Component/s: maven
    • Labels:
      None
    • Environment:

      Eclipse 3.7, WTP 3.3, m2e 1.0, JBoss Maven CDI Configurator 1.2.0.v20110624-0731-H5-M2, Java 1.6.0_23 64bit, Windows 7 64bit

    • Steps to Reproduce:
      Hide
      1. Create EJB project (File -> New -> EJB Project)
      2. Convert to maven project (Configure -> Convert to maven project)
        packaging = ejb
      3. Delete generated src/main/resources/META-INF/ejb-jar.xml
      4. Add CDI dependency to pom.xml
        <dependency>
            <groupId>javax.enterprise</groupId>
            <artifactId>cdi-api</artifactId>
            <version>1.0-SP1</version>
        </dependency>
        
      5. Save pom.xml and the error message pops up.
      Show
      Create EJB project (File -> New -> EJB Project) Convert to maven project (Configure -> Convert to maven project) packaging = ejb Delete generated src/main/resources/META-INF/ejb-jar.xml Add CDI dependency to pom.xml <dependency> <groupId> javax.enterprise </groupId> <artifactId> cdi-api </artifactId> <version> 1.0-SP1 </version> </dependency> Save pom.xml and the error message pops up.

      Description

      Updating the project configuration (Menu Maven -> Update project configuration) for a simple maven EJB/WAR project with a CDI dependency (javax.enterprise:cdi-api:1.0-SP4) results in the following error message:

      Errors occurred during the build.
      Errors running builder 'Maven Project Builder' on project 'sandbox-ejb'.
      Cannot compare versions of different facets to each other. 
      Attempted to compare version 3.1 of facet jst.ejb with version 2.5 of facet jst.web.
      

      The error disappears when the "CDI facet" in Preferences/JBoss Tools/JBoss Maven Integration is disabled.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                fbricon Fred Bricon
                Reporter:
                gonne Gonne Martens
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: