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, cxf, cxf, export-package, foundation, foundation, implementation-version, import-package, license, license, see, software, specification-version

The Apache CXF pom.xml source code

<?xml version="1.0"?>
<!--
  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-bundle
    <packaging>bundle
    <name>Apache CXF Bundle Jar
    <version>2.3.1
    <url>http://cxf.apache.org

    <parent>
        <groupId>org.apache.cxf
        <artifactId>cxf-bundle-parent
        <version>2.3.1
    </parent>
    <properties>
         <bundle.symbolic.name>${project.groupId}.bundle
     </properties>

    <dependencies>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-common-utilities
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-common-schemas
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-common
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-validator
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-wsdlto-core
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-misctools
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-wsdlto-databinding-jaxb
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-corba
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-databinding-xmlbeans
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-databinding-sdo
            <version>${project.version}
            <optional>true
            <exclusions>
                <exclusion>
                    <groupId>org.apache.tuscany.sdo
                    <artifactId>tuscany-sdo-tools
                </exclusion>
                <exclusion>
                    <groupId>org.apache.tuscany.sdo
                    <artifactId>tuscany-sdo-impl
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-wsdlto-frontend-jaxws
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-wsdlto-frontend-javascript
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-tools-java2ws
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-api
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-core
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-management
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-transports-local
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-transports-http
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-transports-http-osgi
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-transports-http-jetty
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-transports-jms
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-bindings-soap
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-bindings-corba
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-bindings-coloc
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-bindings-object
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-bindings-xml
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-bindings-http
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-databinding-aegis
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-wstx-msv-validation
            <version>${project.version}
            <exclusions>
                <exclusion>
                    <groupId>net.java.dev.msv
                    <artifactId>msv-core
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-databinding-jaxb
            <version>${project.version}
        </dependency>

        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-frontend-jaxws
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-frontend-js
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-frontend-simple
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-frontend-jaxrs
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-ws-security
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-ws-policy
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-ws-addr
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-ws-rm
            <version>${project.version}
        </dependency>
        <dependency>
            <groupId>${project.groupId}
            <artifactId>cxf-rt-javascript
            <version>${project.version}
        </dependency>
        <dependency>
               <groupId>com.sun.xml.fastinfoset
               <artifactId>FastInfoset
               <optional>true
          </dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix
                <artifactId>maven-bundle-plugin
                <extensions>true
                <configuration>
                    <instructions>
                        <Implementation-Title>Apache CXF
                        <Implementation-Vendor>The Apache Software Foundation
                        <Implementation-Vendor-Id>org.apache
                        <Implementation-Version>${cxf.osgi.version.clean}
                        <Specification-Title>Apache CXF
                        <Specification-Vendor>The Apache Software Foundation
                        <Specification-Version>${cxf.osgi.version.clean}
                        <DynamicImport-Package>
                            com.sun.xml.bind.api,
                            com.sun.xml.bind.api.*,
                            com.sun.xml.internal.bind.api,
                            com.sun.xml.internal.bind.api.*,
                            com.ctc.wstx.*,
                            org.apache.commons.logging.*,
                            org.slf4j.*,
                            org.slf4j.impl.*,
                            org.eclipse.jetty.jmx,
                            org.eclipse.jetty.jmx.*
                        </DynamicImport-Package>
                        <Import-Package>
                            !org.apache.cxf.*,
                            repackage;resolution:=optional,
                            !META-INF.cxf,
                            !META-INF.cxf.osgi,
                            antlr*;resolution:=optional,
                            com.ibm*;resolution:=optional,
                            com.sun*;resolution:=optional,
                            com.ctc.wstx.msv*;resolution:=optional,
                            org.codehaus.stax2*;resolution:=optional,
                            commonj.sdo*;resolution:=optional,
                            javax.ws.rs*;resolution:=optional,
                            javax.resource*;resolution:=optional,
                            javax.xml.soap,
                            junit.framework*;resolution:=optional,
                            net.sf.cglib*;resolution:=optional;version="[2.1.3, 3.0.0)",
                            org.apache.abdera*;resolution:=optional;version="[1.0,2)",
                            org.apache.commons.lang*;resolution:=optional;version="[2.4,3)",
                            org.apache.commons.codec*;resolution:=optional,
                            org.apache.commons.pool*;resolution:=optional,
                            org.apache.log4j*;resolution:=optional,
                            org.apache.mina*;resolution:=optional,
                            org.apache.tuscany.sdo*;resolution:=optional,
                            org.apache.velocity*;resolution:=optional,
                            org.apache.xmlbeans*;resolution:=optional,
                            org.apache.xml.security*;resolution:=optional,
                            org.apache.ws.security*;resolution:=optional,
                            org.codehaus.jra*;resolution:=optional,
                            org.codehaus.jettison*;resolution:=optional,
                            org.eclipse.emf*;resolution:=optional,
                            org.eclipse.jetty*;resolution:=optional,
                            org.jaxen*;resolution:=optional,
                            org.jdom*;resolution:=optional,
                            org.junit*;resolution:=optional,
                            org.mozilla.javascript*;resolution:=optional,
                            org.objectweb.asm*;version="[2.0,4)",
                            org.slf4j*;resolution:=optional;version="[1.5,2)",
                            org.springframework*;resolution:=optional;version="[2.5,4)",
                            javax.activation;version="[0.0,2)",
                            javax.annotation;version="[0.0,2)",
                            javax.jms;resolution:=optional;version="[0.0,2)",
                            javax.jws*;version="[0.0,3)",
                            javax.mail*;version="[0.0,2)",
                            javax.servlet.*;version="[0.0,4)";resolution:=optional,
                            javax.xml.stream*;version="[0.0,2)",
                            javax.xml.ws.spi.http*;version="[0.0,3)";resolution:=optional,
                            javax.xml.ws*;version="[0.0,3)",
                            *
                        </Import-Package>
                        <Export-Package>
                            org.apache.cxf.*;version=${cxf.osgi.version.clean};-split-package:=merge-first,
                            '=META-INF.cxf.osgi',
                            '=META-INF.cxf'
                        </Export-Package>
                        <_failok>true
                        <_nouses>true
                        <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-shade-plugin
                <executions>
                    <execution>
                        <phase>package
                        <goals>
                            <goal>shade
                        </goals>
                        <configuration>
                            <shadedGroupFilter>org.apache.cxf
                            <shadedArtifactAttached>false
                            <createSourcesJar>${createSourcesJar}
                            <promoteTransitiveDependencies>true
                            <createDependencyReducedPom>true
                            <filters>
                                <filter>
                                    <artifact>${project.groupId}:${project.artifactId}
                                    <excludes>
                                        <exclude>org/**
                                    </excludes>
                                </filter>
                            </filters>

                            <transformers>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
                                    <projectName>Apache CXF
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                    <resource>META-INF/spring.handlers
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                    <resource>META-INF/services/com.sun.tools.xjc.Plugin
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                    <resource>META-INF/spring.schemas
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                    <resource>META-INF/cxf/cxf.extension
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
                                    <resource>META-INF/extensions.xml
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
                                    <resource>META-INF/cxf/extensions.xml
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
                                    <resource>META-INF/bus-extensions.xml
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
                                    <resource>META-INF/cxf/bus-extensions.xml
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
                                    <resource>META-INF/wsdl.plugin.xml
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
                                    <resource>META-INF/tools.service.validator.xml
                                </transformer>
                                <transformer implementation="org.apache.cxf.maven.PluginTransformer">
                                    <resource>META-INF/tools-plugin.xml
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
                                    <resource>META-INF/cxf/java2wsbeans.xml
                                </transformer>
                                <transformer implementation="org.apache.cxf.maven.CXFAllTransformer" />
                            </transformers>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>deploy
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins
                        <artifactId>maven-dependency-plugin
                        <executions>
                            <execution>
                                <id>unpack-plugin-sources
                                <phase>generate-sources
                                <goals>
                                    <goal>unpack
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>org.apache.cxf
                                            <artifactId>cxf-codegen-plugin
                                            <version>${project.version}
                                            <classifier>sources
                                        </artifactItem>
                                    </artifactItems>
                                    <outputDirectory>${project.build.directory}/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.