1 Reply Latest reply on Jan 19, 2010 5:15 PM by Alexander Bell

    Confusion on WELD jars in maven repository

    alberto Gori Novice

      I was using




      <dependency>
           <groupId>javax.enterprise</groupId>
           <artifactId>cdi-api</artifactId>
           <version>1.0-CR1</version>
      </dependency>





      in conjunction with




      <dependency>
           <groupId>org.jboss.weld.servlet</groupId>
           <artifactId>weld-servlet</artifactId>
           <version>1.0.0-CR1</version>
      </dependency>





      Then I realized that @Typed annotation is not available in the API. So I upgraded to




      <dependency>
           <groupId>javax.enterprise</groupId>
           <artifactId>cdi-api</artifactId>
           <version>1.0</version>
      </dependency>





      that is in the repository. But now I don't know if weld-servlet support @Typed annotation, also because there is no 1.0.0 version in the repository.


      Which depdencies should I choose to get @Typed support?

        • 1. Re: Confusion on WELD jars in maven repository
          Alexander Bell Newbie

          I use the following dependencies (running on Tomcat)




                  <dependency>
                      <groupId>org.jboss.weld</groupId>
                      <artifactId>weld-api</artifactId>
                      <version>1.0</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.weld</groupId>
                      <artifactId>weld-core</artifactId>
                      <version>1.0.0</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.weld</groupId>
                      <artifactId>weld-spi</artifactId>
                      <version>1.0</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.weld.servlet</groupId>
                      <artifactId>weld-servlet</artifactId>
                      <version>1.0.0-CR2</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.weld.servlet</groupId>
                      <artifactId>weld-servlet-int</artifactId>
                      <version>1.0.0-CR2</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.weld.servlet</groupId>
                      <artifactId>weld-tomcat-support</artifactId>
                      <version>1.0.0-CR2</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.weld</groupId>
                      <artifactId>weld-logger</artifactId>
                      <version>1.0.0-CR2</version>
                  </dependency>