You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jordan Zimmerman <jo...@jordanzimmerman.com> on 2015/11/24 02:46:29 UTC
Scope import in parent pom
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
Re: Scope import in parent pom
Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
I got it working now. I think a bad snapshot got into my local repo.
-Jordan
> On Nov 24, 2015, at 4:05 AM, Adrien Rivard <ad...@gmail.com> wrote:
>
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Scope import in parent pom
Posted by Adrien Rivard <ad...@gmail.com>.
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