SeamFramework.orgCommunity Documentation

Chapter 1. Getting Started

Getting started with Weld Extensions is easy. If you are using Maven, then you can declare a dependency on Weld Extensions (org.jboss.weld:weld-extensions:${weld.extensions.version}, make sure you have the JBoss Maven repository enabled). Otherwise, add the jar to your compile time and runtime classpath.

Most of Weld Extensions has very few dependencies:

Tip

The POM for Weld Extensions specifies the versions required. If you are using Maven 3, you can easily import the dependencyManagement into your POM by declaring the following in your depdendencyManagement section:


         <dependency>
            <groupId>org.jboss.weld</groupId>
            <artifactId>weld-extensions</artifactId>
            <version>${weld.extensions.version}</version>
            <type>pom</type>
            <scope>import</scope>
         </dependency>

Some features of Weld Extensions require additional dependencies (which are declared optional, so will not be added as transitive dependencies):

org.javassist:javassist
Service Handlers, Unwrapping Producer Methods
javax.servlet:servlet-api
Accessing resources from the Servlet Context