Skip to content
Snippets Groups Projects
pom.xml 9.3 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 *
-->

<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.xwiki.commons</groupId>
    <artifactId>xwiki-commons</artifactId>
    <version>42-SNAPSHOT</version>
    <relativePath>../xwiki-commons-pom</relativePath>
  <groupId>org.xwiki.platform</groupId>
  <artifactId>xwiki-platform-core</artifactId>
  <name>XWiki Platform - Core - Parent POM</name>
  <packaging>pom</packaging>
  <version>3.1-SNAPSHOT</version>
  <description>XWiki Platform - Core - Parent POM</description>
    <!-- Versions of XWiki dependencies used in Platform modules -->
    <rendering.version>${project.version}</rendering.version>
    <commons.version>${project.version}</commons.version>
    <!-- Platform Tools versions -->
    <platform.tool.xar-handler.version>1.10-SNAPSHOT</platform.tool.xar-handler.version>
    <platform.tool.xar-plugin.version>1.15-SNAPSHOT</platform.tool.xar-plugin.version>
mflorea's avatar
mflorea committed
    <!-- The previous stable version of this project, used to catch API breakages. -->
    <clirr.previous.version>3.0</clirr.previous.version>
    <connection>scm:svn:http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk</connection>
    <developerConnection>scm:svn:https://svn.xwiki.org/svnroot/xwiki/platform/core/trunk</developerConnection>
    <url>http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk</url>
Thomas Mortagne's avatar
Thomas Mortagne committed
  <issueManagement>
    <system>jira</system>
    <url>http://jira.xwiki.org/jira/browse/XWIKI</url>
Thomas Mortagne's avatar
Thomas Mortagne committed
  </issueManagement>
Thomas Mortagne's avatar
Thomas Mortagne committed
  <dependencyManagement>
    <dependencies>
Thomas Mortagne's avatar
Thomas Mortagne committed
      <!-- Standard dependencies used in several modules -->
Thomas Mortagne's avatar
Thomas Mortagne committed
      <!-- Groovy engine -->
      <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <version>1.7.10</version>
Thomas Mortagne's avatar
Thomas Mortagne committed
      </dependency>
      <!-- Jython engine -->
      <dependency>
        <groupId>org.python</groupId>
        <artifactId>jython-standalone</artifactId>
        <version>2.5.2-xwiki</version>
      <!-- JFreeChart -->
      <dependency>
        <groupId>jfree</groupId>
        <artifactId>jfreechart</artifactId>
        <version>1.0.13</version>
      </dependency>
      <!-- JFreeChart 1.0.13 has no POM file in the Maven Central Repository and thus we need to manually define
           its own Maven dependency on JFree Common. Remove this dependency when it's fixed. -->
      <dependency>
        <groupId>jfree</groupId>
        <artifactId>jcommon</artifactId>
        <version>1.0.15</version>
      </dependency>
Thomas Mortagne's avatar
Thomas Mortagne committed
    </dependencies>
  </dependencyManagement>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <configuration>
            <archive>
              <!-- Use the manifest file generated by the OSGi Maven Bundle Plugin -->
              <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
            </archive>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.xwiki.platform.tools</groupId>
          <artifactId>xwiki-xar-plugin</artifactId>
          <version>${platform.tool.xar-plugin.version}</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <!-- Generate OSGi Manifest information to all XWiki Core JARs -->
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <executions>
          <execution>
            <id>bundle-manifest</id>
            <phase>process-classes</phase>
            <goals>
              <goal>manifest</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <!-- Needed to add support for the XAR packaging -->
    <extensions>
      <extension>
        <groupId>org.xwiki.platform.tools</groupId>
        <artifactId>xwiki-xar-handlers</artifactId>
        <version>${platform.tool.xar-handler.version}</version>
      </extension>
    </extensions>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit-dep</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-core</artifactId>
      <scope>test</scope>
    </dependency>
Vincent Massol's avatar
Vincent Massol committed
    <dependency>
      <groupId>jmock</groupId>
      <artifactId>jmock</artifactId>
      <version>1.2.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
        </exclusion>
      </exclusions>
Vincent Massol's avatar
Vincent Massol committed
    </dependency>
    <dependency>
      <groupId>jmock</groupId>
      <artifactId>jmock-cglib</artifactId>
      <version>1.2.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.jmock</groupId>
      <artifactId>jmock-junit4</artifactId>
      <scope>test</scope>
    </dependency>
  <modules>
Vincent Massol's avatar
Vincent Massol committed
    <!-- Sorted Alphabetically -->
    <module>xwiki-platform-action</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-activitystream</module>
    <module>xwiki-platform-administration</module>
    <module>xwiki-platform-adwords</module>
    <module>xwiki-platform-albatross</module>
    <module>xwiki-platform-alexa</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-annotations</module>
    <module>xwiki-platform-application-manager</module>
    <module>xwiki-platform-blog</module>
    <module>xwiki-platform-bridge</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-cache</module>
    <module>xwiki-platform-calendar</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-captcha</module>
    <module>xwiki-platform-chart</module>
    <module>xwiki-platform-classloader</module>
    <module>xwiki-platform-colibri</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-component</module>
    <module>xwiki-platform-configuration</module>
    <module>xwiki-platform-containers</module>
    <module>xwiki-platform-exoplatform</module>
    <module>xwiki-platform-oldcore</module>
    <module>xwiki-platform-crypto</module>
    <module>xwiki-platform-csrf</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-eventstream</module>
    <module>xwiki-platform-extension</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-formula</module>
    <module>xwiki-platform-invitation</module>
    <module>xwiki-platform-ircbot</module>
    <module>xwiki-platform-jodatime</module>
    <module>xwiki-platform-legacy</module>
    <module>xwiki-platform-localization</module>
    <module>xwiki-platform-mailsender</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-messagestream</module>
    <module>xwiki-platform-model</module>
    <module>xwiki-platform-observation</module>
    <module>xwiki-platform-office</module>
    <module>xwiki-platform-query</module>
    <module>xwiki-platform-refactoring</module>
    <module>xwiki-platform-rendering</module>
    <module>xwiki-platform-rest</module>
    <module>xwiki-platform-skin</module>
    <module>xwiki-platform-store</module>
    <module>xwiki-platform-test</module>
Vincent Massol's avatar
Vincent Massol committed
    <module>xwiki-platform-url</module>
    <module>xwiki-platform-velocity</module>
    <module>xwiki-platform-xml</module>
    <module>xwiki-platform-xmlrpc</module>
    <module>xwiki-platform-webdav</module>
  <profiles>
    <profile>
      <!-- We run Clirr in a profile since Cobertura interferes with Clirr and thus we run
           Cobertura instrumentation in a special profile (when the Cobertura profile is
           executed, the Clirr one isn't). -->
      <id>clirr</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>clirr-maven-plugin</artifactId>
            <configuration>
              <comparisonVersion>${clirr.previous.version}</comparisonVersion>
              <excludes>
                <exclude>**/internal/**</exclude>
                <exclude>**/test/**</exclude>
                <!-- To be removed when we release 3.1 -->
                <exclude>com/xpn/xwiki/pref/api/XWikiPrefService</exclude>
              </excludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <xwiki.clirr.skip>false</xwiki.clirr.skip>
      </properties>