I looked at profiles in maven to select different sets of dependencies. This is great if you want to build, to say that the debug build is different from the release build. My problem is that I want to do something more fair. For my application (the Java mobile application, where J2ME is just one goal among many), there can be a large number of possible combinations of variations in the assembly.
Using some compiled command line syntax to illustrate what I would like to see, I would suggest that I type in something like
mvn -Pmidp,debug,local-resources
What Maven does in this case is to build three different assemblies. I want these three (or more or less) switches to affect only one assembly. This way I get a MIDP debug build with "local resources" (whatever that means to me - I'm sure you can provide better examples).
The only way I can think about this is to have many, many profiles that become quite problematic. In my example, I would have
-Pmidp-debug-localresources
-Pmidp-release-localresources
-Pmidp-debug-remoteresources
-Pmidp-release-remoteresources
...
Each with its own frustrating similar set of dependencies and a build tag.
I'm not sure that I have explained my problem well enough, but I can rewrite the question to clarify it if comments remain.
UPDATE:
The question is really invalid, since I made a false assumption about how maven works.
-Pmidp,debug,local-resources
3 . 3 , , .