This addon provides standalone functionality, and exports services for use in other addons. The javaee addon enables creation of artifacts (classes, descriptors) with focus on the Java EE 6 specification (CDI, JSF, JMS, JPA, etc…)
This Addon requires the following installation steps.
To use this addon, you must add it as a dependency in the pom.xml of your forge-addon classified artifact:
<dependency>
<groupId>org.jboss.forge.addon</groupId>
<artifactId>javaee</artifactId>
<classifier>forge-addon</classifier>
<version>${version}</version>
</dependency>- Projects addon integration
-
This addon provides several
ProjectFacetimplementations for use in developingforge-addonprojects. By using the javaee addon, it is possible to add Java EE capabilities to a specific project by adding the required technology as a provided dependency in the build descriptor.Descriptors are handled by the ShrinkWrap Descriptors project. Read the Facets addon README to learn how to handle facets in Forge. Below is a table that lists each facet and its purpose.
Facet Behavior when installing in a project CDIFacetAdds the necessary CDI 1.x dependencies to the build descriptor. Adds a
META-INF/beans.xmlto your resources directory or toWEB-INF/beans.xmlif in a Web project. The facet provides access to theBeansDescriptorobject to allow manipulation of thebeans.xmlfile in a fluent way.EJBFacetAdds the necessary EJB 3.x dependencies to the build descriptor.
JAXWSFacetAdds the necessary JAX-WS dependencies to the build descriptor.
JMSFacetAdds the necessary JMS 1.1 dependencies to the build descriptor.
JSTLFacetAdds the necessary JSTL dependencies to the build descriptor.
JTAFacetAdds the necessary JTA dependencies to the build descriptor.
PersistenceFacetAdds the necessary JPA 2.x dependencies to the build descriptor. Adds a
META-INF/persistence.xmlto your project. Provides access to thePersistenceDescriptorobject to allow manipulation of thepersistence.xmlfile in a fluent way.PersistenceMetaModelFacetAdds the necessary configuration in the build descriptor to enable JPA 2.x meta-model generation.
ServletFacetAdds the necessary Servlet 3.x dependencies to the build descriptor. Adds a
WEB-INF/web.xmlto your project. Provides access to theWebAppDescriptorobject to allow manipulation of theweb.xmlfile in a fluent way. - JPA configuration
-
The javaee addon supports out-of-the-box configuration of the following JPA containers:
Container Tested Version(s) (Where applicable) JBoss WildFly
-
JBoss AS
6.x / 7.x
JBoss EAP
6.x / 6.1.x
Oracle WebLogic
12c
Oracle GlassFish
3.x
TomEE
1.5.x
SAP Lean Java Server
-
Non-JTA Container
-
Custom JDBC container
-
Custom JTA container
-
And the following JPA Providers:
-
Hibernate
-
EclipseLink
-
OpenJPA
-
Infinispan
-