You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2021/08/31 16:21:20 UTC
[jackrabbit-filevault-package-maven-plugin] branch
bugfix/validate-classifier updated: Add test case for Classifier
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch bugfix/validate-classifier
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault-package-maven-plugin.git
The following commit(s) were added to refs/heads/bugfix/validate-classifier by this push:
new d2df1d6 Add test case for Classifier
d2df1d6 is described below
commit d2df1d6933784351e76b7f342b48c2702a4307ff
Author: Bryan Stopp <br...@gmail.com>
AuthorDate: Tue Aug 31 09:12:09 2021 -0500
Add test case for Classifier
---
.../maven/packaging/it/ValidatePackageIT.java | 5 +++
.../validator-projects/classifier-project/pom.xml | 38 ++++++++++++++++++++++
.../src/main/content/META-INF/vault/filter.xml | 20 ++++++++++++
3 files changed, 63 insertions(+)
diff --git a/src/test/java/org/apache/jackrabbit/filevault/maven/packaging/it/ValidatePackageIT.java b/src/test/java/org/apache/jackrabbit/filevault/maven/packaging/it/ValidatePackageIT.java
index 0a95edd..2733e58 100644
--- a/src/test/java/org/apache/jackrabbit/filevault/maven/packaging/it/ValidatePackageIT.java
+++ b/src/test/java/org/apache/jackrabbit/filevault/maven/packaging/it/ValidatePackageIT.java
@@ -55,4 +55,9 @@ public class ValidatePackageIT {
public void testValidProjectWithZip() throws Exception {
verify("project-with-zip", false);
}
+
+ @Test
+ public void testValidProjectWithClassifier() throws Exception {
+ verify("classifier-project", false);
+ }
}
diff --git a/src/test/resources/test-projects/validator-projects/classifier-project/pom.xml b/src/test/resources/test-projects/validator-projects/classifier-project/pom.xml
new file mode 100755
index 0000000..d4e7fc1
--- /dev/null
+++ b/src/test/resources/test-projects/validator-projects/classifier-project/pom.xml
@@ -0,0 +1,38 @@
+<!--
+ 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>
+ <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>
+ <classifier>test</classifier>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/test/resources/test-projects/validator-projects/classifier-project/src/main/content/META-INF/vault/filter.xml b/src/test/resources/test-projects/validator-projects/classifier-project/src/main/content/META-INF/vault/filter.xml
new file mode 100644
index 0000000..be47b49
--- /dev/null
+++ b/src/test/resources/test-projects/validator-projects/classifier-project/src/main/content/META-INF/vault/filter.xml
@@ -0,0 +1,20 @@
+<?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.
+ -->
+<workspaceFilter version="1.0">
+ <filter root="/apps/test" />
+</workspaceFilter>