On Dec 17, 2008, at 12:18 PM, Martin Höller wrote:

Ok. My approach would then be to create one profile which is only executed before releasing or when running in the contiuous-integration server. This
profile would configure the antrun plugin to execute install4j, run
integration tests, and do some other time-consuming work.

Yes, that's what I've been doing, but you said I was doing it wrong. I just wanted to make sure that profiles were the only way to do it in Maven, or if there was some other technique I didn't know about.

You say it: it runs all of the _configurations_, but it's still only _one_
goal that runs. In this case the 'run' goal of the antrun plugin. The
antrun plugin is kind of special as it runs ant task within maven, which
doesn't have the concept of tasks.

The exec plugin is like that too, and I find both to be very integral to the development process. Perhaps these plugins need a new feature that allows the user to specify which configuration is used. Something like:

  mvn exec:java:config1
  mvn exec:java:config2
  mvn antrun:run:config1
  mvn antrun:run:config2

Trevor


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to