Good Idea, but how?

I found only three parameters in the plugin-documentation, each can handle
only a single directory and are read only!
mvn clean
...
[INFO] Error configuring: org.apache.maven.plugins:maven-clean-plugin.
Reason: E
RROR: Cannot override read-only parameter: directory in goal: clean:clean
...

But I need somethink like the folloing Ant-Task-Part:

<delete verbose="false" includeEmptyDirs="true">
      <fileset dir="${basedir}/src/main/java" defaultexcludes="false">
            <include name="**/generated/**"/>
            <include name="**/generated"/>
      </fileset>
</delete>

Can you tell me the configure-syntax, to do that?

thanks
Rainer


"Henrik Mejlgaard" <[EMAIL PROTECTED]> schrieb am 09.05.2006 16:39:18:

> Use the maven-clean-plugin and configure it to delete the generated
source
> folders you want.

> /Henrik

> On 5/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > we have bound a source-generator on the generate-sources-phase with the
> > maven-antrun-plugin.
> > I wan't to clean the generated sources with the clean-goal, but clean
is
> > not a Build-Lifeycle-Phase, so I can not do it at the same way.
> > In Maven 1 I had the pre-goal. How do I resolve my problem in maven 2
(I
> > have an Ant-Srcipt ready)?
> >
> > Thanks
> > Rainer
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to