Process exited with an error: 1 (Exit value: 1)

Process exited with an error: 1 (exit value: 1) when this bug occurs

I was trying to write and run the main method in test.java. There was a bug.
the main solution is:

 <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>

Revision 381422;https://blog.csdn.net/weixin_45773603/article/details/105883894

Read More: