Hello,
I have tried maven-assembly-plugin, but it seems that the plugin cannot help
me.
maven-assembly-plugin would create a new product(specified by format
parameter).

How can I achieve the goal, however the requirement is "strang"?
src
  |--myresource
      |--resource
          |--resource.txt
  webapp
      |--WEB-INF
          |--lib
          |--classes
          |--web.xml

The following is my want,
WAR
  |--WEB-INF
      |--lib
      |--classes
      |--resource
            |--resource.txt
      |--web.xml

Thanks!

a cup of Java, cheers!
Sha Jiang


jiangshachina wrote:
> 
> Hello,
> I want to add some resource files into sub-directory of WAR/WEB-INF,
> I'm using following scripts,
> <build>
>     <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-war-plugin</artifactId>
>             <version>2.0.1</version>
>             <configuration>
>                 <webappDirectory>src/webapp</webappDirectory>
>               <webResources>
>                   <resource>
>                       <directory>src/config/app</directory>
>                         <targetPath>WEB-INF/app</targetPath>
>                     </resource>
>                  </webResources>
>              </configuration>
>         </plugin>
>     </plugins>
> </build>
> But the plugin doesn't comply with my mind.
> 
> a cup of Java, cheers!
> Sha Jiang
> 

-- 
View this message in context: 
http://www.nabble.com/Why-don%27t-Overriding-the-default-destination-directory-of-a-web-resource--tf2586714s177.html#a7235853
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to