blob: c6181c27a9da212859a58f9e525e527e4f1d6930 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
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">
<!-- This file was based on the Geronimo Genesis Default Parent Pom -->
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.aries</groupId>
<artifactId>parent</artifactId>
<version>0.3.1-SNAPSHOT</version>
</parent>
<artifactId>default-parent</artifactId>
<name>Aries :: Default Parent POM</name>
<version>0.3.1-SNAPSHOT</version>
<packaging>pom</packaging>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>osgi</artifactId>
<version>3.5.0.v20090520</version>
</dependency>
<dependency>
<groupId>org.eclipse.equinox</groupId>
<artifactId>cm</artifactId>
<version>3.2.0-v20070116</version>
</dependency>
<dependency>
<groupId>org.eclipse.osgi</groupId>
<artifactId>services</artifactId>
<version>3.1.200-v20070605</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-container-default</artifactId>
<version>1.2.0</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit-extender-impl</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.logging</groupId>
<artifactId>pax-logging-api</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.logging</groupId>
<artifactId>pax-logging-service</artifactId>
<version>1.4</version>
<exclusions>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
<exclusion>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.ops4j.pax.runner</groupId>
<artifactId>pax-runner-no-jcl</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.swissbox</groupId>
<artifactId>pax-swissbox-tinybundles</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.url</groupId>
<artifactId>pax-url-mvn</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.11</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.5.11</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src/main/filtered-resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<testResources>
<testResource>
<directory>${project.basedir}/src/test/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</testResource>
<testResource>
<directory>${project.basedir}/src/test/filtered-resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</testResource>
</testResources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<forkMode>once</forkMode>
<argLine>-enableassertions</argLine>
<failIfNoTests>false</failIfNoTests>
<workingDirectory>${project.build.directory}</workingDirectory>
<excludes>
<exclude>**/Abstract*.java</exclude>
<exclude>**/Test*.java</exclude>
</excludes>
<includes>
<include>**/*Test.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<excludes>
<!-- 3.5.0.v20090520 < 3.3.0-v20070530 -->
<exclude>org.eclipse:osgi</exclude>
<!-- 2.0.0-SNAPSHOT < 2.0.0-beta -->
<exclude>org.apache.openjpa:openjpa</exclude>
<!-- maven 3.0 components don't work with 2.0 -->
<exclude>org.apache.maven:maven-plugin-api</exclude>
<exclude>org.apache.maven:maven-project</exclude>
<exclude>org.apache.maven:maven-artifact</exclude>
<exclude>org.apache.maven:maven-archiver</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>maven-paxexam-plugin</artifactId>
<version>1.2.1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<optimize>true</optimize>
<debug>true</debug>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<resourceBundles>
<resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
</resourceBundles>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[2.0.10,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>ianal-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<executions>
<execution>
<goals>
<goal>verify-legal-files</goal>
</goals>
<configuration>
<strict>true</strict>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.2.0</version>
<extensions>true</extensions>
<inherited>true</inherited>
<configuration>
<excludeDependencies>${aries.osgi.exclude.dependencies}</excludeDependencies>
<instructions>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-SymbolicName>${aries.osgi.symbolic.name}</Bundle-SymbolicName>
<Bundle-Activator>${aries.osgi.activator}</Bundle-Activator>
<Export-Package>${aries.osgi.export}</Export-Package>
<Import-Package>${aries.osgi.import}</Import-Package>
<DynamicImport-Package>${aries.osgi.dynamic}</DynamicImport-Package>
<Private-Package>${aries.osgi.private.pkg}</Private-Package>
<Implementation-Title>Apache Aries</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
<!--
<Bundle-DocURL>http://felix.apache.org/site/apache-felix-osgi-bundle-repository.html</Bundle-DocURL>
<Bundle-Url>http://felix.apache.org/site/downloads.cgi</Bundle-Url>
<Bundle-Source>http://felix.apache.org/site/downloads.cgi</Bundle-Source>
-->
<Include-Resource>${aries.osgi.include.resource}</Include-Resource>
<_versionpolicy>${aries.osgi.import.default.version}</_versionpolicy>
<_removeheaders>${aries.osgi.remove.headers}}</_removeheaders>
<_failok>${aries.osgi.failok}</_failok>
<Export-Service>${aries.osgi.export.service}</Export-Service>
<Import-Service>${aries.osgi.import.service}</Import-Service>
</instructions>
<versions>
<aries.osgi.version.clean>${project.version}</aries.osgi.version.clean>
</versions>
</configuration>
<!--
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>cleanVersions</goal>
</goals>
</execution>
</executions>
-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<inherited>true</inherited>
<executions>
<execution>
<id>create-prop</id>
<phase>initialize</phase>
<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}" />
<echo message="OSGi version: ${ov}" />
<mkdir dir="target" />
<echo message="aries.osgi.version.clean = ${ov}" file="target/aries.osgi.version.txt" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-optional</artifactId>
<version>1.5.3-1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>target/aries.osgi.version.txt</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.5</version>
<reportSets>
<reportSet>
<reports>
<report>javadoc</report>
<report>test-javadoc</report>
</reports>
</reportSet>
</reportSets>
<configuration>
<quiet>true</quiet>
<tags>
<tag>
<name>goal</name>
<placement>Xt</placement>
</tag>
<tag>
<name>phase</name>
<placement>Xt</placement>
</tag>
<tag>
<name>execute</name>
<placement>Xt</placement>
</tag>
<tag>
<name>requiresDependencyResolution</name>
<placement>Xt</placement>
</tag>
<tag>
<name>parameter</name>
<placement>Xf</placement>
</tag>
<tag>
<name>required</name>
<placement>Xf</placement>
</tag>
<tag>
<name>readonly</name>
<placement>Xf</placement>
</tag>
<tag>
<name>component</name>
<placement>Xf</placement>
</tag>
<tag>
<name>plexus.component</name>
<placement>Xf</placement>
</tag>
<tag>
<name>plexus.requirement</name>
<placement>Xf</placement>
</tag>
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.1</version>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>license-check</id>
<pluginRepositories>
<pluginRepository>
<id>mc-release</id>
<url>http://mc-repo.googlecode.com/svn/maven2/releases</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<build>
<defaultGoal>license:check</defaultGoal>
<plugins>
<plugin>
<groupId>com.google.code.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<!-- OSGi bundles properties -->
<aries.osgi.import.aries.version>version="[$(version;==;${aries.osgi.version.clean}),$(version;=+;${aries.osgi.version.clean}))"</aries.osgi.import.aries.version>
<aries.osgi.import.strict.version>version="[$(version;===;${aries.osgi.version.clean}),$(version;==+;${aries.osgi.version.clean}))"</aries.osgi.import.strict.version>
<aries.osgi.import.default.version>[$(version;==;$(@)),$(version;+;$(@)))</aries.osgi.import.default.version>
<aries.osgi.import.defaults>
<!--
org.springframework.*;version="[2.5,4)",
org.apache.commons.logging.*;version="[1.1,2)",
org.apache.cxf.*;version="[2.2.5,3)",
org.apache.qpid.*;version="[0.5,0.6)",
org.apache.abdera.*;version="[0.4,0.5)",
org.apache.commons.httpclient.*;version="[3.1,4.0)",
org.apache.mina.*;version="[1.1.7,2.0)",
org.apache.velocity.*;version="[1.6.2,2)",
org.apache.xmlbeans.*;version="[2.4,3)",
com.thoughtworks.xstream.*;version="[1.3,2)",
org.antlr.stringtemplate.*;version="[3.0,4)",
org.jivesoftware.smack.*;version="[3.0,4)",
org.ccil.cowan.tagsoup.*;version="[1.2,2)",
org.mortbay.cometd.*;version="[6.1,7)",
net.sf.flatpack.*;version="[3.1.1,4)",
freemarker.*;version="[2.3.15,3)",
javax.persistence.*;version="[1.1,2)",
-->
</aries.osgi.import.defaults>
<aries.osgi.import.before.defaults />
<aries.osgi.import.additional />
<aries.osgi.import.pkg>
org.apache.aries.*;${aries.osgi.import.aries.version},
${aries.osgi.import.before.defaults},
${aries.osgi.import.defaults},
${aries.osgi.import.additional},
*
</aries.osgi.import.pkg>
<aries.osgi.activator />
<aries.osgi.failok>false</aries.osgi.failok>
<aries.osgi.private.pkg>${project.artifactId}*.impl</aries.osgi.private.pkg>
<aries.osgi.export>${aries.osgi.export.pkg};${aries.osgi.version};-noimport:=true</aries.osgi.export>
<aries.osgi.export.pkg>!*.impl;${project.artifactId}*</aries.osgi.export.pkg>
<aries.osgi.version>version=${project.version}</aries.osgi.version>
<aries.osgi.split.pkg>-split-package:=first</aries.osgi.split.pkg>
<aries.osgi.import>${aries.osgi.import.pkg}</aries.osgi.import>
<aries.osgi.dynamic />
<aries.osgi.symbolic.name>${project.artifactId}</aries.osgi.symbolic.name>
<aries.osgi.exclude.dependencies>false</aries.osgi.exclude.dependencies>
<aries.osgi.remove.headers>Ignore-Package,Include-Resource,Private-Package,Bundle-DocURL</aries.osgi.remove.headers>
<aries.osgi.include.resource>{maven-resources}</aries.osgi.include.resource>
</properties>
<modules>
<module>java5-parent</module>
</modules>
</project>