Skip to content

Commit c8fe401

Browse files
committed
Add native support for apache POI module
1 parent 998aba7 commit c8fe401

File tree

4 files changed

+530
-15
lines changed

4 files changed

+530
-15
lines changed

fj-doc-mod-poi/pom.xml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,48 @@
2525
</properties>
2626

2727
<build>
28-
28+
29+
<plugins>
30+
31+
<plugin>
32+
<groupId>org.fugerit.java</groupId>
33+
<artifactId>native-helper-maven-plugin</artifactId>
34+
<version>${native-helper-maven-plugin-version}</version>
35+
<executions>
36+
<execution>
37+
<id>generate-native-configuration</id>
38+
<phase>prepare-package</phase>
39+
<goals>
40+
<goal>generate</goal>
41+
</goals>
42+
<configuration>
43+
<createParentDirectory>true</createParentDirectory>
44+
<nativeHelperConfigPath>${project.basedir}/src/main/config/native-helper-config.yaml</nativeHelperConfigPath>
45+
<reflectConfigJsonOutputPath>${project.build.directory}/generated-resources/reflect-config-custom.json</reflectConfigJsonOutputPath>
46+
<warnOnError>false</warnOnError>
47+
</configuration>
48+
</execution>
49+
<execution>
50+
<id>merge-native-configuration</id>
51+
<phase>prepare-package</phase>
52+
<goals>
53+
<goal>merge</goal>
54+
</goals>
55+
<configuration>
56+
<reflectConfigJsonFiles>
57+
<reflectConfigJsonFile>${project.build.directory}/generated-resources/reflect-config-custom.json</reflectConfigJsonFile>
58+
<reflectConfigJsonFile>${project.basedir}/src/main/config/reflect-config-nhg.json</reflectConfigJsonFile>
59+
</reflectConfigJsonFiles>
60+
<reflectConfigJsonOutputPath>${project.basedir}/src/main/resources/META-INF/native-image/reflect-config.json</reflectConfigJsonOutputPath>
61+
<createParentDirectory>true</createParentDirectory>
62+
<warnOnError>false</warnOnError>
63+
</configuration>
64+
</execution>
65+
</executions>
66+
</plugin>
67+
68+
</plugins>
69+
2970
</build>
3071

3172
<dependencies>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sample native helper config file
2+
---
3+
generate:
4+
- packageName: org.fugerit.java.doc.mod.poi
5+
mode: all
6+
typeReachable: org.fugerit.java.doc.base.facade.DocFacadeSource
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"name": "java.lang.Class",
4+
"methods": [
5+
{ "name": "getSimpleName", "parameterTypes": [] },
6+
{ "name": "getName", "parameterTypes": [] },
7+
{ "name": "getCanonicalName", "parameterTypes": [] }
8+
]
9+
}
10+
]

0 commit comments

Comments
 (0)