Java如何让Maven生成JAR包时打包资源文件

xingyun86 2020-1-7 1653

Java如何让Maven生成JAR包时打包资源文件

<build>  
    <finalName>test</finalName>   
    <resources>  
        <resource>  
            <directory>src/main/resources</directory>  
            <includes>  
                <include>**/*.*</include>  
            </includes>  
            
            <filtering>false</filtering>  
        </resource>  
        <resource>  
            <directory>src/main/java</directory>  
            <includes>  
                <include>**/*.*</include>  
            </includes>  
            <excludes>
                <exclude>**/*.java</exclude>
            </excludes>
            <filtering>false</filtering>  
        </resource>  
    </resources>  
</build>


×
打赏作者
最新回复 (0)
查看全部
全部楼主
返回