I tried to migrate to java 11. But when I change the version of plugin maven-surefire-plugin to 2.22.2 that supports java 11, maven or IntelliJ can not find it:
I tried with other versions >= 2.20, but had same error. I tried to fix it:
Thanks @Andrey for the great suggestion!
Overview This tutorial demonstrates the surefire plugin, one of the core plugins of the Maven build tool. For an overview of the other core plugins, refer to this article. 2. Plugin Goal We can run the tests of a project using the surefire plugin.
If you are working in IntelliJ you can use maven plugin instead. On the right side click maven Tab -> plugins -> clean -> clean:clean Thanks for contributing an answer to Stack Overflow!
For this reason, future Maven versions might no longer support building such malformed projects. org.apache.maven.plugins:maven.compiler. The plugin is a plugin that can be added by “Add Denpendency”.
We can run the tests of a project using the surefire plugin. By default, this plugin generates XML reports in the directory target/surefire-reports. This plugin has only one goal, test. This goal is bound to the test phase of the default build lifecycle, and the command mvn test will execute it. 3. Configuration
I fixed this issue, I do:
Thanks @Andrey for the great suggestion!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With