Can't you just pass in a -D  argument and execute the argument that's passed
in?

e.g.
mvn install -DantTarget=targetToCall

then in the antrun execution:
<ant
  antfile="src/main/ant-builds/buildJnlps.xml"
  target="${antTarget}" />


On 9/11/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> I would just move those targets out to a build.xml file so you can
> call them directly with Ant. Then set Maven up so it calls the targets
> in the build.xml file rather than embedding the Ant stuff in your pom.
>
> Wayne
>
> On 9/11/07, Ritz, Martin <[EMAIL PROTECTED]> wrote:
> >
> > I have already two profiles...
> > I dont want to blow up my pom too much!
> > Is there no other easier way to call specific targets?
> >
> > Martin
> >
> >
> > > Profiles will solve your problem.
> > >
> > > Wayne
> > >
> > > On 9/11/07, Ritz, Martin <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I have some ant targets integrated in my pom.xml.
> > > > I declared an ant build script which is therefor called from maven.
> > > > Now I dont want to perform every ant target on every build.
> > > > Is there a way to call only specific ant-targets from the
> > > command line (maybe by calling the target or the id)?
> > > >
> > > > ---
> > > > kind regards
> > > > Martin Ritz
> > > >
> > > > > BTC AG - Unit Software Engineering
> > > > mailto:[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]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to