moditect

@ComponentScan does not detect beans in a jlink'ed Java runtime image

不想你离开。 提交于 2019-12-12 20:00:14
问题 I'm using JavaFX on Java 11 to create a desktop app. The app is bundled into a custom runtime image with all its modules and their dependencies using jlink . For dependency injection, the app relies on the Spring Framework. I'm aware that Spring modules currently do not include a module-info.class , instead they are shipped as "automatic modules". Since automatic modules cannot be bundled with jlink , I manually added module-info.class to each Spring dependency JAR using the Moditect Maven

spring with jlink, moditect and java 11

六月ゝ 毕业季﹏ 提交于 2019-12-05 09:36:55
问题 thanks to pupeno for his precedent work on spring and moditect that helped me for most of my problem on the subject, however I'm blocked a bit further that he was. my problem is the illegal access exception my poc is available on github I used to add this bit of code to make it work with intelliJ IDEA : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <compilerArgs> <arg>--add-opens java.base/java.lang

spring with jlink, moditect and java 11

隐身守侯 提交于 2019-12-03 21:42:10
thanks to pupeno for his precedent work on spring and moditect that helped me for most of my problem on the subject, however I'm blocked a bit further that he was. my problem is the illegal access exception my poc is available on github I used to add this bit of code to make it work with intelliJ IDEA : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <compilerArgs> <arg>--add-opens java.base/java.lang=ALL-UNAMED</arg> </compilerArgs> <source>11</source> <target>11</target> </configuration> </plugin>