<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.apache.juddi.example</groupId> | |
<artifactId>juddi-examples</artifactId> | |
<version>3.1.5-SNAPSHOT</version> | |
<relativePath>../pom.xml</relativePath> | |
</parent> | |
<artifactId>wsdl2uddi-lifecycle</artifactId> | |
<name>jUDDI Example WSDL2UDDI Deployment Lifecycle</name> | |
<description>Demonstrates the steps taken to publish a webservice using the WSDL file</description> | |
<properties> | |
<cxf.version>2.3.1</cxf.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<artifactId>juddi-client</artifactId> | |
<groupId>org.apache.juddi</groupId> | |
<version>${project.parent.version}</version> | |
</dependency> | |
<dependency> | |
<artifactId>uddi-ws</artifactId> | |
<groupId>org.apache.juddi</groupId> | |
<version>${project.parent.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>servlet-api</artifactId> | |
<version>2.5</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-rt-frontend-jaxws</artifactId> | |
<version>${cxf.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-rt-transports-http</artifactId> | |
<version>${cxf.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>cglib</groupId> | |
<artifactId>cglib</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>cglib</groupId> | |
<artifactId>cglib-nodep</artifactId> | |
<version>2.1_3</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<finalName>wsdl2uddi</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
<configuration> | |
<excludes> | |
<exclude>*.xml</exclude> | |
</excludes> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<skip>false</skip> | |
<includes> | |
<include>**/*Test.java</include> | |
</includes> | |
</configuration> | |
</plugin> | |
<!-- examples are not very useful from a maven repo, so don't put it there --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-deploy-plugin</artifactId> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>default</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<id>setup</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.1.1</version> | |
<executions> | |
<execution> | |
<phase>test</phase> | |
<goals> | |
<goal>java</goal> | |
</goals> | |
<configuration> | |
<mainClass>org.apache.juddi.example.wsdl2uddi.Setup</mainClass> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<id>find</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.1.1</version> | |
<executions> | |
<execution> | |
<phase>test</phase> | |
<goals> | |
<goal>java</goal> | |
</goals> | |
<configuration> | |
<mainClass>org.apache.juddi.example.wsdl2uddi.Find</mainClass> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<id>deploy</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.cargo</groupId> | |
<artifactId>cargo-maven2-plugin</artifactId> | |
<version>1.3.3</version> | |
<configuration> | |
<container> | |
<containerId>tomcat6x</containerId> | |
</container> | |
<configuration> | |
<type>existing</type> | |
<home>${basedir}/../../juddi-tomcat-${project.parent.version}</home> | |
</configuration> | |
<deployables> | |
<deployable> | |
<groupId>org.apache.juddi.example</groupId> | |
<artifactId>wsdl2uddi-lifecycle</artifactId> | |
<type>war</type> | |
</deployable> | |
</deployables> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<id>deploydev</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.cargo</groupId> | |
<artifactId>cargo-maven2-plugin</artifactId> | |
<version>1.3.3</version> | |
<configuration> | |
<container> | |
<containerId>tomcat6x</containerId> | |
</container> | |
<configuration> | |
<type>existing</type> | |
<home>${basedir}/../../juddi-tomcat/target/tomcat/apache-tomcat-6.0.26</home> --> | |
</configuration> | |
<deployables> | |
<deployable> | |
<groupId>org.apache.juddi.example</groupId> | |
<artifactId>wsdl2uddi-lifecycle</artifactId> | |
<type>war</type> | |
</deployable> | |
</deployables> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
<packaging>war</packaging> | |
</project> | |