我正在使用Maven来构建我的项目。提供的许多依赖项和运行时范围。构建大小很大,我想删除不需要的依赖项。那么有什么方法可以检查哪些依赖项是不需要的。
答案 0 :(得分:0)
The best way to minimize dependencies to the ones you really need is to not embed that dependencies. If you simply use the maven-bundle-plugin on your code it will create Import-Package statements for the code you really need. This might even give you a good hint on what dependencies you might be able to exclude for embedding.
In general in OSGi the goal should be to not have that many dependencies in the first place. If you use libraries with extensive dependencies then your should question the quality of these.