Skip to content

Commit

Permalink
rat plugin fixes in prep for 2.9.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
tballison committed Aug 23, 2023
1 parent 2de3c91 commit f285d4f
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tika-core/src/test/resources/test-documents/undeclared_entity.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
<?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.
-->
<address>
<company>START</company>
<name>An entity here&undeclared_entity; is invalid!</name>
Expand Down
1 change: 1 addition & 0 deletions tika-parsers/tika-parsers-ml/tika-age-recogniser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>model/opennlp/*.bin</exclude>
<exclude>model/org/apache/tika/parser/recognition/**</exclude>
</excludes>
</configuration>
Expand Down
14 changes: 14 additions & 0 deletions tika-parsers/tika-parsers-ml/tika-parser-nlp-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,20 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<excludes>
<exclude>src/test/resources/org/apache/tika/parser/ner/opennlp/*.bin</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>testSetup</id>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<!--
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.
-->
<TEI xmlns="http://www.tei-c.org/ns/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 C:\grobid\grobid-home/schemas/xsd/Grobid.xsd"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes>
<exclude>src/main/resources/**/properties</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit f285d4f

Please sign in to comment.