| <?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> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>sling-bundle-parent</artifactId> |
| <version>49</version> |
| <relativePath /> |
| </parent> |
| <artifactId>org.apache.sling.models.impl</artifactId> |
| <version>1.6.5-SNAPSHOT</version> |
| <name>Apache Sling Models Implementation</name> |
| <description>Apache Sling Models Implementation</description> |
| |
| <scm> |
| <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-impl.git</connection> |
| <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-impl.git</developerConnection> |
| <url>https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-models-impl.git</url> |
| <tag>HEAD</tag> |
| </scm> |
| <properties> |
| <sling.java.version>8</sling.java.version> |
| <project.build.outputTimestamp>2023-05-30T08:54:10Z</project.build.outputTimestamp> |
| <models.api.version>1.5.0</models.api.version> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createSourcesJar>true</createSourcesJar> |
| <shadeSourcesContent>true</shadeSourcesContent> |
| <artifactSet> |
| <includes> |
| <include>org.apache.sling:org.apache.sling.scripting.core</include> |
| </includes> |
| </artifactSet> |
| <relocations> |
| <relocation> |
| <pattern>org.apache.sling.scripting.core.impl.helper</pattern> |
| <shadedPattern>slingmodelsimpl.org.apache.sling.scripting.core.impl.helper</shadedPattern> |
| </relocation> |
| </relocations> |
| <filters> |
| <filter> |
| <artifact>org.apache.sling:org.apache.sling.scripting.core</artifact> |
| <includes> |
| <include>org/apache/sling/scripting/core/impl/helper/ProtectedBindings*</include> |
| </includes> |
| </filter> |
| </filters> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>dependency-reduced-pom.xml</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <configuration> |
| <attach>false</attach> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingfeature-maven-plugin</artifactId> |
| <version>1.7.2</version> |
| <extensions>true</extensions> |
| <configuration> |
| <skipAddFeatureDependencies>true</skipAddFeatureDependencies> |
| <skipAddJarToFeature>false</skipAddJarToFeature> |
| <jarStartOrder>25</jarStartOrder> |
| <!-- |
| Prepares a feature model aggregate that takes the following features from |
| the Sling Starter: |
| - nosample_base - the base Sling Starter |
| - oak_persistence_sns - SegmentNodeStore persistence for Oak |
| - composum - The Composum Nodes administration tool |
| Notably missing are the slingshot and starter samples |
| --> |
| </configuration> |
| <executions> |
| <execution> |
| <id>prepare-features</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>analyse-features</goal> |
| <goal>attach-features</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>create-app-repository</id> |
| <phase>package</phase> |
| <goals> |
| <goal>repository</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- reserve network ports for the integration tests --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>reserve-network-port</id> |
| <goals> |
| <goal>reserve-network-port</goal> |
| </goals> |
| <phase>pre-integration-test</phase> |
| <configuration> |
| <portNames> |
| <portName>starter-its.http.port</portName> |
| </portNames> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- launch the Sling instances to test; only oak-tar --> |
| <plugin> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>feature-launcher-maven-plugin</artifactId> |
| <version>0.1.6</version> |
| <configuration> |
| <!-- newer versions don't work due to https://issues.apache.org/jira/browse/SLING-11158 --> |
| <featureLauncherVersion>1.1.26</featureLauncherVersion> |
| <launches> |
| <launch> |
| <id>sling-starter-oak-tar</id> |
| <feature> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>${project.artifactId}</artifactId> |
| <version>${project.version}</version> |
| <classifier>app</classifier> |
| <type>slingosgifeature</type> |
| </feature> |
| <repositoryUrls> |
| <repositoryUrl>file://${project.build.directory}/artifacts</repositoryUrl> |
| </repositoryUrls> |
| <launcherArguments> |
| <frameworkProperties> |
| <org.osgi.service.http.port>${starter-its.http.port}</org.osgi.service.http.port> |
| </frameworkProperties> |
| </launcherArguments> |
| <startTimeoutSeconds>${starter-its.startTimeoutSeconds}</startTimeoutSeconds> |
| </launch> |
| </launches> |
| <waitForInput>true</waitForInput> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>start</goal> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.models.api</artifactId> |
| <version>${models.api.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.framework</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.service.component</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.util.tracker</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.service.http.whiteboard</artifactId> |
| <version>1.1.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <!-- OSGi annotations --> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.service.component.annotations</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.service.metatype.annotations</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.annotation.versioning</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <!-- regular compile-time dependencies --> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>javax.servlet-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>3.4</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.api</artifactId> |
| <version>2.21.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.api</artifactId> |
| <version>2.2.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.inject</groupId> |
| <artifactId>javax.inject</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.commons.osgi</artifactId> |
| <version>2.4.0</version> |
| <scope>compile</scope> |
| </dependency> |
| <!-- Artifact is shaded and inlined, only some classes included (see above) --> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.core</artifactId> |
| <version>2.4.8</version> |
| <scope>compile</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.utils</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.jetbrains</groupId> |
| <artifactId>annotations</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.annotation</groupId> |
| <artifactId>javax.annotation-api</artifactId> |
| <version>1.3.2</version> |
| <scope>provided</scope> |
| </dependency> |
| <!-- Test dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.testing.osgi-mock.junit4</artifactId> |
| <version>3.2.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>4.4.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-junit</artifactId> |
| <version>2.0.0.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.servlet-helpers</artifactId> |
| <version>1.4.2</version> |
| <scope>test</scope> |
| </dependency> |
| <!-- transitive depedendencies of org.apache.sling.servlet-helpers --> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-collections4</artifactId> |
| <version>4.1</version> |
| <scope>test</scope> |
| </dependency> |
| <!-- for testing the annotations --> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.util.converter</artifactId> |
| <version>1.0.9</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context</artifactId> |
| <version>5.2.9.RELEASE</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Additional dependencies needed for ITs --> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.junit.core</artifactId> |
| <version>1.0.28</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.testing.rules</artifactId> |
| <version>1.0.8</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.testing.clients</artifactId> |
| <version>2.0.12</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.junit.teleporter</artifactId> |
| <version>1.0.20</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </project> |