开发者

How to export .html files in a Maven Enterprise Application (Netbeans 6.9)

开发者 https://www.devze.com 2023-02-20 13:01 出处:网络
I have a开发者_如何转开发 Maven Project Built in Netbeans 6.9... I want to export .html files other then .class files alone. I want to simply copy them, but I am not sure how to configure this in Netb

I have a开发者_如何转开发 Maven Project Built in Netbeans 6.9... I want to export .html files other then .class files alone. I want to simply copy them, but I am not sure how to configure this in Netbeans.


I assume you mean the HTML files that live in the same directories as your wicket java source files. The usual way to do this is in the project's pom.xml:

<resources>
            <resource>
                <!-- Copy wicket HTML and other resource files from the java directory -->
                <filtering>false</filtering>
                <directory>${basedir}/src/main/java</directory>
                <includes>
                    <include>**/*.html</include>
                    <include>**/*.js</include>
                    <include>**/*.png</include>
                    <include>**/*.css</include>
                    <include>**/*.jpg</include>
                </includes>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
</resources>
0

精彩评论

暂无评论...
验证码 换一张
取 消