Missing bundle installation in Wisdom with transitive dependency and scope "test" #263

Closed
dadg opened this Issue Jul 8, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@dadg

dadg commented Jul 8, 2014

Hi,

Sometimes, bundles aren't installed in Wisdom.
It took me a while to understand why, but I finally understand what's happen.
If a transitive dependency comes from 2 dependency, one with the scope test and one with the compile scope, the transitive dependendy is not added to the bundle list, and I think it must be.
Te be able to reproduce, the test scope dependency must come first in the dependency list.
I've use Wisdom 0.6.1

Here are some teps to reproduce, because I'm not sure if my explainations are clear

  • Step 1:

Create 3 wisdom projects with the command mvn org.wisdom-framework:wisdom-maven-plugin:0.6.1:create ... named project1, project2, project3

  • Step 2:

Add in project1 the mongo driver dependency:

<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongo-java-driver</artifactId>
    <version>2.12.2</version>
</dependency>
  • Step 3:

Same in project2 :

<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongo-java-driver</artifactId>
    <version>2.12.2</version>
</dependency>
  • Step 4:

Add the dependency project1 with scope test and project2 with scope compile in project3 :

<dependency>
    <groupId>dep</groupId>
    <artifactId>project1</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>dep</groupId>
    <artifactId>project2</artifactId>
    <version>1.0.0-SNAPSHOT</version>
</dependency>

If you start wisdom mvn wisdom:run the mongo driver bundle dependency is not installed.

Note that if you reverse the list of dependency in the project3 the mongo driver dependency is well install in the Wisdom runtime :

<dependency>
    <groupId>dep</groupId>
    <artifactId>project2</artifactId>
    <version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
    <groupId>dep</groupId>
    <artifactId>project1</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <scope>test</scope>
</dependency>

Thanks for your help
WBR // David

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Jul 9, 2014

Member

Definitely in a dependency tree pruning. Gonna look at it.

Member

cescoffier commented Jul 9, 2014

Definitely in a dependency tree pruning. Gonna look at it.

@cescoffier cescoffier added the bug label Jul 9, 2014

@cescoffier cescoffier added this to the 0.7 milestone Jul 9, 2014

@cescoffier cescoffier closed this in d1bc2dc Jul 9, 2014

@cescoffier cescoffier modified the milestones: 0.6.2, 0.7 Jul 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment