Maybe...Depends on what you mean by "a module of that parent."  If you 
mean

<modules>
  <module>...</module>
  <module>...</module>
</modules>

then I think not.  I think it means that every POM that wants to use the 
same common stuff would include something like:

        <parent>
                <groupId>my.groupId</groupId>
                <artifactId>build.master</artifactId>
                <version>1.0.0.0-SNAPSHOT</version>
                <relativePath>../build.master</relativePath>
        </parent>

Chris




From:   Dean Schulze <[email protected]>
To:     Maven Users List <[email protected]>
Date:   01/13/2017 01:14 PM
Subject:        Re: Is there a way to make mvn default to Java 8?



That means making every new project a module of that parent.  Ugh.

On Fri, Jan 13, 2017 at 9:54 AM, Bernd Eckenfels <[email protected]>
wrote:

> Sorry when this answer is an over-simplification, but you can just
> configure it in a common parent. This is a quite typical case why you 
want
> shared company/team/product/buildenv parents.
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
>
>
>
>
> On Fri, Jan 13, 2017 at 5:51 PM +0100, "Dean Schulze" <
> [email protected]> wrote:
>
>
>
>
>
>
>
>
>
>
> I would like to avoid having to add
>
>
> 1.8
> 1.8
>
>
> to every pom.xml.  Is there a global setting I can set in mvn to make 
Java
> 8 the default so I don't have to add this to every pom.xml?
>
>
>
>
>
>




Reply via email to