| <!-- |
| 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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <!-- ====================================================================== --> |
| <!-- P R O J E C T D E S C R I P T I O N --> |
| <!-- ====================================================================== --> |
| <groupId>org.apache.jackrabbit.filevault</groupId> |
| <artifactId>package-plugin-test-pkg</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| <packaging>content-package</packaging> |
| <name>Packaging test</name> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.jackrabbit</groupId> |
| <artifactId>filevault-package-maven-plugin</artifactId> |
| <version>${plugin.version}</version> |
| <extensions>true</extensions> |
| <configuration> |
| <filterSource>${project.basedir}/filter.xml</filterSource> |
| <thumbnailImage>dummy-image.png</thumbnailImage> |
| <filters> |
| <filter> |
| <root>/apps/wcm/core</root> |
| </filter> |
| </filters> |
| <embeddeds> |
| <embedded> |
| <groupId>javax.jcr</groupId> |
| <artifactId>jcr</artifactId> |
| <target>/libs/install</target> |
| <filter>true</filter> |
| </embedded> |
| <embedded> |
| <groupId>org.apache.jackrabbit.vault</groupId> |
| <artifactId>org.apache.jackrabbit.vault</artifactId> |
| <filter>true</filter> |
| </embedded> |
| </embeddeds> |
| <embeddedTarget>/apps/wcm/core/install</embeddedTarget> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>libs-package-profile</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>3.1.0</version> |
| <executions> |
| <execution> |
| <id>copy-resources-to-libs</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/jcr_root/libs</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/jcr_root/apps</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.jackrabbit</groupId> |
| <artifactId>filevault-package-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-metadata-libs</id> |
| <goals> |
| <goal>generate-metadata</goal> |
| </goals> |
| <configuration> |
| <filters> |
| <filter> |
| <root>/libs/wcm/core</root> |
| </filter> |
| </filters> |
| <embeddedTarget>/libs/wcm/core/install</embeddedTarget> |
| <classifier>libs</classifier> |
| </configuration> |
| </execution> |
| <execution> |
| <id>package-libs</id> |
| <goals> |
| <goal>package</goal> |
| </goals> |
| <configuration> |
| <jcrRootSourceDirectory>${project.build.directory}/jcr_root</jcrRootSourceDirectory> |
| <classifier>libs</classifier> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| <dependencies> |
| <dependency> |
| <groupId>javax.jcr</groupId> |
| <artifactId>jcr</artifactId> |
| <version>2.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.jackrabbit.vault</groupId> |
| <artifactId>org.apache.jackrabbit.vault</artifactId> |
| <version>3.1.40</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| </project> |