【问题标题】:How to export .html files in a Maven Enterprise Application (Netbeans 6.9)如何在 Maven 企业应用程序 (Netbeans 6.9) 中导出 .html 文件
【发布时间】:2011-03-30 07:05:30
【问题描述】:

我有一个在 Netbeans 6.9 中构建的 Maven 项目...我想单独导出 .html 文件而不是 .class 文件。我想简单地复制它们,但我不确定如何在 Netbeans 中进行配置。

【问题讨论】:

  • html文件是javadoc生成的?

标签: java html maven wicket


【解决方案1】:

我假设您的意思是与您的 wicket java 源文件位于同一目录中的 HTML 文件。通常的做法是在项目的 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>

【讨论】:

  • 非常感谢,工作就像一个魅力,顺便说一句,也许将最后一行编辑为 。不管怎样,非常感谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-05-20
  • 1970-01-01
相关资源
最近更新 更多