You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ben Tilford <be...@gmail.com> on 2010/06/18 05:55:54 UTC

Re: ResourceStreamLocator and mvn resource:resource copying resources in the right directory

If you haven't customized the resource locator your telling wicket to look
sibling directory to your classpath root WEB-INF/classes which "I THINK" is
where wicket will start looking for resources.

It may be easier to use the build helper plugin which handles resources much
better than maven does on it's own.

On Thu, Jun 17, 2010 at 3:31 PM, Fernando Wermus
<fe...@gmail.com>wrote:

> Hi all,
>    I need to change the development enviroment for
>
>            IResourceStreamLocator locator =
>            new ResourceStreamLocator(new Path(new Folder("html")));
>          getResourceSettings().setResourceStreamLocator(locator);
>
> but, what I also need is that maven copy the resources form
>  src/main/resources to src/main/WEB-INF/html. This is needed because when
> maven creates the war file the resources should also be located in that
> directory.
>
> I've tried
>
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-resources-plugin</artifactId>
>   <version>2.4.1</version>
>   <executions>
>   <execution>
>         <id>copy-package-config</id>
>         <phase>package</phase>
>         <goals>
>         <goal>copy-resources</goal>
>         </goals>
>         <configuration>
>         <outputDirectory>${basedir}/html</outputDirectory>
>                                        <resources>
>                                      <resource>
>
>  <directory>${basedir}/src/main/resources</directory>
>
> <filtering>true</filtering>
>                                             </resource>
>                                        </resources>
>         </configuration>
>   </execution>
>   </executions>
>  </plugin>
>
> and I got
>
> [1] Inside the definition for plugin 'maven-resources-plugin' specify the
> following:
>
> <configuration>
>  ...
>  <resources>VALUE</resources>
> </configuration>.
>
>
> I don't know what else to do
>
> thanks in advance
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>