maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: avoiding kludge when factoring common build steps into parent pom
Date Fri, 07 May 2010 20:50:27 GMT


On 5/7/2010 2:52 PM, Wayne Fay wrote:
>> The problem I'm having is that the factored-out build steps run when I
>> do "mvn install" on the parent-pom to get it into my local repo.  These
>> steps don't work and throw errors, when run here.
>>     
> Put the common stuff in depMgmt in the parent, and only declare the
> plugins in the build section where you want to use them (not parent).
> They will inherit their parameters etc from depMgmt in the parent.
>   

The common stuff is build plugin things, not dependencies.  I don't
think you can put those into depMgmt.

I could put them into pluginManagement, but then all of the projects
would have to "call-out" all of the executions of the various things,
which was one of the things I was trying to factor out.

Did I misunderstand your suggestion?

-Marshall
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message