java maven 編譯文件時 有些類型文件 不存在

在pom.xml中添加以下:java

<build>
    <resources>
        <resource>
            <directory>src/main/resource</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
                <include>**/*.tld</include>
            </includes>
            <filtering>false</filtering>
        </resource>
        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
                <include>**/*.tld</include>
            </includes>
            <filtering>false</filtering>
        </resource>
    </resources>
</build>

 將 src/main/java, src/main/resource 包下的指定類型文件進行打包操做 輸出到輸出目錄(classes)app

相關文章
相關標籤/搜索