首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何删除依赖项中的无效版本

如何删除依赖项中的无效版本
EN

Stack Overflow用户
提问于 2013-01-14 18:05:48
回答 1查看 412关注 0票数 1

我正在使用maven编译项目。

下面是依赖关系的结果:树

代码语言:javascript
复制
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ tournament-system-web ---
[INFO] org.toursys:tournament-system-web:war:0.0.1-SNAPSHOT
[INFO] +- org.toursys:tournament-system-processor:jar:0.0.1-SNAPSHOT:compile
[INFO] |  +- com.itextpdf:itextpdf:jar:5.1.3:compile
[INFO] |  \- com.itextpdf.tool:xmlworker:jar:1.1.1:compile
[INFO] +- org.toursys:tournament-system-repository:jar:0.0.1-SNAPSHOT:compile
[INFO] |  +- org.sqlproc:sql-processor:jar:1.9.0:compile
[INFO] |  |  +- org.antlr:antlr:jar:3.4:compile
[INFO] |  |  |  \- org.antlr:ST4:jar:4.0.4:compile
[INFO] |  |  +- org.antlr:antlr-runtime:jar:3.4:compile
[INFO] |  |  |  +- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] |  |  |  \- antlr:antlr:jar:2.7.7:compile
[INFO] |  |  \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] |  \- org.sqlproc:sql-processor-spring:jar:1.9.0:compile
[INFO] |     \- org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile (version managed from 3.1.2.RELEASE)
[INFO] |        \- org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
[INFO] +- log4j:log4j:jar:1.2.15:compile
[INFO] +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO] |  +- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[INFO] |  +- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  \- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] |     +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] |     \- org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[INFO] +- javax.servlet:servlet-api:jar:2.4:compile
[INFO] +- org.apache.wicket:wicket-core:jar:1.5.8:compile
[INFO] |  +- org.apache.wicket:wicket-util:jar:1.5.8:compile
[INFO] |  \- org.apache.wicket:wicket-request:jar:1.5.8:compile
[INFO] +- org.apache.wicket:wicket-spring:jar:1.5.8:compile
[INFO] |  \- org.apache.wicket:wicket-ioc:jar:1.5.8:compile
[INFO] |     \- cglib:cglib:jar:2.2:compile
[INFO] |        \- asm:asm:jar:3.1:compile
[INFO] +- org.apache.wicket:wicket-datetime:jar:1.5.8:compile
[INFO] |  \- joda-time:joda-time:jar:2.0:compile
[INFO] +- org.apache.wicket:wicket-extensions:jar:1.5.8:compile
[INFO] +- org.wicketstuff:wicketstuff-minis:jar:1.5.8:compile
[INFO] |  \- org.apache.wicket:wicket:pom:1.5.8:compile
[INFO] +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO] +- cglib:cglib-nodep:jar:2.2:compile
[INFO] +- commons-dbcp:commons-dbcp:jar:1.2.2:runtime
[INFO] |  \- commons-pool:commons-pool:jar:1.3:runtime
[INFO] \- mysql:mysql-connector-java:jar:5.1.20:compile

问题是,当我查看生成的war时,有两个版本的wicket。1.5.5和1.5.8,我不知道为什么还有更老的版本。我没有依赖它。我如何删除它或找出为什么仍然有这个库?

EN

回答 1

Stack Overflow用户

发布于 2013-01-14 18:24:21

你应该去掉wicket-1.5.5,它是作为另一个包的依赖项出现的。here描述了依赖项排除。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14316370

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档