...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>clean</id>
<phase>clean</phase>
<configuration>
<tasks unless="maven.ant.skip">
<ant antfile="${basedir}/../webapp/build.xml"
dir="${basedir}/../webapp" inheritAll="false" inheritRefs="false">
<target name="clean"/>
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<executions>
<plugin>
<plugins>
<build>
...
This is from the POM of the module that runs the ant targets.
Really appreciate your interest.
Emmanuel Venisse-2 wrote:
>
> Can we see your pom?
>
> On Mon, Aug 4, 2008 at 4:45 PM, Daniel Reuterwall <
> [EMAIL PROTECTED]> wrote:
>
>>
>> 1- Yes, I use 'unless' to skip the ant task in continuum
>> 2- I've tried to put '-Dmaven.test.skip=true' in the argument field. But
>> it
>> still runs my ant targets.
>>
>>
>> Emmanuel Venisse-2 wrote:
>> >
>> > 1- do you use an ANT property in your plugin definition like the
>> 'unless'
>> > one in the sample?
>> > 2- I never used --define, I prefer to use something like
>> > '-Dmaven.test.skip=true'
>> >
>> > Emmanuel
>> >
>> > On Mon, Aug 4, 2008 at 4:19 PM, Daniel Reuterwall <
>> > [EMAIL PROTECTED]> wrote:
>> >
>> >>
>> >> I've tried almost every alternative I could come up with. Except for
>> the
>> >> right one I guess...
>> >> I tried to ad it to the argument field like this: --define
>> >> maven.ant.skip.
>> >> The build runs but my argument is not passed to maven.
>> >>
>> >> What I'm trying to do is to skip some ant tasks similar to this the
>> >> example:
>> >>
>> >>
>> http://maven.apache.org/plugins/maven-antrun-plugin/examples/tasksAttributes.html
>> >>
>> >>
>> http://maven.apache.org/plugins/maven-antrun-plugin/examples/tasksAttributes.html
>> >>
>> >>
>> >> Jeffery, Mark wrote:
>> >> >
>> >> > Are you including the -D itself ?
>> >> >
>> >> > -----Original Message-----
>> >> > From: Daniel Reuterwall [mailto:[EMAIL PROTECTED]
>> >> > Sent: 31 July 2008 09:44
>> >> > To: [email protected]
>> >> > Subject: maven2 goal option in build definition
>> >> >
>> >> > How can I add a maven2 -D option in my continuum build definition?
>> >> > I've tried the argument field and adding it in the goal field but
>> >> > neither works.
>> >> >
>> >> > Thanks for any help or hints.
>> >> >
>> >> > --
>> >> > Daniel Reuterwall
>> >> > To read FirstRand Bank's Disclaimer for this email click on the
>> >> following
>> >> > address or copy into your Internet browser:
>> >> > https://www.fnb.co.za/disclaimer.html
>> >> >
>> >> > If you are unable to access the Disclaimer, send a blank e-mail to
>> >> > [EMAIL PROTECTED] and we will send you a copy of the
>> >> > Disclaimer.
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/maven2-goal-option-in-build-definition-tp18749577p18812189.html
>> >> Sent from the Continuum - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/maven2-goal-option-in-build-definition-tp18749577p18812693.html
>> Sent from the Continuum - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/maven2-goal-option-in-build-definition-tp18749577p18813243.html
Sent from the Continuum - Users mailing list archive at Nabble.com.