<?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.platform</groupId> <artifactId>xwiki-platform</artifactId> <version>3.2-SNAPSHOT</version> </parent> <artifactId>xwiki-platform-core</artifactId> <name>XWiki Platform - Core - Parent POM</name> <packaging>pom</packaging> <description>XWiki Platform - Core - Parent POM</description> <properties> <!-- We use our custom version of GWT because some dependencies are missing from the gwt-user 2.3.0 POM. --> <gwt.version>2.3.0-xwiki-20110506</gwt.version> <gwt.maven.plugin.version>2.2.0</gwt.maven.plugin.version> <smartgwt.version>2.4</smartgwt.version> </properties> <dependencies> <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> <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> </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> </dependencies> <dependencyManagement> <dependencies> <!-- Standard dependencies used in several modules --> <!-- Groovy engine --> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>1.8.2</version> </dependency> <!-- Jython engine --> <dependency> <groupId>org.python</groupId> <artifactId>jython-standalone</artifactId> <version>2.5.2-xwiki</version> </dependency> <!-- JFreeChart --> <dependency> <groupId>jfree</groupId> <artifactId>jfreechart</artifactId> <version>1.0.13</version> </dependency> <!-- Used on remote objervatoin and also by JBossCache (even if it does not really use it) --> <dependency> <groupId>org.jgroups</groupId> <artifactId>jgroups</artifactId> <version>2.12.1.Final</version> </dependency> <!-- Standard dependencies used in GWT modules --> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>${gwt.version}</version> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-servlet</artifactId> <version>${gwt.version}</version> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-dev</artifactId> <version>${gwt.version}</version> </dependency> <dependency> <!-- SmartGWT is used only for its tree widget. --> <!-- If you remove or move this dependency don't forget to update the repository section at the bottom. --> <groupId>com.smartgwt</groupId> <artifactId>smartgwt</artifactId> <version>${smartgwt.version}</version> </dependency> </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.commons</groupId> <artifactId>xwiki-commons-tool-xar-plugin</artifactId> <version>${commons.version}</version> </plugin> <plugin> <!-- Default configuration for the GWT maven plugin --> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>${gwt.maven.plugin.version}</version> <!-- We need to declare these dependencies because we use a newer version of GWT. See http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html --> <dependencies> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>${gwt.version}</version> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-dev</artifactId> <version>${gwt.version}</version> </dependency> </dependencies> <configuration> <mode>htmlunit</mode> <testTimeOut>600</testTimeOut> </configuration> <executions> <execution> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- We exclude the GWT client tests because of http://jira.codehaus.org/browse/SUREFIRE-508 (Cannot run GWTTestCases with Surefire). GWT client tests are currently run by gwt-maven-plugin. --> <excludes> <exclude>**/gwt/**/client/**/*.java</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-clover2-plugin</artifactId> <configuration> <!-- Exclude GWT client code since otherwise it would mean they would get instrumented by Clover and GWT would complain that it doesn't find the sources for Clover at runtime. --> <excludes> <exclude>**/gwt/**/client/**/*.java</exclude> </excludes> </configuration> </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> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <executions> <execution> <id>enforce-jcl-log4j-isolation</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <bannedDependencies> <searchTransitive>false</searchTransitive> <excludes> <!-- Ensure we don't depend on commons logging/log4j since we want all logging to be done through SLF4J --> <exclude>commons-logging:commons-logging</exclude> <exclude>log4j:log4j</exclude> </excludes> </bannedDependencies> </rules> </configuration> </execution> </executions> </plugin> </plugins> <!-- Needed to add support for the XAR packaging --> <extensions> <extension> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-handlers</artifactId> <version>${commons.version}</version> </extension> </extensions> </build> <modules> <!-- Sorted Alphabetically --> <module>xwiki-platform-action</module> <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> <module>xwiki-platform-annotations</module> <module>xwiki-platform-application-manager</module> <module>xwiki-platform-blog</module> <module>xwiki-platform-bridge</module> <module>xwiki-platform-cache</module> <module>xwiki-platform-captcha</module> <module>xwiki-platform-chart</module> <module>xwiki-platform-classloader</module> <module>xwiki-platform-colibri</module> <module>xwiki-platform-component</module> <module>xwiki-platform-configuration</module> <module>xwiki-platform-containers</module> <module>xwiki-platform-crypto</module> <module>xwiki-platform-csrf</module> <module>xwiki-platform-eventstream</module> <module>xwiki-platform-extension</module> <module>xwiki-platform-formula</module> <module>xwiki-platform-gwt</module> <module>xwiki-platform-invitation</module> <module>xwiki-platform-ircbot</module> <module>xwiki-platform-jodatime</module> <module>xwiki-platform-legacy</module> <module>xwiki-platform-mailsender</module> <module>xwiki-platform-messagestream</module> <module>xwiki-platform-model</module> <module>xwiki-platform-observation</module> <module>xwiki-platform-office</module> <module>xwiki-platform-oldcore</module> <module>xwiki-platform-panels</module> <module>xwiki-platform-photoalbum</module> <module>xwiki-platform-query</module> <module>xwiki-platform-refactoring</module> <module>xwiki-platform-rendering</module> <module>xwiki-platform-rest</module> <module>xwiki-platform-s5</module> <module>xwiki-platform-scheduler</module> <module>xwiki-platform-search</module> <module>xwiki-platform-selenium</module> <module>xwiki-platform-skin</module> <module>xwiki-platform-statistics</module> <module>xwiki-platform-store</module> <module>xwiki-platform-jira</module> <module>xwiki-platform-tag</module> <module>xwiki-platform-test</module> <module>xwiki-platform-toucan</module> <module>xwiki-platform-url</module> <module>xwiki-platform-velocity</module> <module>xwiki-platform-watchlist</module> <module>xwiki-platform-web</module> <module>xwiki-platform-webdav</module> <module>xwiki-platform-wiki-manager</module> <module>xwiki-platform-workstream</module> <module>xwiki-platform-wysiwyg</module> <module>xwiki-platform-xml</module> <module>xwiki-platform-xmlrpc</module> </modules> <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> <skip>${xwiki.clirr.skip}</skip> <comparisonVersion>${xwiki.clirr.previous.version}</comparisonVersion> <excludes> <exclude>**/internal/**</exclude> <exclude>**/test/**</exclude> <!-- To be removed when we release 3.2 --> <exclude>com/xpn/xwiki/plugin/lucene/IndexRebuilder</exclude> <exclude>org/xwiki/bridge/AttachmentNameFactory</exclude> <exclude>org/xwiki/bridge/AttachmentNameSerializer</exclude> <exclude>org/xwiki/bridge/DocumentNameFactory</exclude> <exclude>org/xwiki/bridge/DocumentNameSerializer</exclude> <exclude>com/xpn/xwiki/plugin/wikimanager/WikiManager</exclude> <exclude>com/xpn/xwiki/plugin/adwords/AdWordsPluginApi</exclude> <exclude>com/xpn/xwiki/plugin/alexa/AlexaPluginApi</exclude> <excludes>com/xpn/xwiki/api/Api</excludes> <excludes>com/xpn/xwiki/api/Context</excludes> <excludes>com/xpn/xwiki/api/Document</excludes> <excludes>com/xpn/xwiki/api/StatsService</excludes> <excludes>com/xpn/xwiki/api/StatsServiceCompatibilityAspect</excludes> <excludes>com/xpn/xwiki/api/XWiki</excludes> <excludes>com/xpn/xwiki/api/XWikiCompatibilityAspect</excludes> <excludes>compatibility/com/xpn/xwiki/api/ApiCompatibilityAspect</excludes> <excludes>compatibility/com/xpn/xwiki/api/ContextCompatibilityAspect</excludes> <excludes>compatibility/com/xpn/xwiki/api/DocumentCompatibilityAspect</excludes> <exclude>org/xwiki/eventstream/Event</exclude> <exclude>com/xpn/xwiki/plugin/activitystream/api/ActivityEvent</exclude> <exclude>com/xpn/xwiki/plugin/activitystream/plugin/ActivityEvent</exclude> <exclude>org/xwiki/bridge/DocumentAccessBridge</exclude> <exclude>com/xpn/xwiki/user/api/XWikiRightService</exclude> <exclude>com/xpn/xwiki/cache/api/XWikiCache</exclude> <exclude>com/xpn/xwiki/cache/api/XWikiCacheNeedsRefreshException</exclude> <exclude>com/xpn/xwiki/cache/api/XWikiCacheService</exclude> <exclude>org/xwiki/gwt/dom/client/Style$IEFloatProperty</exclude> <exclude>org/xwiki/gwt/wysiwyg/client/plugin/submit/IESubmitPlugin</exclude> <exclude>org/xwiki/container/ApplicationContext</exclude> <exclude>org/xwiki/container/portlet/PortletApplicationContext</exclude> <exclude>org/xwiki/container/servlet/ServletApplicationContext</exclude> </excludes> </configuration> </plugin> </plugins> </build> <properties> <xwiki.clirr.skip>false</xwiki.clirr.skip> </properties> </profile> <profile> <id>gwtTestManual</id> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <configuration> <mode>manual</mode> <productionMode>true</productionMode> <style>DETAILED</style> <!-- HACK: We inject the GWT arguments in the out parameter because we have no other option. --> <out>target/www-test -port 54321 -codeServerPort 12345</out> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>