You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by Jakob Frank <ja...@apache.org> on 2013/02/20 08:21:43 UTC

duplicate version/group-id in pom.xml

Hi all,

i just found that most pom.xml-s explicitly (re-)define the version
(and/or) group-id - which is the same as their parent's version /
group-id.

As this is a redundancy (and my IDE keeps complaining about it) i'd like
to remove the duplication and have the group-id and version inherited
[1].

CONS?

Best
Jakob

[1] <http://maven.apache.org/pom.html#Inheritance>



Re: duplicate version/group-id in pom.xml

Posted by Sebastian Schaffert <ss...@apache.org>.
Hi,

the version has been set automatically be the mvn release plugin. And it is
not strictly an error to have the version there, so I don't understand why
your IDE complains ;-) Actually, my IDE complains about the m2eclipse
plugin configuration, this plugin is broken. :)

If version and/or groupid can be safely removed, I am in favour of doing
so. Everything that simplifies the POM files is welcome :)

Greetings,

Sebastian


2013/2/20 Jakob Frank <ja...@apache.org>

> Hi all,
>
> i just found that most pom.xml-s explicitly (re-)define the version
> (and/or) group-id - which is the same as their parent's version /
> group-id.
>
> As this is a redundancy (and my IDE keeps complaining about it) i'd like
> to remove the duplication and have the group-id and version inherited
> [1].
>
> CONS?
>
> Best
> Jakob
>
> [1] <http://maven.apache.org/pom.html#Inheritance>
>
>
>