Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With a simple change in your Maven pom.xml file, you can get clean separation of the Java and HTML source directories. (The Java class and HTML markup are still in the same package, though, unless you also use one of the strategies mentioned above.unmigrated-wiki-markup

Code Block

<project>
\[...\]
&nbsp;<build>
&nbsp;&nbsp; <resources>
&nbsp;&nbsp;&nbsp;&nbsp; <resource>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <directory>src/main/resources</directory>
&nbsp;&nbsp;&nbsp;&nbsp; </resource>
&nbsp;&nbsp;&nbsp;&nbsp; <resource>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <directory>src/main/html</directory>
&nbsp;&nbsp;&nbsp;&nbsp; </resource>
&nbsp;&nbsp; </resources>
\[...\]
&nbsp;</build>
\[...\]
</project>

Then, put all the HTML template files in:
<your-project>\src\main\resources\archetype-resources\src\main\html

...