Where should I put unit tests when migrating a Java 8 project to Jigsaw

后端 未结 3 1146
花落未央
花落未央 2020-12-03 07:54

I am currently testing to migrate a Java 8 application to Java 9 / Jigsaw, using jdk-9+149.

The project has been laid out in standard Maven directory layout, i.e. ha

3条回答
  •  萌比男神i
    2020-12-03 08:44

    You must at least use maven-compiler-plugin 3.6.0 to have jigsaw support. However, since build +148 the binary structure of a class file has changed, so the plugin cannot extract the modulename as before (the modulename is required to be able to compile the tests). I'm working on a fix for that, but I probably depend on a new version of ASM.

    UPDATE: maven-compiler-plugin-3.6.1 has been released, so support for jigsaw is restored.

提交回复
热议问题