
The maven-antrun-plugin has only two goals, bpel2java and wsdl2java.
This allows Maven 2 to generate all codes to deploy and run a SOA application based on bpel process using bpel2java or just a Web Service using wsdl2java.
h2. bpel2java goal
{code:XML}
<dependencies>
<!-- Add maven-wsoui-plugin dependency -->
<dependency>
<groupId>com.ebmwebsourcing.easiestdemo</groupId>
<artifactId>maven-wsoui-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
...
<build>
<plugins>
<plugin>
<groupId>com.ebmwebsourcing.easiestdemo</groupId>
<artifactId>maven-wsoui-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<bpelOptions>
<bpelOption>
<bpel>
<!-- Set your bpel file here .... -->
${basedir}/src/main/resources/nrbc.bpel
</bpel>
</bpelOption>
</bpelOptions>
</configuration>
<goals>
<goal>bpel2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>