【发布时间】:2013-03-27 18:54:28
【问题描述】:
我有一个父项目,它与范围 test
有依赖关系 <dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>2.31.0</version>
<scope>test</scope>
</dependency>
现在我“mvn install”了父项目,当我将此父项目作为依赖项包含在我的子项目中时
<dependency>
<groupId>group</groupId>
<artifactId>parentproject</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
selenium-firefox-driver 不可用。 compile 范围的依赖项可用。
我怎样才能使它可用?我不会在父项目和子项目中更改范围。因为我在运行时需要一些父类的类
【问题讨论】:
标签: unit-testing maven scope dependencies