简体   繁体   English

如何在不使用Maven的情况下排除Java库?

[英]How to exclude java libraries without using Maven?

I am developing a RESTful web service with Jersey and Spring. 我正在使用Jersey和Spring开发RESTful Web服务。 I am not allowed to use Maven in my projects and I need to exclude several libraries from jersey-spring3.jar (core, beans, web) in order to utilize those that come with Spring 4, but I don't know how to achieve it without Maven. 我不允许在我的项目中使用Maven,为了利用Spring 4附带的库,我需要从jersey-spring3.jar(核心,beans,Web)中排除几个库,但是我不知道如何实现它没有Maven。

Just remove the dependencies from your classpath. 只需从类路径中删除依赖项即可。 jersey-spring3.jar doesn't contain any other dependencies, it contains only the classes for integration of Jersey and Spring, but no other Spring related classes. jersey-spring3.jar不包含任何其他依赖项,它仅包含用于Jersey和Spring集成的类,而没有其他与Spring相关的类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM