3

I'm building a Flex application with Maven and the Flex Mojos plugin. I now want to compile an alternative version of the application with some extra libraries to enable automated functional testing. For this I need to change 2 things in the pom:

  • extra dependencies
  • extra configuration of the Flex Mojos plugin in the build section

I created a profile in the pom targetted at building the alternative version and added the extra dependencies. I'm wondering however how I can specify the extra configuration of the Flex Mojos plugin in the build section.

Should I just redefine (copy and modify) the complete plugin configuration from the build section into my profile, or is there another way to do this?

Christophe Herreman
  • 15,895
  • 9
  • 58
  • 86
  • I have done this by copying the complete plugin configuration, as you have mentioned, i don't think you can configure by profile :( – YuppieNetworking Jan 15 '10 at 09:56

1 Answers1

1

Yes, copy the plugin config into your profile. Also define the new dependencies there. Common configuration values between the two plugin configs for the same plugin may be delegated to common properties you define in the pom <properties> element to allow setting the values in a common place.

Peter Lynch
  • 525
  • 5
  • 9