The obvious question is why you don't make it two projects? The problem you're running into is because there is just one pom. Even if you solve your compilation problem, you're going to cause problems for anyone consuming the artifact (as the pom will list the wrong deps).
/Anders On Fri, Jan 29, 2010 at 09:32, radomirz <[email protected]> wrote: > > Hi List, > > I would like to generate two artifacts within one maven project (one with a > classifier). I can do this by executing the compiler plugin (flexmojos in > my > case) twice, once with the classifier. The only problem is that the > compilations should have different scopes on some dependencies. Is it > possible to specify dependencies for plugin execution elements? If so, how? > > For the time being, I am using profiles as a workaround. However, this > requires that I execute maven twice in sequence in order to create a pair > of > artifacts. I have several projects which require double compilation, and > one > which depends on all of these and creates a deployment package (including > all artifacts) This results in double deployment of the main packaging > project to our local repository, which is somewhat inconvenient for our > continuous integration environment. > > Thanks, > Rade > -- > View this message in context: > http://old.nabble.com/Maven-execution-element-and-dependencies-tp27367114p27367114.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
