magnolia-parent-pom
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-parent-pom</artifactId>
<version>10</version>
</dependency><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>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-parent-pom</artifactId>
<packaging>pom</packaging>
<name>magnolia-parent-pom</name>
<version>10</version>
<!--
Magnolia organization-wide parent pom
-->
<organization>
<name>Magnolia International Ltd.</name>
<url>http://www.magnolia-cms.com</url>
</organization>
<scm>
<connection>scm:svn:http://svn.magnolia-cms.com/svn/build/magnolia-parent-pom/tags/magnolia-parent-pom-10</connection>
<developerConnection>scm:svn:http://svn.magnolia-cms.com/svn/build/magnolia-parent-pom/tags/magnolia-parent-pom-10</developerConnection>
<url>http://svn.magnolia-cms.com/view/build/magnolia-parent-pom/tags/magnolia-parent-pom-10</url>
</scm>
<modules>
<module>maven-plugin</module>
</modules>
<properties>
<javaVersion>1.4</javaVersion>
<javaVersionForTests>1.5</javaVersionForTests>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<systemProperties>
<property>
<name>java.awt.headless</name>
<value>true</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<releaseProfiles>release-perform-profile</releaseProfiles>
</configuration>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<!-- project need to configure their specific descriptor(s) -->
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-4</version>
</plugin>
<plugin>
<!-- this is our default - sub projects can of course override this as needed -->
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${javaVersion}</source>
<target>${javaVersion}</target>
</configuration>
<executions>
<execution>
<id>compile-tests</id>
<phase>process-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<source>${javaVersionForTests}</source>
<target>${javaVersionForTests}</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
</plugin>
<plugin>
<!-- Projects need to add the proper dependency (magnolia-build-tools-XXX)
and the headerLocation property -->
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<configLocation>magnolia-build-tools/checkstyle.xml</configLocation>
<enableRulesSummary>true</enableRulesSummary>
<consoleOutput>true</consoleOutput>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-idea-plugin</artifactId>
<version>2.2</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<jdkLevel>${javaVersion}</jdkLevel>
</configuration>
</plugin>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.6</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<wtpversion>2.0</wtpversion>
</configuration>
</plugin>
<!-- precompile/validate JSPs : -->
<plugin>
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>2.0-alpha-3</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-compiler-tomcat5</artifactId>
<version>2.0-alpha-3</version>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
<version>5.5.23</version>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler-jdt</artifactId>
<version>5.5.23</version>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>jasper-runtime</artifactId>
<version>5.5.23</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.5.6</version>
</dependency>
</dependencies>
<configuration>
<sources>
<directory>${basedir}/src/main/resources/</directory>
<includes>
<include>**/*.jsp</include>
</includes>
</sources>
<source>${javaVersion}</source>
<target>${javaVersion}</target>
<verbose>1</verbose>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
<configuration>
<rules>
<!--<requireJavaVersion>-->
<!--<version>[1.3,1.6]</version>-->
<!--</requireJavaVersion>-->
<requireMavenVersion>
<!-- let's be a little lax by default - the release profile will be more strict -->
<version>[2.0.10,)</version>
</requireMavenVersion>
</rules>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>2.6.2-r2</version>
<!-- this configuration is duplicated in site/reports -->
<configuration>
<jdk>${javaVersion}</jdk>
<!-- projects might want to raise the bar a little and add the clover2:check goal : -->
<targetPercentage>0%</targetPercentage>
<licenseLocation>${cloverLicenseLocation}</licenseLocation>
</configuration>
<!-- let's instrument whenever we generate a site -->
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>instrument-test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<!-- Our default include and filtering strategy for resources:
* do not filter anything except the module descriptors (META-INF/magnolia/*) and license.xml
* testResources include *.xml and *.properties from src/test/java
If a project needs to, it can override/cancel these
-->
<resources>
<resource>
<filtering>false</filtering>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
<!--
leaving this exclude out is not a problem for maven (resources will be overridden with filtered ones in the
next definition) and makes eclipse working. Eclipse configuration will not work with a resource dir defined
twice with opposite excludes/includes.
<excludes>
<exclude>META-INF/magnolia/*</exclude>
</excludes>
-->
</resource>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<includes>
<include>META-INF/magnolia/*</include>
<include>**/license.xml</include>
</includes>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<includes>
<include>**/*</include>
</includes>
</testResource>
<testResource>
<directory>src/test/java</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</testResource>
</testResources>
</build>
<reporting>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>summary</report>
<report>dependencies</report>
<report>dependency-convergence</report>
<report>issue-tracking</report>
<report>license</report>
<report>mailing-list</report>
<report>project-team</report>
<report>scm</report>
<report>cim</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<!-- two reportSets : 2 executions : aggregated and non-aggregated -->
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.5</version>
<reportSets>
<reportSet>
<id>javadoc-agg</id>
<reports>
<report>javadoc</report>
</reports>
<configuration>
<quiet>true</quiet>
<aggregate>true</aggregate>
</configuration>
</reportSet>
<reportSet>
<id>javadoc-non-agg</id>
<reports>
<report>javadoc</report>
</reports>
<configuration>
<quiet>true</quiet>
<aggregate>false</aggregate>
</configuration>
</reportSet>
</reportSets>
</plugin>
<plugin>
<!-- Projects will need to copy the entire config in their reporting section,
as it seems to not be inherated/merged when adding a property -->
<artifactId>maven-checkstyle-plugin</artifactId>
<!--
<configuration>
<configLocation>magnolia-build-tools/checkstyle.xml</configLocation>
<enableRulesSummary>true</enableRulesSummary>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
-->
</plugin>
<plugin>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-jxr-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>2.2.2</version>
<configuration>
<minSeverity>info</minSeverity>
<!-- this is detected automatically by default: -->
<!--<comparisonVersion>3.0.2</comparisonVersion>-->
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>2.6.2-r2</version>
<!-- apparently we have to duplicate the configuration from build/plugins, at least to get the license picked up -->
<configuration>
<jdk>${javaVersion}</jdk>
<!-- projects might want to raise the bar a little and add the clover2:check goal : -->
<targetPercentage>0%</targetPercentage>
<licenseLocation>${cloverLicenseLocation}</licenseLocation>
</configuration>
</plugin>
<!-- this report is pretty useless, since we don't allow building with failing tests ... -->
<plugin>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<!-- this report is very obscure - do we want it ? -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.sourceforge.maven-taglib</groupId>
<artifactId>maven-taglib-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<!-- a profile used when performing a release -->
<id>release-perform-profile</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules>
<requireMavenVersion>
<version>[2.0.10]</version>
</requireMavenVersion>
</rules>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!-- some default dependencies versions - can be overridden if needed -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.jcr</groupId>
<artifactId>jcr</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>2.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<version>2.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner</artifactId>
<version>0.3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>xmlunit</groupId>
<artifactId>xmlunit</artifactId>
<version>1.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<distributionManagement>
<repository>
<id>magnolia</id>
<url>scp://repo.magnolia-cms.com/sites/repo/m2</url>
</repository>
<snapshotRepository>
<id>magnolia.snapshots</id>
<url>scp://repo.magnolia-cms.com/sites/repo/snapshots</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<id>magnolia</id>
<url>http://repo.magnolia-cms.com/m2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>magnolia.snapshots</id>
<url>http://repo.magnolia-cms.com/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>magnolia</id>
<url>http://repo.magnolia-cms.com/m2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>magnolia.snapshots</id>
<url>http://repo.magnolia-cms.com/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<!-- Clover 2.6.2 isn't in the central repository yet -->
<pluginRepository>
<id>atlassian-public</id>
<url>http://maven.atlassian.com/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>