Skip to content

Commit d16e9c9

Browse files
committed
[JAVA-10080] Add plugin for filtering xls resources
1 parent 69a8035 commit d16e9c9

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

apache-poi/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,27 @@
3232
</dependency>
3333
</dependencies>
3434

35+
<build>
36+
<plugins>
37+
<plugin>
38+
<groupId>org.apache.maven.plugins</groupId>
39+
<artifactId>maven-resources-plugin</artifactId>
40+
<version>${maven.resources.plugin.version}</version>
41+
<configuration>
42+
<encoding>UTF-8</encoding>
43+
<nonFilteredFileExtensions>
44+
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
45+
<nonFilteredFileExtension>xls</nonFilteredFileExtension>
46+
</nonFilteredFileExtensions>
47+
</configuration>
48+
</plugin>
49+
</plugins>
50+
</build>
51+
3552
<properties>
3653
<poi.version>5.2.0</poi.version>
3754
<jexcel.version>1.0.6</jexcel.version>
55+
<maven.resources.plugin.version>3.2.0</maven.resources.plugin.version>
3856
</properties>
3957

4058
</project>
7.32 KB
Binary file not shown.

apache-poi/src/test/java/com/baeldung/poi/excel/cellstyle/CellBorderHandlerUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import static org.junit.Assert.assertEquals;
1313

1414
public class CellBorderHandlerUnitTest {
15-
private static final String FILE_NAME = "cellstyle/CellStyleHandlerTest.xlsx";
15+
private static final String FILE_NAME = "cellstyle/CellStyleBorderHandlerTest.xlsx";
1616
private static final int SHEET_INDEX = 0;
1717

1818
private static CellBordersHandler cellBordersHandler;

0 commit comments

Comments
 (0)