Julia Boes schrieb am 25.08.2020 16:50 (GMT +07:00): > I added these 2 profiles to the original pom. mvn clean install runs > default-testCompile ok with JDK 14. With JDK 11 and JDK 8 it results in > compilation errors during default-testCompile: > > (...) > [INFO] Building Kryo Parent 5.0.0-RC10-SNAPSHOT > (...) > [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) ... > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 42 source files to ... > (...) > > [INFO] Kryo Parent ... FAILURE
I am assuming your project is some kind of fork of [1]. The project structure is quite unusual, having one parent POM and 3 children, all in the project's root directory and all using the same source tree with different settings. The parent POM [2] has <packaging>pom</packaging>, as is to be expected because it defines three submodules. I think the original author's intention is not to compile anything in the parent POM, only to configure plugins via <pluginManagement> in order to use same configuration later in the children in their respective <plugins> sections. I cannot say for sure, but probably you just copied & pasted my plugin configurations into the parent POM's <plugin> section instead of <pluginManagement> -> <plugins>, consequently kicking off test compilation from the parent. I guess you want to change that. BTW, if you can fork the original repo for me and just add enough commits to reproduce your situation, I can take a closer look. Currently, I have to speculate based on the information I have, which is less than ideal. [1] https://github.com/EsotericSoftware/kryo [2] https://github.com/EsotericSoftware/kryo/blob/master/pom.xml Regards -- Alexander Kriegisch https://scrum-master.de --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
