| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>\${groupId}</groupId> |
| <artifactId>\${artifactId}</artifactId> |
| <version>\${version}</version> |
| <packaging>content-package</packaging> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| </properties> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/content/jcr_root</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${compilerplugin.version}</version> |
| <configuration> |
| <source>${archetype.java.version}</source> |
| <target>${archetype.java.version}</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.jackrabbit</groupId> |
| <artifactId>filevault-package-maven-plugin</artifactId> |
| <version>1.1.2</version> |
| <extensions>true</extensions> |
| <configuration> |
| <jcrRootSourceDirectory>\${project.build.outputDirectory}</jcrRootSourceDirectory> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>htl-maven-plugin</artifactId> |
| <version>1.1.0</version> |
| <executions> |
| <execution> |
| <id>validate-scripts</id> |
| <goals> |
| <goal>validate</goal> |
| </goals> |
| <phase>generate-sources</phase> |
| <configuration> |
| <sourceDirectory>src/main/content/jcr_root</sourceDirectory> |
| <includes> |
| <include>**/*.html</include> |
| </includes> |
| <failOnWarnings>true</failOnWarnings> |
| <generateJavaClasses>true</generateJavaClasses> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>io.wcm.maven.plugins</groupId> |
| <artifactId>wcmio-content-package-maven-plugin</artifactId> |
| <version>1.7.6</version> |
| <configuration> |
| <serviceURL>http://localhost:8080/bin/cpm/package.upload.json</serviceURL> |
| </configuration> |
| </plugin> |
| <!-- For Apache projects that check for LICENCE and NOTICE files you need |
| to uncomment the following plugin declaration, otherwise the build will fail --> |
| <!-- |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-legal-files</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>\${project.build.directory}/vault-work/META-INF</outputDirectory> |
| <resources> |
| <resources> |
| <directory>\${project.build.directory}/maven-shared-archive-resources/META-INF/</directory> |
| </resources> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| --> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <!-- needed for HTL compilation validation --> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.sightly.compiler</artifactId> |
| <version>1.0.14</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.sightly.compiler.java</artifactId> |
| <version>1.0.16</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| </project> |