Alan,The fragment of XML from the pom that I posted IS in the Wicket Quickstart generated via "mvn archetype:generate". It's also in the pom when you use the helper code available here: http://wicket.apache.org/quickstart.html
Hence why it's not a hack, it's standard Maven stuff. You don't need the maven war plugin to generate the default war either.
However, since you are doing it in a non standard way then you'll need the maven war plugin to assemble your war in the way you want.
You said this:
Thanks for that, but that's not really my issue. How do I make Wicket find the .html files in the root of the war?
So I gave you a link to do that. Since your HTML files will now be in a non standard location (ie not next to the classes) you will need to configure your app to look in the location you desire, and that information is available in the wiki link I posted:
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
All of this information is readily available; first search item for the configuration, quickstart for pom.
Steve On 5 May 2009, at 10:11, Alan Garfield wrote:
On Tue, 2009-05-05 at 08:32 +0100, Steve Swinsburg wrote:On 05/05/2009, at 1:28 AM, Alan Garfield wrote:The hack I have with maven at the moment properly constructs the war by copying all the .html files into the classes folder for Wicket to find...What 'hack' do you need for Maven to include the HTML in the classes directory? Presumably, since most other Wicket developers have their HTML alongside their classes, they need this hack as well right? It's just standard maven building:I didn't want to start a religious argument. I don't want to ruffle anyone's feathers. I didn't mean "hack" as a bad thing, I meant that Iadded a resource directive to Maven (ala below) to include the HTML from the webapp directory and it helpfully copied it twice as part of the warplugin. Without this "change" to the default wicket-quickstart POMWicket still wouldn't find them. That was all I meant, hack was probably the wrong word and I apologies if I upset anyone. At the same time, whyattack me when all I asked was a simple question I couldn't find the answer to elsewhere.Add this to your POM to add everything except the Java source, as is. It's even in the Maven quickstart: <build> <resources> <resource> <filtering>false</filtering> <directory>${basedir}/src/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> </build> Nonetheless, the first result from a search for wicket html location (Safari even autofilled the last word for me) I found this: http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.htmlThanks Steve for the added condescending tone there, but above isn'tshown in the wiki you just posted (I also looked at that before posting,I even attempted to use the non-maven partitioning method but without much documentation on the PathStripperLocator and a working example I got lost). I posted here as a last resort to my question and wasn't looking to beverbally beaten up because I asked a question that might be outside thenorm. Thanks anyway, Alan. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
smime.p7s
Description: S/MIME cryptographic signature