maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cemo <cemalettin....@gmail.com>
Subject Re: How can I scan arbitrary pom.xml files for conformance to a parent pom's configuration?
Date Wed, 16 Oct 2013 19:58:42 GMT
On 16 October 2013 21:28, Andrew Pennebaker <apennebaker@42six.com> wrote:

> My high level goal is to tell a continuous integration server to report
> projects that don't conform to the configuration specified by a parent pom.
> I'd like a report for projects that override the parent configuration, or
> neglecting to reference the parent pom correctly.
>
> Is there some kind of Maven pom.xml linter that can do this? grep'ing for
> "parent" is a start, but it wouldn't check that the snippet was written
> correctly.
>

How about writing a custom enforcer for enforce plugin [1] ?

[1]: http://maven.apache.org/enforcer/maven-enforcer-plugin/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message