maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Rivard <adrien.riv...@gmail.com>
Subject Re: Scope import in parent pom
Date Tue, 24 Nov 2015 09:05:23 GMT
Hi,

It should work.

Is it the same io.soabase that is in maven central? In that case I cannot
find references to dropwizard-testing in thepom.(did'nt check all versions
though)
Are you sure it is in this pom ?




On Tue, Nov 24, 2015 at 2:46 AM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> I added a scope:import dep to the dependencies management section of a
> parent pom for a reactor build. Child modules, it seems, don’t get the
> benefit of this. Is that right? It seems I have to put the import in every
> child module’s pom.
>
> parent pom has:
>
> <dependencyManagement>
>     <dependencies>
>         <dependency>
>             <groupId>io.soabase</groupId>
>             <artifactId>soabase</artifactId>
>             <version>${soabase-version}</version>
>             <type>pom</type>
>             <scope>import</scope>
>         </dependency>
>     </dependencies>
> </dependencyManagement>
>
> Note, the pom referenced (soabase) has a dependency management entry for
> dropwizard-testing. If I add this to a child module it does not work:
>
> <dependency>
>     <groupId>io.dropwizard</groupId>
>     <artifactId>dropwizard-testing</artifactId>
>     <scope>test</scope>
> </dependency>
>
> However, if I move the import from the parent pom to the child pom it
> works.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Adrien Rivard

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