Process exited with an error: 1 (Exit value: 1)出现此bug 的时候
我是在尝试在test.java进行写main 方法运行的时候,出现在bug.
主要的是解决方法是:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<!-- <executions>-->
<!-- <execution>-->
<!-- <goals>-->
<!-- <goal>java</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<configuration>
<classpathScope>test</classpathScope>
<!-- <mainClass>com.itheima.test.MybatisTest</mainClass>-->
</configuration>
</plugin>
</plugins>
</build>
参考链接:https://blog.youkuaiyun.com/weixin_45773603/article/details/105883894