parent
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.day.cq</groupId> <artifactId>parent</artifactId> <version>106</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- /************************************************************************* * * ADOBE CONFIDENTIAL * ___________________ * * Copyright 2011 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Adobe Systems Incorporated and its suppliers, * if any. The intellectual and technical concepts contained * herein are proprietary to Adobe Systems Incorporated and its * suppliers and are protected by trade secret or copyright law. * Dissemination of this information or reproduction of this material * is strictly forbidden unless prior written permission is obtained * from Adobe Systems Incorporated. **************************************************************************/ --> <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> <!-- ======================================================================= --> <!-- P A R E N T --> <!-- ======================================================================= --> <parent> <groupId>com.adobe</groupId> <artifactId>adobe</artifactId> <version>9</version> </parent> <!-- ======================================================================= --> <!-- P R O J E C T --> <!-- ======================================================================= --> <groupId>com.day.cq</groupId> <artifactId>parent</artifactId> <packaging>pom</packaging> <version>106</version> <name>Adobe Experience Manager (Parent Project)</name> <description>The parent project to the Adobe Experience Manager parts</description> <inceptionYear>2006</inceptionYear> <properties> <sling.url.author>http://localhost:4502/system/console</sling.url.author> <sling.url.publish>http://localhost:4503/system/console</sling.url.publish> <!-- Java API and class file compliance. - 7: Java 7 - 8: Java 8 (default) - any higher version --> <cq.java.version>8</cq.java.version> <slf4j.version>1.7.30</slf4j.version> <site.javadoc.exclude/> </properties> <scm> <connection>scm:git:git@git.corp.adobe.com:CQ/parent-pom.git</connection> <developerConnection>scm:git:git@git.corp.adobe.com:CQ/parent-pom.git</developerConnection> <url>https://git.corp.adobe.com/CQ/parent-pom/tree/master</url> <tag>parent-106</tag> </scm> <!-- ======================================================================= --> <!-- R E P O R T I N G --> <!-- ======================================================================= --> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.2.0</version> </plugin> </plugins> </reporting> <!-- ======================================================================= --> <!-- B U I L D --> <!-- ======================================================================= --> <build> <!-- allows shorthand "mvn" to run a normal "mvn clean install" build --> <defaultGoal>clean install</defaultGoal> <plugins> <!-- Require Maven 3.5.0 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <executions> <execution> <id>enforce-maven-version</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireMavenVersion> <version>3.5.0</version> </requireMavenVersion> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <configuration> <goals>deploy</goals> <localCheckout>true</localCheckout> <arguments>-Prelease ${arguments}</arguments> <projectVersionPolicyId>OddEvenVersionPolicy</projectVersionPolicyId> </configuration> </plugin> <!-- Apache Sling Plugin This plugin can be used to deploy the bundles to our obr. --> <plugin> <groupId>org.apache.sling</groupId> <artifactId>sling-maven-plugin</artifactId> <configuration> <slingUrl>${sling.url.author}</slingUrl> </configuration> </plugin> <!-- Apache Felix Bundle Plugin --> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <inherited>true</inherited> <configuration> <outputDirectory>${basedir}/target/classes</outputDirectory> <obrRepository>NONE</obrRepository> <instructions> <Bundle-Category>adobe,aem</Bundle-Category> <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName> <Bundle-DocURL> https://docs.adobe.com </Bundle-DocURL> <Bundle-Vendor>Adobe</Bundle-Vendor> <_removeheaders> GraniteSiteRepository-Id, GraniteSiteRepository-URL, ReleaseRepository-Id, ReleaseRepository-Name, ReleaseRepository-URL, SnapshotRepository-Id, SnapshotRepository-Name, SnapshotRepository-URL </_removeheaders> <!-- Disable the new ScrPlugin for now, it creates now a Require-Capability and Provide-Capability header --> <_plugin>org.apache.felix.bundleplugin.BlueprintPlugin,aQute.lib.spring.SpringXMLType</_plugin> </instructions> </configuration> <executions> <execution> <id>baseline</id> <goals> <goal>baseline</goal> </goals> </execution> </executions> </plugin> <!-- Content Package generation --> <plugin> <groupId>org.apache.jackrabbit</groupId> <artifactId>filevault-package-maven-plugin</artifactId> <inherited>true</inherited> <configuration> <group>adobe/cq</group> <properties> <acHandling>merge_preserve</acHandling> <createdBy>Adobe</createdBy> <granite.suppressSnapshots>true</granite.suppressSnapshots> </properties> <excludedLibraries> org.osgi:org.osgi.service.component.annotations, org.osgi:org.osgi.service.metatype.annotations, org.osgi:osgi.annotation </excludedLibraries> <signature> <groupId>org.codehaus.mojo.signature</groupId> <artifactId>java1${cq.java.version}</artifactId> <version>1.0</version> </signature> </configuration> </plugin> <!-- Compile for configured Java version and higher (by default) --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <encoding>${project.build.sourceEncoding}</encoding> <showWarnings>true</showWarnings> <!-- for annotation INFO/NOTE logging --> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <stylesheet>maven</stylesheet> <encoding>${project.build.sourceEncoding}</encoding> <detectJavaApiLink>true</detectJavaApiLink> <excludePackageNames>*.impl:*.internal:${site.javadoc.exclude}</excludePackageNames> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> </plugins> <pluginManagement> <plugins> <!-- Environmental constraint checking (Maven Version, JDK etc.) --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0-M3</version> </plugin> <!-- Apache Sling Plugin This plugin can be used to deploy the bundles to our obr. --> <plugin> <groupId>org.apache.sling</groupId> <artifactId>sling-maven-plugin</artifactId> <version>2.4.2</version> </plugin> <!-- Apache Sling JSPC Plugin --> <plugin> <groupId>org.apache.sling</groupId> <artifactId>jspc-maven-plugin</artifactId> <version>2.1.0</version> <executions> <execution> <id>compile-jsp</id> <goals> <goal>jspc</goal> </goals> </execution> </executions> </plugin> <!-- Apache Felix Bundle Plugin --> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>5.1.2</version> <inherited>true</inherited> </plugin> <!-- Content Package generation --> <plugin> <groupId>org.apache.jackrabbit</groupId> <artifactId>filevault-package-maven-plugin</artifactId> <version>1.1.2</version> <inherited>true</inherited> </plugin> <!-- Package Manager Interaction --> <plugin> <groupId>com.day.jcr.vault</groupId> <artifactId>content-package-maven-plugin</artifactId> <version>1.0.3</version> <inherited>true</inherited> </plugin> <!-- Compile for configured Java version and higher (by default) --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> <version>1.18</version> </plugin> <!-- Maven Release Plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>3.0.0-M1</version> <dependencies> <dependency> <groupId>org.apache.maven.release</groupId> <artifactId>maven-release-oddeven-policy</artifactId> <version>3.0.0-M1</version> </dependency> <!-- Workaround for missing class --> <dependency> <groupId>org.eclipse.aether</groupId> <artifactId>aether-util</artifactId> <version>1.1.0</version> </dependency> <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-provider-gitexe</artifactId> <version>1.11.2</version> </dependency> </dependencies> </plugin> <!-- Maven Buildnumber Plugin --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <version>1.4</version> </plugin> <!-- Set fix version for javadoc plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.2.0</version> </plugin> <!-- Set fix version for resources plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.1.0</version> </plugin> <!-- Set fix version for dependency plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.1.2</version> </plugin> <!-- Set fix version for jar plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.2.0</version> </plugin> <!-- Set fix version for idea plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-idea-plugin</artifactId> <version>2.2.1</version> </plugin> <!-- Set fix version for surefire plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M4</version> </plugin> <!-- Set fix version for war plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.2.3</version> </plugin> <!-- Set fix version for failsafe plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>3.0.0-M4</version> </plugin> <!-- Set fix version for the clean plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>3.1.0</version> </plugin> <!-- Set fix version for deploy plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>3.0.0-M1</version> </plugin> <!-- Set fix version for install plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>3.0.0-M1</version> </plugin> <!-- Set fix version for the source plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version> </plugin> <!-- Maven Antrun Plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>3.0.0</version> <dependencies> <!-- declare dependencies here rather than where needed to circumvent http://jira.codehaus.org/browse/MANTRUN-51 --> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-apache-regexp</artifactId> <version>1.10.7</version> <scope>runtime</scope> </dependency> <dependency> <groupId>jakarta-regexp</groupId> <artifactId>jakarta-regexp</artifactId> <version>1.4</version> </dependency> </dependencies> </plugin> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-dependency-plugin </artifactId> <versionRange> [2.1,) </versionRange> <goals> <goal>copy</goal> <goal>copy-dependencies</goal> <goal>unpack</goal> </goals> </pluginExecutionFilter> <action> <ignore/> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId> org.codehaus.mojo </groupId> <artifactId> build-helper-maven-plugin </artifactId> <versionRange> [1.7,) </versionRange> <goals> <goal> reserve-network-port </goal> </goals> </pluginExecutionFilter> <action> <ignore/> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-jar-plugin </artifactId> <versionRange> [2.3.1,) </versionRange> <goals> <goal> jar </goal> </goals> </pluginExecutionFilter> <action> <ignore/> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-antrun-plugin </artifactId> <versionRange> [1.6,) </versionRange> <goals> <goal>run</goal> </goals> </pluginExecutionFilter> <!-- to make this property transparently available in Eclipse run the maven-antrun-plugin - on full workspace build - when the project is configured --> <action> <execute> <runOnIncremental>false</runOnIncremental> <runOnConfiguration>true</runOnConfiguration> </execute> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build> <!-- ======================================================================= --> <!-- P R O F I L E S --> <!-- ======================================================================= --> <profiles> <profile> <!-- Use this profile to install the OSGi bundle automatically, during development --> <id>autoInstallBundle</id> <activation> <activeByDefault>false</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.apache.sling</groupId> <artifactId>sling-maven-plugin</artifactId> <executions> <execution> <id>install-bundle</id> <goals> <goal>install</goal> </goals> <configuration> <slingUrl>${sling.url.author}/bundles</slingUrl> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <!-- Use this profile to generate an idea project with attached sources and linked modules --> <id>develop</id> <activation> <activeByDefault>false</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-idea-plugin</artifactId> <configuration> <downloadSources>true</downloadSources> <linkModules>true</linkModules> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- This is the release profile. --> <id>release</id> <activation> <activeByDefault>false</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>jdk8-or-lower</id> <activation> <!-- syntax according to http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html --> <jdk>(,9)</jdk> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <executions> <execution> <id>enforce-java</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireJavaVersion> <message> CQ must be compiled with Java 1.${cq.java.version} or higher (by default) </message> <version>1.${cq.java.version}</version> </requireJavaVersion> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.${cq.java.version}</source> <target>1.${cq.java.version}</target> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> <executions> <execution> <phase>test</phase> <goals> <goal>check</goal> </goals> </execution> </executions> <configuration> <signature> <groupId>org.codehaus.mojo.signature</groupId> <artifactId>java1${cq.java.version}</artifactId> <version>1.0</version> </signature> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>jdk9-or-higher</id> <activation> <!-- syntax according to http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html --> <jdk>[9,)</jdk> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <executions> <execution> <id>enforce-java</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireJavaVersion> <message> CQ must be compiled with Java ${cq.java.version} or higher (by default) </message> <version>${cq.java.version}</version> </requireJavaVersion> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <!-- release sets API classpath, source and target, see https://docs.oracle.com/javase/9/tools/javac.htm#GUID-AEEC9F07-CB49-4E96-8BC7-BCC2C7F725C9__GUID-D343F6B4-3FDD-43A8-AD24-43DD70214471 and http://openjdk.java.net/jeps/247 --> <release>${cq.java.version}</release> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- This is the publish profile. --> <id>publish</id> <activation> <activeByDefault>false</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.apache.sling</groupId> <artifactId>sling-maven-plugin</artifactId> <configuration> <slingUrl>${sling.url.publish}</slingUrl> </configuration> </plugin> </plugins> </build> </profile> </profiles> <!-- ======================================================================= --> <!-- D E P E N D E N C Y M A N A G E M E N T --> <!-- ======================================================================= --> <dependencyManagement> <dependencies> <!-- Servlet API --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency> <!-- JSP API --> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <!-- JSTL Dependencies --> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.1.2</version> <scope>provided</scope> </dependency> <!-- OSGi --> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> <version>6.0.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>osgi.cmpn</artifactId> <version>6.0.0</version> <scope>provided</scope> </dependency> <!-- JCR --> <dependency> <groupId>javax.jcr</groupId> <artifactId>jcr</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <!-- Logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> <scope>provided</scope> </dependency> <!-- Testing --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jmock</groupId> <artifactId>jmock-junit4</artifactId> <version>2.12.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>3.3.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>${slf4j.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> <scope>test</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <!-- OSGi Annotations: @Version --> <dependency> <groupId>org.osgi</groupId> <artifactId>osgi.annotation</artifactId> <version>7.0.0</version> <scope>provided</scope> </dependency> <!-- Declarative Service Annotations --> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.service.component.annotations</artifactId> <version>1.4.0</version> <scope>provided</scope> </dependency> <!-- Metatype Annotations --> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.service.metatype.annotations</artifactId> <version>1.4.0</version> <scope>provided</scope> </dependency> </dependencies> <!-- Deploy to the Maven Repositories using WebDAV URLs. This enables abstracting the real location of the repositories and better access control. Finally it mirrors read and write operations through the same mechanism. NOTE: To use these dav: URLs, the WebDAV extension to Maven Wagon must be declared in the build section above. --> <distributionManagement> <repository> <id>${releaseRepository-Id}</id> <name>${releaseRepository-Name}</name> <url>${releaseRepository-URL}</url> </repository> <snapshotRepository> <id>${snapshotRepository-Id}</id> <name>${snapshotRepository-Name}</name> <url>${snapshotRepository-URL}</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> <!-- Continous Integration --> <ciManagement> <system>Jenkins</system> <url>http://jenkins.bsl.eur.adobe.com</url> </ciManagement> </project>