java - Maven dependency management issue -
i have multi pom project, parent pom imports external module such. external module uses saxon classes, import such:
<dependency> <groupid>org.test</groupid> <artifactid>test-framework</artifactid> <version>1.0-snapshot</version> </dependency>
in child pom, import such:
<dependency> <groupid>org.test</groupid> <artifactid>test-framework</artifactid> <scope>provided</scope> </dependency>
i under impression if imported such in parent pom, transitive dependencies of external module imported. when i'm building project saxon classes missing , way can them appear explicitly pull them down in pom. doesn't defeat point of transitive dependency resolution. going have explicitly pull down transitive dependencies in project imports external module?
have tried changing scope of dependency?
<dependency> <groupid>org.test</groupid> <artifactid>test-framework</artifactid> <scope>compile</scope> </dependency>
this should job.
read on dependency scopes here:
Comments
Post a Comment