maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Pennebaker <apenneba...@42six.com>
Subject Re: How can I scan arbitrary pom.xml files for conformance to a parent pom's configuration?
Date Thu, 17 Oct 2013 13:36:57 GMT
Thanks, Cemo! That looks like exactly what I'm after!


On Wed, Oct 16, 2013 at 3:58 PM, Cemo <cemalettin.koc@gmail.com> wrote:

> 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/
>



-- 
Cheers,

Andrew Pennebaker
apennebaker@42six.com

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