或者在POM中加入

<plugins>
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.6.0</version>
        <configuration>
            <classpathScope>test</classpathScope>
        </configuration>
    </plugin>
</plugins>

 

posted on 2023-05-15 11:36  锋齐叶落  阅读(636)  评论(0编辑  收藏  举报