更新时间:2023-01-14 18:52:16
这让我对 android-maven-plugin
和其他包含 commons-logging 的库感到非常痛苦代码>.它阻止了我的构建.更糟糕的是,一些库被传递地包含在内,所以简单地使用
是行不通的.借助另一篇文章的一点提示,我决定可以通过以下方式完全排除违规库:
This was causing me a lot of pain with the android-maven-plugin
and other libraries that included commons-logging
. It was blocking my build. What made it worse is that some libraries were included transitively, so simply using <exclude>
would not work. With a little hint from another post, I determined I could keep out the offending library altogether with something like this:
<!-- prevent commons-logging from being included by the Google HTTP client
dependencies -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>