maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zebahmad <>
Subject maven-clean-plugin to clean up dependencies in assembly project
Date Wed, 28 Mar 2012 14:35:37 GMT
I have a maven project with a parent pom that builds the child modules. One
of the child modules is an assembly project that simply assembles other
child modules


Here, ParentA only contains a pom that simply builds ModuleA,
AssembledModuleB & ModuleC. ModuleB1 & ModuleB2 are separate projects on
which AssembledModuleB depends. 

Firstly, after the build, I need to clean up the jars ModuleB1.jar and
ModuleB2.jar and retain only the composite jar AssembledModuleB.jar. I tried
using the maven-clean-plugin, but no matter what combination I try, these
don't get deleted :( 


I have tried various options such as




But none of these seem to work :( The aim is to delete the built jars from
the target folders of ModuleB1 and ModuleB2

Secondly, i need to ensure that the plugin is called *after* the build is

Thanks in advance,


View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message