Just as an example, suppose I only need hamcrest in junit:
<dependency org="junit" name="junit" rev="4.7">
<include name="hamcrest*"/>
</dependency>
However it seems ant still pulls everything in junit. Maybe I misunderstood something?
Hamcrest is not longer a junit dependency. Take a look at the POM file for the module, the dependencies section is empty:
Reportedly it has been incorporated into the junit jar (See MAVENUPLOAD-1651 )
This explains why the following dependency will only retrieve a single jar:
<dependency org="junit" name="junit" rev="4.7"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.