Java Reference
In-Depth Information
Deploying the EJB application
As it is, you should be able to package your EJB project by issuing the following
Maven goal, by starting a command-line prompt from your project root:
mvn install
The preceding command will compile and package the application that needs to be
copied into the deployments folder of your application server. That's 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 JBoss plugin by adding the following sec-
tion:
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>${version.jboss.maven.plugin}</version>
<configuration>
<filename>${project.build.finalName}.jar</filename>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
Search WWH ::




Custom Search