目录

Maven 编译报错:Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date]

原因

使用maven进行打包 install package时报错

./1.png

解决

解决一:临时手动操作

./2.png

解决二:pom.xml配置

./3.png

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
        <plugin><!--编译跳过测试文件检查的生命周期-->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <skip>true</skip>
            </configuration>
        </plugin>
    </plugins>
    <resources>
        <!--如果pro和xml文件放在源码java包下,也需要编译-->
        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>false</filtering>
        </resource>
    </resources>
</build>