You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Mistroni <mm...@gmail.com> on 2006/10/13 12:53:18 UTC

Maven War Plugin problem / need help

hi all,
  i am using maven2 war plugin to package my war project (which is part of a
multi-project).
Unfortunately i inherited the directory structure of the project (which was
done in RAD) which is
following

JavaSource
   |____com.....
   |____resources
WebContent
  |_____ WEN-INF
  ....other jsps

the problem is that i cannot make it to copy the resources present in the
'resources'  directory into
 the war using maven war plugin
here's my pom (only relevant part)

<plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.0.2</version>
          <configuration>
             <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
             <webResources>
                <resource>
                   <directory>${basedir}/JavaSource/resources</directory>
                   <includes>
                       <include>**/*.*</include>
                   </includes>
                </resource>
            </webResources>
         </configuration>
 </plugin>


could anyone help?

thanks and regards
 Marco

RE: Maven War Plugin problem / need help

Posted by Mark Struberg <st...@yahoo.de>.
Hi Marco!

Shouldn't webresources point to the webapp folder?

<webResources>
 <resource>
  <directory>${basedir}/WebContent</directory>
 </resource>
</webResources>

best regards,
strub



--- Marco Mistroni <mm...@gmail.com> schrieb:

> hi all,
>   i am using maven2 war plugin to package my war
> project (which is part of a
> multi-project).
> Unfortunately i inherited the directory structure of
> the project (which was
> done in RAD) which is
> following
> 
> JavaSource
>    |____com.....
>    |____resources
> WebContent
>   |_____ WEN-INF
>   ....other jsps
> 
> the problem is that i cannot make it to copy the
> resources present in the
> 'resources'  directory into
>  the war using maven war plugin
> here's my pom (only relevant part)
> 
> <plugin>
>          
> <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-war-plugin</artifactId>
>           <version>2.0.2</version>
>           <configuration>
>             
>
<warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
>              <webResources>
>                 <resource>
>                   
>
<directory>${basedir}/JavaSource/resources</directory>
>                    <includes>
>                        <include>**/*.*</include>
>                    </includes>
>                 </resource>
>             </webResources>
>          </configuration>
>  </plugin>
> 
> 
> could anyone help?
> 
> thanks and regards
>  Marco
> 



		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org