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 I
added 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 war
plugin. Without this "change" to the default wicket-quickstart POM
Wicket 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, why
attack 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.html

Thanks Steve for the added condescending tone there, but above isn't
shown 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 be
verbally beaten up because I asked a question that might be outside the
norm.

Thanks anyway,
Alan.




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to