alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (pom.xml)

This example Apache CXF source code file (pom.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

apache, apache, asf, asf, corporation, cxf, jax-ws, license, license, of, see, see, version, you

The Apache CXF pom.xml source code

<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements. See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership. The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
-->
<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
    <groupId>org.apache.cxf
    <artifactId>cxf-rt-frontend-jaxws
    <packaging>jar
    <version>2.3.1
    <name>Apache CXF Runtime JAX-WS Frontend
    <url>http://cxf.apache.org

    <parent>
        <groupId>org.apache.cxf
        <artifactId>cxf-parent
        <version>2.3.1
        <relativePath>../../../parent/pom.xml
    </parent>

    <properties>
        <cxf.spi-dir>spi-2.1
    </properties>
    <dependencies>
        <dependency>
            <groupId>junit
            <artifactId>junit
            <scope>test
        </dependency>
        <dependency>
            <groupId>org.easymock
            <artifactId>easymockclassextension
            <scope>test
        </dependency>
        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-testutils
            <version>${project.version}
            <scope>test
        </dependency>

        <dependency>
             <groupId>xml-resolver
             <artifactId>xml-resolver
         </dependency>

        <dependency>
            <groupId>asm
            <artifactId>asm
        </dependency>
        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-api
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-rt-core
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-rt-bindings-soap
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-rt-bindings-xml
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-rt-frontend-simple
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-rt-transports-http
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-rt-transports-local
            <version>${project.version}
            <optional>true
        </dependency>

        <dependency>
            <groupId>org.apache.cxf
            <artifactId>cxf-rt-ws-addr
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>org.springframework
            <artifactId>spring-web
            <scope>provided
            <version>${cxf.spring.version}
        </dependency>
        <dependency>
            <groupId>org.springframework
            <artifactId>spring-webmvc
            <scope>provided
            <version>${cxf.spring.version}
        </dependency>
        <dependency>
            <groupId>org.springframework
            <artifactId>spring-aop
            <scope>provided
        </dependency>
        <dependency>
            <groupId>org.springframework
            <artifactId>spring-beans
            <scope>provided
        </dependency>
        <dependency>
            <groupId>org.springframework
            <artifactId>spring-context
            <scope>provided
        </dependency>
        <dependency>
            <groupId>org.springframework
            <artifactId>spring-core
            <scope>provided
        </dependency>
        <dependency>
            <groupId>${cxf.servlet-api.group}
            <artifactId>${cxf.servlet-api.artifact}
            <scope>provided
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo
                <artifactId>build-helper-maven-plugin
                <executions>
                    <execution>
                        <id>add-source
                        <phase>generate-sources
                        <goals>
                            <goal>add-source
                        </goals>
                        <configuration>
                            <sources>
                                <source>${basedir}/src/main/generated
                            </sources>
                        </configuration>
                    </execution>
                    <execution>
                         <id>add-spi
                         <phase>generate-resources
                         <goals>
                             <goal>add-resource
                         </goals>
                         <configuration>
                             <resources>
                                 <resource>
                                     <directory>${basedir}/src/main/${cxf.spi-dir}
                                 </resource>
                             </resources>
                         </configuration>
                     </execution>

                </executions>
            </plugin>
        </plugins>
    </build>


    <profiles>
        <profile>
            <id>jaxws22
            <dependencies>
                <dependency>
                    <groupId>org.apache.geronimo.specs
                    <artifactId>geronimo-jaxws_2.2_spec
                </dependency>
            </dependencies>
            <properties>
                <cxf.spi-dir>spi-2.2
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo
                        <artifactId>build-helper-maven-plugin
                        <executions>
                            <execution>
                                <id>add-jaxws22-source
                                <phase>generate-sources
                                <goals>
                                    <goal>add-source
                                </goals>
                                <configuration>
                                    <sources>
                                        <source>${basedir}/src/main/jaxws22
                                    </sources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>add-jaxws22-test-source
                                <phase>generate-test-sources
                                <goals>
                                    <goal>add-test-source
                                </goals>
                                <configuration>
                                    <sources>
                                        <source>${basedir}/src/test/jaxws22
                                    </sources>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins
                        <artifactId>maven-dependency-plugin
                        <executions>
                             <execution>
                                 <id>create-endorsed-dir
                                 <phase>validate
                                 <goals>
                                     <goal>copy
                                 </goals>
                                 <configuration>
                                     <artifactItems>
                                         <artifactItem>
                                             <groupId>org.apache.geronimo.specs
                                             <artifactId>geronimo-jaxws_2.2_spec
                                             <outputDirectory>${basedir}/target/endorsed
                                         </artifactItem>
                                     </artifactItems>
                                 </configuration>
                             </execution>
                         </executions>
                    </plugin>
                </plugins>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.apache.maven.plugins
                            <artifactId>maven-compiler-plugin
                            <configuration>
                                <compilerArguments>
                                    <endorseddirs>${basedir}/target/endorsed
                                </compilerArguments>
                            </configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
        <profile>
            <id>ibmjdk
            <activation>
                <property>
                    <name>java.vendor
                    <value>IBM Corporation
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.sun.xml.parsers
                    <artifactId>jaxp-ri
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>jdk15
            <activation>
                <jdk>1.5
            </activation>
            <properties>
                <cxf.spi-dir>spi-2.2
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.apache.geronimo.specs
                    <artifactId>geronimo-activation_1.1_spec
                </dependency>
                <dependency>
                    <groupId>org.apache.geronimo.specs
                    <artifactId>geronimo-annotation_1.0_spec
                </dependency>
                <dependency>
                    <groupId>${cxf.stax.impl.groupId}
                    <artifactId>${cxf.stax.impl.artifactId}
                </dependency>
                <dependency>
                    <groupId>javax.xml.soap
                    <artifactId>saaj-api
                </dependency>
                <dependency>
                     <groupId>org.apache.geronimo.specs
                     <artifactId>geronimo-jaxws_2.2_spec
                 </dependency>
                 <dependency>
                     <groupId>org.apache.geronimo.specs
                     <artifactId>geronimo-ws-metadata_2.0_spec
                 </dependency>
                 <dependency>
                     <groupId>${cxf.saaj.impl.groupId}
                     <artifactId>${cxf.saaj.impl.artifactId}
                 </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo
                        <artifactId>build-helper-maven-plugin
                        <executions>
                            <execution>
                                <id>add-jaxws22-source
                                <phase>generate-sources
                                <goals>
                                    <goal>add-source
                                </goals>
                                <configuration>
                                    <sources>
                                        <source>${basedir}/src/main/jaxws22
                                    </sources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>add-jaxws22-test-source
                                <phase>generate-test-sources
                                <goals>
                                    <goal>add-test-source
                                </goals>
                                <configuration>
                                    <sources>
                                        <source>${basedir}/src/test/jaxws22
                                    </sources>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF pom.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.