You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2020/07/30 18:18:09 UTC

[sling-org-apache-sling-app-cms] 02/18: Adding a POM to convert PM to FM

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch SLING-8913-multiple-instance-types
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 1795c271e65ab656f41a6ee5a0367e20defc5ea3
Author: Dan Klco <dk...@apache.org>
AuthorDate: Fri Jul 24 11:33:10 2020 -0400

    Adding a POM to convert PM to FM
---
 converter/pom.xml | 175 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 175 insertions(+)

diff --git a/converter/pom.xml b/converter/pom.xml
new file mode 100644
index 0000000..8718504
--- /dev/null
+++ b/converter/pom.xml
@@ -0,0 +1,175 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+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>
+
+    <parent>
+        <artifactId>org.apache.sling.cms</artifactId>
+        <groupId>org.apache.sling</groupId>
+        <version>0.16.3-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>org.apache.sling.cms.fmconverter</artifactId>
+    <name>Apache Sling - CMS Feature Model Converter</name>
+    <description>Complete Sling 12 Feature Model</description>
+    <packaging>slingosgifeature</packaging>
+
+    <properties>
+        <slingfeature-maven-plugin.version>1.3.4</slingfeature-maven-plugin.version>
+        <sling-feature-converter-maven-plugin.version>1.0.4</sling-feature-converter-maven-plugin.version>
+    </properties>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.sling</groupId>
+                <artifactId>sling-feature-converter-maven-plugin</artifactId>
+                <version>${sling-feature-converter-maven-plugin.version}</version>
+                <extensions>true</extensions>
+                <executions>
+                    <execution>
+                        <id>convert-pm</id>
+                        <phase>process-classes</phase>
+                        <goals>
+                            <goal>convert-pm</goal>
+                        </goals>
+                        <configuration>
+                            <inputFolder>${basedir}/../builder/src/main/provisioning</inputFolder>
+                            <outputFolder>target/fm</outputFolder>
+                            <groupId>${project.groupId}</groupId>
+                            <artifactId>org.apache.sling.cms.fmconverter</artifactId>
+                            <version>${project.version}</version>
+                            <frameworkProperties>
+                                launchpad:felix.systempackages.substitution=true,
+                                launchpad:felix.systempackages.calculate.uses=true
+                            </frameworkProperties>
+                            <excludeBundles>
+                                org.apache.sling.launchpad.installer,
+                                org.apache.sling.jcr.repoinit.impl.RepositoryInitializer
+                            </excludeBundles>
+                            <runModes>
+                                oak_tar,
+                                :standalone
+                            </runModes>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.sling</groupId>
+                <artifactId>slingfeature-maven-plugin</artifactId>
+                <version>${slingfeature-maven-plugin.version}</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <features>target/fm</features>
+                    <generatedFeatures>${basedir}/target/fm</generatedFeatures>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>aggregate-base-sling-feature</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>aggregate-features</goal>
+                        </goals>
+                        <configuration>
+                            <aggregates>
+                                <aggregate>
+                                    <classifier>slingcms</classifier>
+                                    <filesInclude>**/*.json</filesInclude>
+                                    <title>Sling App CMS Feature Model</title>
+                                </aggregate>
+                            </aggregates>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>install-feature</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attach-features</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>create-sling-feature-archives</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attach-featurearchives</goal>
+                        </goals>
+                        <configuration>
+                            <archives>
+                                <archive>
+                                    <classifier>slingcmsfar</classifier>
+                                    <includeClassifier>slingcms</includeClassifier>
+                                </archive>
+                            </archives>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>diff</id>
+                        <goals>
+                            <goal>features-diff</goal>
+                        </goals>
+                        <configuration>
+                            <selection>
+                                <includeClassifier>oak_tar</includeClassifier>
+                                <includeClassifier>slingcms</includeClassifier>
+                            </selection>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>Readme.md</exclude>
+                        <exclude>src/main/resources/META-INF/services/**</exclude>
+                        <exclude>**/*.properties</exclude>
+                        <exclude>conf/**</exclude>
+                        <exclude>launcher/**</exclude>
+                        <exclude>bin/**.sh</exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-install-plugin</artifactId>
+                <version>3.0.0-M1</version>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>ianal-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>verify-legal-files</id>
+                        <goals>
+                            <goal>verify-legal-files</goal>
+                        </goals>
+                        <configuration>
+                            <!-- Fail the build if any artifacts are missing legal files -->
+                            <strict>false</strict>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>