maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@Elsag-Solutions.com>
Subject RE: [M2] maven-clean-plugin and multi-module build
Date Mon, 28 Aug 2006 15:02:40 GMT
ArneD wrote on Monday, August 28, 2006 3:57 PM:

> I have a multi-module build. In one of the sub-modules I use the
> maven-clean-plugin in the pom.xml as follows:
> 
>       <plugin>
>         <artifactId>maven-clean-plugin</artifactId>        
>           <configuration> <filesets>
>             <fileset>
>               <directory>WebContent/WEB-INF/lib</directory>          
>                 <includes> <include>*</include>
>               </includes>
>             </fileset>
>           </filesets>
>         </configuration>
>       </plugin>
> 
> The WebContent/WEB-INF/lib folder gets cleaned, when I call
> mvn clean on the
> sub-module. But it does not get cleaned when I call mvn clean
> on the main
> module.
> 
> Should I file a JIRA issue? Or am I making a mistake? Is there any
> workaround available? 

Prepend "${basedir}/" to the directory. Maven does not change the working directory for (sub-)modules.

- Jörg

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


Mime
View raw message