Hi Timothy,
quite frankly, I'm a bit reluctant to add directory deletion feature
due to the following reasons.
These packages should not be generated in the first place. They are
still generated even if you have referenced classes only. I consider
this to be a bug (TODO: report it). Any solution would be either a
bugfix (in XJC) or a workaround (somewhere else). Since the workaround
can be done with other plugins like antrun or maven-clean-plugin I
don't think it is a good idea to implement directory deletion once
again.
Bye,
/lexi
On Mon, Aug 12, 2013 at 7:38 PM, <timothy.astle_at_gmail.com> wrote:
> I started using the org.jvnet.jaxb2.maven2 maven-jaxb2-plugin in a
> project.
>
> When compiling schemas (before packaging), we need to delete some
> generated source that we don't want included in the package. In the
> OGC Schemas, I've seen an Ant Task used to do this. Ant Tasks aren't
> used in our maven projects, because the Maven Ant Task Plugin was
> designed more for projects transitioning to Maven.
>
> Do you know if there is a feature to delete generated sources (probably
> inferred from the episodes list) or if it would make sense to add this
> functionality?