Skip to content
/ core Public
forked from weld/core

Weld, including integrations for Servlet containers and Java SE, examples and documentation

License

Notifications You must be signed in to change notification settings

ljnelson/core

This branch is 77 commits behind weld/core:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4da010b · Nov 5, 2024
Jul 3, 2024
Jul 2, 2024
Oct 23, 2024
Jul 2, 2024
Jul 2, 2024
Aug 21, 2024
Aug 12, 2024
Jun 7, 2013
Nov 5, 2024
Jul 2, 2024
Jul 2, 2024
Aug 15, 2024
Jul 2, 2024
Jul 2, 2024
Jul 2, 2024
Oct 10, 2024
Oct 10, 2024
Jul 2, 2024
Aug 12, 2024
Jul 2, 2024
Nov 10, 2022
Nov 10, 2022
Jun 9, 2016
Jul 14, 2021
Sep 7, 2022
Oct 10, 2024

Weld

Gitter GH Actions Build Status Maven Central License

Weld is the reference implementation of CDI: Contexts and Dependency Injection for the Java EE Platform which is the Java standard for dependency injection and contextual lifecycle management and one of the most important and popular parts of the Java EE platform.

Weld is integrated into many Java EE application servers such as WildFly, JBoss Enterprise Application Platform, GlassFish, Oracle WebLogic and others. Weld can also be used in a Servlet-only environment (Tomcat, Jetty) or plain Java SE environment.

See http://weld.cdi-spec.org for more details.

Building Weld

To build Weld simply run

$ mvn clean install

Upgrading Weld in WildFly

Firstly, set the JBOSS_HOME environment property to point to your WildFly installation which already contains Weld 3 in older version:

$ export JBOSS_HOME=/opt/wildfly

Then, run the upgrade script:

$ mvn package -Pupdate-jboss-as -f jboss-as/pom.xml -Dweld.update.version=${weld.version}

In the above snippet, ${weld.version} is the version of Weld you want to use. Now you should have patched WildFly in JBOSS_HOME.

Running integration tests and the TCK on WildFly

Follow the steps above to set the JBOSS_HOME environment property and to upgrade Weld within WildFly. Then, run:

$ mvn clean verify -Dincontainer -f tests-arquillian/pom.xml

$ mvn clean verify -Dincontainer -f jboss-tck-runner/pom.xml

If you want to run a specific test you can use the -Dtest=<test_name> flag. For example

$ mvn clean verify -Dincontainer -f jboss-tck-runner/pom.xml -Dtest=FireEventTest

Will run all the tests defined in FireEventTest.

$ mvn clean verify -Dincontainer -f jboss-tck-runner/pom.xml -Dtest=FireEventTest#testInjectedEventAcceptsEventObject

Will only run the FireEventTest.testInjectedEventAcceptsEventObject() test method.

About

Weld, including integrations for Servlet containers and Java SE, examples and documentation

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.8%
  • Other 0.2%