You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2021/04/15 14:58:44 UTC
[tika] branch main updated: TIKA-3355 -- include dependencies in
test-jar
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new b695988 TIKA-3355 -- include dependencies in test-jar
b695988 is described below
commit b69598895977df1f1ba7a93fe602fa9d6fda2ee7
Author: tallison <ta...@apache.org>
AuthorDate: Thu Apr 15 10:58:22 2021 -0400
TIKA-3355 -- include dependencies in test-jar
---
tika-core/pom.xml | 18 ++++++++++
.../main/assembly/test-jar-with-dependencies.xml | 38 ++++++++++++++++++++++
2 files changed, 56 insertions(+)
diff --git a/tika-core/pom.xml b/tika-core/pom.xml
index 0d026f5..a1d788e 100644
--- a/tika-core/pom.xml
+++ b/tika-core/pom.xml
@@ -240,6 +240,24 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <!-- consider moving the test framework to another regular package -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/test-jar-with-dependencies.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
diff --git a/tika-core/src/main/assembly/test-jar-with-dependencies.xml b/tika-core/src/main/assembly/test-jar-with-dependencies.xml
new file mode 100644
index 0000000..9cbacc2
--- /dev/null
+++ b/tika-core/src/main/assembly/test-jar-with-dependencies.xml
@@ -0,0 +1,38 @@
+<?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.
+-->
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>test-jar-with-dependencies</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/</outputDirectory>
+ <useProjectArtifact>true</useProjectArtifact>
+ <!-- we're creating the test-jar as an attachement -->
+ <useProjectAttachments>true</useProjectAttachments>
+ <unpack>true</unpack>
+ <scope>test</scope>
+ </dependencySet>
+ </dependencySets>
+</assembly>