mven web 注意事项

maven web 注意事项

1. maven 项目默认不会把 Libraries 排出到 web/WEB-INF/lib

  1. 点击 file -> Project Structure... 打开项目结构

  2. 点击 Artifacts

  3. 点击 Put into Output Root

    mwON

    2 . mvaen 默认不会排出 xml 文件,在 pom 文件中添加

    <!--  强制排出   -->
        <build>
            <resources>
                <resource>
                    <directory>src/main/java</directory>
                    <includes>
                        <include>**/*.properties</include>
                        <include>**/*.xml</include>
                    </includes>
                    <filtering>false</filtering>
                </resource>
                <resource>
                    <directory>src/main/resources</directory>
                    <includes>
                        <include>**/*.properties</include>
                        <include>**/*.xml</include>
                    </includes>
                    <filtering>false</filtering>
                </resource>
            </resources>
        </build>
    
posted @ 2020-08-22 21:16  javaYanglei  阅读(73)  评论(0编辑  收藏  举报