Java Reference
In-Depth Information
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${version.exec.plugin}</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<workingDirectory>${project.build.directory}/
exec-working-directory</workingDirectory>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>com.packtpub.as7development.chapter3.client.RemoteEJBClient</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
As you can see in the preceding code, besides the maven-compiler-plugin ar-
chetype that we have omitted for the sake of brevity (we have discussed it in the
server project), we have included exec-maven-plugin that adds the ability to ex-
ecute Java programs using the exec goal.
Once all the plugins are in place, you can compile and execute your project by issu-
ing the following Maven goal:
Search WWH ::




Custom Search