Agree. Everything in the target folder should be considered temporal and
wiped on a clean build. 

-----Original Message-----
From: Johan Lindquist [mailto:jo...@kawoo.co.uk] 
Sent: Monday, April 06, 2009 3:48 AM
To: Maven Users List
Subject: Re: Maven Clean Plugin exclude target folder

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Not sure what you are generating the sources from, but for generated
SOAP client code, we usually build this as a separate module (jar) and
have our code depend on it - saves us generating code all the time.

For other generated code (from the source tree for example) we have
taken the approach that a clean command should remove them *all* to
ensure consistency in the final artifact.  If some code lived through a
clean cycle, we argued that it could potentially cause unwanted
side-effects.

Just my two cents,

Cheers,

Johan

Bogdan Minciu wrote:
> Hello,
> 
> As I read from
>
http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_addit
ional_files.html,
> "The Maven Clean Plugin will delete the target directory by default."
> 
> But I was wondering, is there any possibility to exclude some folders
> under the /target folder from the deleted directories? For example I
> would like to delete anything under /target besides the /target/src
> folder. I tried using the <excludes> with no success. I have some
useful
> .java files in there. I know this isn't the best architecture, but I
am
> using some code generators that could not be configured otherwise.
> 
> 
> Many thanks in advance,
> 

- --
you too?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ2bPMpHYnED7evioRAqH7AJ92CT5bNRLLtSsV9UBTA+v3QadJxgCeOeNE
BS1twPO7tXYZIVQlQkU8xr4=
=B+KC
-----END PGP SIGNATURE-----

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


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

Reply via email to