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:


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:


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

Service Handlers, Unwrapping Producer Methods
Accessing resources from the Servlet Context