Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] m2e and maven-clean-plugin ?

Hello,

I added the maven-clean-plugin setup below in my project in order to delete some generated resource folders at each build.

I would like that this could happen when I use m2e's "Update Project...", but this remotion is not happen inside eclipse:

                     <plugin>
                            <artifactId>maven-clean-plugin</artifactId>
                            <configuration>
                                <filesets>
                                    <fileset>
                                        <directory>${basedir}</directory>
                                        <includes>
                                            <include>*.jar</include>
                                            <include>CONFIG/</include>
                                        </includes>
                                        <followSymlinks>false</followSymlinks>
                                    </fileset>
                                </filesets>
                            </configuration>
                        </plugin>

I could note that lifecycle clean:clean is ignored by m2e by default. So, I enabled its execution using a lifecycle-mapping.  I can see in lifecycle properties view now that it is not ignored anymore, but  I can't see any resource being deleted.

what is the reason of clean:clean is being ignored by default?

and is there any way to use maven-clean-plugin with m2e ?

many thanks,

Cristiano

Back to the top