File tree Expand file tree Collapse file tree 4 files changed +530
-15
lines changed
resources/META-INF/native-image Expand file tree Collapse file tree 4 files changed +530
-15
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "name" : " java.lang.Class" ,
4+ "methods" : [
5+ { "name" : " getSimpleName" , "parameterTypes" : [] },
6+ { "name" : " getName" , "parameterTypes" : [] },
7+ { "name" : " getCanonicalName" , "parameterTypes" : [] }
8+ ]
9+ }
10+ ]
You can’t perform that action at this time.
0 commit comments