|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (2)
View Page HistoryThe maven-antrun-plugin has only two goals, bpel2java and wsdl2java.
This allows Maven 2 to run Ant tasks. To do so, there must be an existing project and maven-antrun-plugin must have its <target> tag configured (although it would still execute without the <target> tag, it would not do anything). Below is the template for maven-antrun-plugin's pom.xml.
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>${basedir}/src/main/resources/nrbc.bpel</bpel>
<overrideOlderBusinessClass>true</overrideOlderBusinessClass>
</bpelOption>
</bpelOptions>
</configuration>
<goals>
<goal>bpel2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
{code}
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>${basedir}/src/main/resources/nrbc.bpel</bpel>
<overrideOlderBusinessClass>true</overrideOlderBusinessClass>
</bpelOption>
</bpelOptions>
</configuration>
<goals>
<goal>bpel2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
{code}