You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jagat Singh <ja...@gmail.com> on 2015/10/12 09:47:04 UTC
Avoiding code duplication
Hi,
We have set of projects which have few common dependencies and
configurations.
How to best avoid code duplications , I have seen maven parent and maven
jcabi parent.
Are there other useful plugins to handle this.
Thanks
Re: Avoiding code duplication
Posted by Jagat Singh <ja...@gmail.com>.
Hello,
Thanks for link
1)
My projects are not related to each other in form of parent child relation.
So can I conclude I do not need parent pom.
And I can do all via bom.
2)
Can bom approach be used for plugins also.
Means specific all plugin versions in bom pom and in the specific projects
where I am using bom import I can write exact plugin configurations.
For example declare that I am using 1.2 Maven assembly plugin. And In
project I use exact configuration of the Maven assembly for the project.
Thanks in advance
On 13 Oct 2015 7:24 pm, "Adrien Rivard" <ad...@gmail.com> wrote:
> Hi,
>
> A combination of parents pom and BOM is generally enough :
>
> Have a look at :
>
> https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
>
>
>
>
> On Mon, Oct 12, 2015 at 10:48 PM, Jagat Singh <ja...@gmail.com>
> wrote:
>
> > Hi,
> >
> > What are the options then ?
> >
> >
> > On Tue, Oct 13, 2015 at 3:46 AM, Glenn Brown <gh...@gmail.com>
> > wrote:
> >
> > > The jcabi parent appears to be a sample maven parent pom with jcabi
> > > dependencies included
> > >
> > > On Mon, Oct 12, 2015, 12:47 AM Jagat Singh <ja...@gmail.com>
> wrote:
> > >
> > > > Hi,
> > > >
> > > > We have set of projects which have few common dependencies and
> > > > configurations.
> > > >
> > > > How to best avoid code duplications , I have seen maven parent and
> > maven
> > > > jcabi parent.
> > > >
> > > > Are there other useful plugins to handle this.
> > > >
> > > > Thanks
> > > >
> > >
> >
>
>
>
> --
> Adrien Rivard
>
Re: Avoiding code duplication
Posted by Adrien Rivard <ad...@gmail.com>.
Hi,
A combination of parents pom and BOM is generally enough :
Have a look at :
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
On Mon, Oct 12, 2015 at 10:48 PM, Jagat Singh <ja...@gmail.com> wrote:
> Hi,
>
> What are the options then ?
>
>
> On Tue, Oct 13, 2015 at 3:46 AM, Glenn Brown <gh...@gmail.com>
> wrote:
>
> > The jcabi parent appears to be a sample maven parent pom with jcabi
> > dependencies included
> >
> > On Mon, Oct 12, 2015, 12:47 AM Jagat Singh <ja...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > We have set of projects which have few common dependencies and
> > > configurations.
> > >
> > > How to best avoid code duplications , I have seen maven parent and
> maven
> > > jcabi parent.
> > >
> > > Are there other useful plugins to handle this.
> > >
> > > Thanks
> > >
> >
>
--
Adrien Rivard
Re: Avoiding code duplication
Posted by Jagat Singh <ja...@gmail.com>.
Hi,
What are the options then ?
On Tue, Oct 13, 2015 at 3:46 AM, Glenn Brown <gh...@gmail.com> wrote:
> The jcabi parent appears to be a sample maven parent pom with jcabi
> dependencies included
>
> On Mon, Oct 12, 2015, 12:47 AM Jagat Singh <ja...@gmail.com> wrote:
>
> > Hi,
> >
> > We have set of projects which have few common dependencies and
> > configurations.
> >
> > How to best avoid code duplications , I have seen maven parent and maven
> > jcabi parent.
> >
> > Are there other useful plugins to handle this.
> >
> > Thanks
> >
>
Re: Avoiding code duplication
Posted by Glenn Brown <gh...@gmail.com>.
The jcabi parent appears to be a sample maven parent pom with jcabi
dependencies included
On Mon, Oct 12, 2015, 12:47 AM Jagat Singh <ja...@gmail.com> wrote:
> Hi,
>
> We have set of projects which have few common dependencies and
> configurations.
>
> How to best avoid code duplications , I have seen maven parent and maven
> jcabi parent.
>
> Are there other useful plugins to handle this.
>
> Thanks
>