|
Apache CXF example source code file (pom.xml)
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-parent <packaging>pom <name>Apache CXF Bundle Parent <version>2.3.1 <url>http://cxf.apache.org <parent> <groupId>org.apache.cxf <artifactId>cxf-parent <version>2.3.1 <relativePath>../../parent </parent> <properties> <maven.test.skip>true <cxf.version>${project.version} <createSourcesJar>false </properties> <dependencies> <dependency> <groupId>junit <artifactId>junit <scope>provided </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins <artifactId>maven-antrun-plugin <inherited>true <executions> <execution> <id>create-prop <phase>initialize <configuration> <tasks> <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" /> <property name="ant.regexp.regexpimpl" value="org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp" /> <property name="mv" value="${project.version}" /> <echo message="Maven version: ${mv}" /> <propertyregex property="ov.p1" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace="\1" defaultValue="0" /> <propertyregex property="ov.p2" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\2" defaultValue=".0" /> <propertyregex property="ov.p3" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\3" defaultValue=".0" /> <propertyregex property="ov.p4" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\4" defaultValue="" /> <propertyregex property="ov.p1a" input="${ov.p1}" regexp="(.+)" replace="\1" defaultValue="0" /> <propertyregex property="ov.p2a" input="${ov.p2}" regexp="(\..+)" replace="\1" defaultValue=".0" /> <propertyregex property="ov.p3a" input="${ov.p3}" regexp="(\..+)" replace="\1" defaultValue=".0" /> <propertyregex property="ov.p4a" input="${ov.p4}" regexp="(\..+)" replace="\1" defaultValue="" /> <property name="ov" value="${ov.p1a}${ov.p2a}${ov.p3a}${ov.p4a}" /> <property name="os" value="${ov.p1a}${ov.p2a}" /> <echo message="OSGi version: ${ov}" /> <mkdir dir="target" /> <echo file="target/cxf.osgi.version.txt"> cxf.osgi.version.clean = ${ov} cxf.schema.version = ${os} </echo> </tasks> </configuration> <goals> <goal>run </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo <artifactId>properties-maven-plugin <inherited>true <executions> <execution> <phase>initialize <goals> <goal>read-project-properties </goals> <configuration> <files> <file>target/cxf.osgi.version.txt </files> </configuration> </execution> </executions> </plugin> </plugins> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins <artifactId>maven-source-plugin <configuration> <archive> <manifestEntries> <Bundle-SymbolicName>${bundle.symbolic.name}.source <Eclipse-SourceBundle>${bundle.symbolic.name};version="${cxf.osgi.version.clean}" </manifestEntries> </archive> </configuration> </plugin> </plugins> </pluginManagement> <resources> <resource> <directory>src/main/java <includes> <include>**/* </includes> </resource> </resources> </build> <profiles> <profile> <id>deploy <properties> <createSourcesJar>true </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins <artifactId>maven-dependency-plugin <executions> <execution> <id>unpack-sources <phase>generate-sources <goals> <goal>unpack-dependencies </goals> <configuration> <includeGroupIds>org.apache.cxf <classifier>sources <outputDirectory>${project.build.directory}/sources </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins <artifactId>maven-javadoc-plugin <executions> <execution> <id>package <phase>package <goals> <goal>jar </goals> </execution> </executions> <configuration> <minmemory>128m <maxmemory>512m <header>Apache CXF API <footer>Apache CXF API <sourcepath>${project.build.directory}/sources </configuration> </plugin> </plugins> </build> </profile> </profiles> <modules> <module>all <module>minimal <module>jaxrs </modules> </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 |
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.