Skip to content

Commit

Permalink
TIKA-2775 - bulk update plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tballison committed Nov 9, 2018
1 parent 0b6a7c9 commit 7beae2f
Show file tree
Hide file tree
Showing 17 changed files with 101 additions and 60 deletions.
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
<module>tika-parent</module>
<module>tika-core</module>
<module>tika-parsers</module>
<module>tika-bundle</module>
<module>tika-xmp</module>
<module>tika-serialization</module>
<module>tika-batch</module>
<module>tika-app</module>
<module>tika-bundle</module>
<module>tika-server</module>
<module>tika-translate</module>
<module>tika-langdetect</module>
Expand All @@ -63,6 +63,7 @@
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven.assembly.version}</version>
<executions>
<execution>
<id>src</id>
Expand All @@ -86,6 +87,7 @@
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven.antrun.version}</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -176,6 +178,7 @@ least three +1 Tika PMC votes are cast.
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>CHANGES.txt</exclude>
Expand Down
5 changes: 4 additions & 1 deletion tika-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -182,6 +183,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>src/test/resources/test-data/**</exclude>
Expand All @@ -203,6 +205,7 @@
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven.antrun.version}</version>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -239,7 +242,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
Expand Down
21 changes: 2 additions & 19 deletions tika-batch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven.bundle.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
Expand All @@ -138,6 +139,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>src/test/resources/org/apache/tika/**</exclude>
Expand All @@ -163,25 +165,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.10</version>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>
${project.build.directory}/${project.build.finalName}.jar
</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
7 changes: 5 additions & 2 deletions tika-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<url>http://tika.apache.org/</url>

<properties>
<pax.exam.version>4.11.0</pax.exam.version>
<pax.exam.version>4.12.0</pax.exam.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -140,6 +140,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven.bundle.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
Expand Down Expand Up @@ -481,6 +482,7 @@
<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<version>${forbiddenapis.version}</version>
<configuration>
<skip>true</skip>
</configuration>
Expand All @@ -505,7 +507,7 @@

<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.10</version>
<version>${maven.failsafe.version}</version>
<executions>
<execution>
<goals>
Expand All @@ -525,6 +527,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>src/main/resources/META-INF/MANIFEST.MF</exclude>
Expand Down
4 changes: 3 additions & 1 deletion tika-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven.bundle.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
Expand All @@ -83,6 +84,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>src/test/resources/org/apache/tika/**</exclude>
Expand Down Expand Up @@ -149,7 +151,7 @@
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.10</version>
<version>2.22.1</version>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>
Expand Down
3 changes: 2 additions & 1 deletion tika-core/src/main/java/org/apache/tika/fork/ForkParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package org.apache.tika.fork;

import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
Expand All @@ -40,7 +41,7 @@
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;

public class ForkParser extends AbstractParser {
public class ForkParser extends AbstractParser implements Closeable {

/** Serial version UID */
private static final long serialVersionUID = -4962742892274663950L;
Expand Down
1 change: 1 addition & 0 deletions tika-dl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
</configuration>
</plugin>
Expand Down
5 changes: 4 additions & 1 deletion tika-eval/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -198,6 +199,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven.bundle.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
Expand All @@ -212,6 +214,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>src/main/resources/common_tokens/*</exclude>
Expand Down Expand Up @@ -241,7 +244,7 @@
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.10</version>
<version>${maven.failsafe.version}</version>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>
Expand Down
4 changes: 3 additions & 1 deletion tika-java7/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<version>1.7.4</version>
<version>${maven.scr.version}</version>
</plugin>
<plugin>
<!-- builds the bundle -->
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven.bundle.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
Expand All @@ -63,6 +64,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>src/main/resources/META-INF/services/java.nio.file.spi.FileTypeDetector</exclude>
Expand Down
4 changes: 3 additions & 1 deletion tika-langdetect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven.bundle.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
Expand All @@ -123,6 +124,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>src/test/resources/org/apache/tika/langdetect/*</exclude>
Expand Down Expand Up @@ -166,7 +168,7 @@
<pluginExecutionFilter>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<versionRange>[1.7.2,)</versionRange>
<version>${maven.scr.version}</version>
<goals>
<goal>scr</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions tika-nlp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes />
</configuration>
Expand Down
33 changes: 25 additions & 8 deletions tika-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,18 @@
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
<!-- plugin versions -->
<forbiddenapis.version>2.6</forbiddenapis.version>
<groovy.maven.version>2.1</groovy.maven.version>
<maven.antrun.version>1.8</maven.antrun.version>
<maven.assembly.version>3.1.0</maven.assembly.version>
<maven.bundle.version>4.1.0</maven.bundle.version>
<maven.failsafe.version>2.22.1</maven.failsafe.version>
<maven.javadoc.version>3.0.1</maven.javadoc.version>
<maven.scr.version>1.26.0</maven.scr.version>
<maven.surefire.version>2.22.1</maven.surefire.version>
<maven.shade.version>3.2.0</maven.shade.version>
<rat.version>0.12</rat.version>
<!-- NOTE: sync tukaani version with commons-compress in tika-parsers -->
<commons.compress.version>1.18</commons.compress.version>
<commons.io.version>2.6</commons.io.version>
Expand All @@ -321,7 +333,7 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<version>3.8.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
Expand All @@ -334,7 +346,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
<version>2.7</version>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
Expand All @@ -343,7 +355,7 @@
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<!-- if this version contains commons-io 2.6, remove hard-coded commons-io version below -->
<version>2.6</version>
<version>${forbiddenapis.version}</version>
<configuration>
<targetVersion>${maven.compiler.target}</targetVersion>
<failOnUnresolvableSignatures>false</failOnUnresolvableSignatures>
Expand All @@ -368,20 +380,20 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.5.1</version>
<version>${maven.bundle.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version> <!-- versions greater than this don't like System.exit calls in tika-batch -->
<version>${maven.surefire.version}</version> <!-- versions greater than this don't like System.exit calls in tika-batch -->
<configuration>
<argLine>-Xmx3072m -Duser.timezone=UTC</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<version>${maven.shade.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -398,13 +410,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M1</version>
<version>3.0.0-M2</version>
<executions>
<execution>
<id>enforce</id>
<configuration>
<rules>
<dependencyConvergence/>
<requireMavenVersion>
<version>3.5</version>
</requireMavenVersion>
</rules>
</configuration>
<goals>
Expand All @@ -424,6 +439,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<executions>
<execution>
<phase>verify</phase>
Expand Down Expand Up @@ -462,8 +478,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.version}</version>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<doclint>none</doclint>
</configuration>
</plugin>
</plugins>
Expand Down
Loading

0 comments on commit 7beae2f

Please sign in to comment.