1. 程式人生 > 其它 >Maven 編譯:Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date]

Maven 編譯:Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date]

使用maven進行打包 install package時報錯

解決一:臨時手動操作

maven的編譯打包檢查:關閉點一下就可以了,忽略檢查測試檔案

解決二:pom.xml配置

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