Netbeans 6.9에 내장 된 Maven 프로젝트가 있습니다. .class 파일 이외의 .html 파일을 내보내려고합니다. 간단히 복사하고 싶지만 Netbeans에서 어떻게 구성해야할지 모르겠습니다.Maven Enterprise Application (Netbeans 6.9)에서 .html 파일을 내보내는 방법
0
A
답변
3
귀하의 개찰 자바 소스 파일과 동일한 디렉토리에있는 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>
+0
정말 고마워요, 매력처럼 작동했습니다. 아마도 마지막 줄을으로 편집하십시오. 어느 쪽이든, 정말 고마워요. – msj121
+0
기꺼이 도와 드리겠습니다 ... 오타를 수정하기 위해 답을 수정했습니다. – artbristol
html 파일은 javadoc으로 생성 되었습니까? – khmarbaise