Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project

  1. updated to from jdk16 Java jdk 8 or 11 to support jenkins Build run.

  2. Plugin management tags aligned properly.

 

  <pluginManagement>
   <plugins>
         <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-surefire-plugin</artifactId>
             <version>3.0.0-M5</version>
             <configuration>
                 <includes>                                                   
                     <include>Sample.java</include>
                 </includes>

             </configuration>
         </plugin>



     <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <version>3.7.0</version>
         <configuration>
             <source>8</source>
             <target>8</target>
         </configuration>
     </plugin>

 </plugins>

posted on 2022-07-20 16:18  867511789  阅读(907)  评论(0编辑  收藏  举报

导航