Re: Re: Re: m2: How do I expand the clean-goal?
That works, Thanks Rainer "Henrik Mejlgaard" <[EMAIL PROTECTED]> schrieb am 09.05.2006 17:14:50: > Syntax is something like this (from top of my head): > > org.apache.maven.plugins > maven-clean-plugin > > > > ${basedir}/src/main/java > > **/generated/** > **/generated > > > > > > /Henrik > On 5/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > 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: > > > > > > > > > > > > > > > > > > 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] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: m2: How do I expand the clean-goal?
Syntax is something like this (from top of my head): org.apache.maven.plugins maven-clean-plugin ${basedir}/src/main/java **/generated/** **/generated /Henrik On 5/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 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: 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]
Antwort: Re: m2: How do I expand the clean-goal?
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: 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]
Re: m2: How do I expand the clean-goal?
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]