You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by radomirz <ra...@gmail.com> on 2010/01/29 09:32:44 UTC
Maven execution element and dependencies
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven execution element and dependencies
Posted by Anders Hammar <an...@hammar.net>.
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 <ra...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>