O'Reilly logo

Java EE 7 Development with WildFly by Francesco Marchioni, Michal Matloka, Michal Cmil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the EJB application

As it is, you should be able to package your EJB project by issuing the following Maven goal and starting a command-line prompt from your project root:

mvn package

The preceding command will compile and package the application that needs to be copied into the deployments folder of your application server. This is fine; however, we can expect lots more from Maven by installing just a couple of plugins. In our case, we will configure our project to use Maven's WildFly plugin by adding the following section:

<build>
    <finalName>${project.artifactId}</finalName>
    <plugins>
        <!-- WildFly plugin to deploy the application -->
        <plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required