从net.sourceforge.dynamicreports添加排除apache.commons.lang3 [英] Add exclude apache.commons.lang3 from net.sourceforge.dynamicreports

查看:114
本文介绍了从net.sourceforge.dynamicreports添加排除apache.commons.lang3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的项目中添加一个依赖项以使用动态报告,我发现了这一点:

I want to add a dependency in my project to use dynamic report, i found this:

<dependency>
    <groupId>net.sourceforge.dynamicreports</groupId>
    <artifactId>dynamicreports-core</artifactId>
    <version>4.0.0</version>
</dependency>

但是当我将其添加到我的pom.xml时,出现了此错误:StringUtils.isNoneBlank(...)中的错误The method isNoneBlank(String) is undefined for the type StringUtils.

but when i add it to my pom.xml, i got this error :The method isNoneBlank(String) is undefined for the type StringUtils error in StringUtils.isNoneBlank(...).

我认为这是lang3版本的限制

I think it's a conflit in versions of lang3

如何为commons.lang3添加排除对象?

推荐答案

这就是定义排除项的方式

That's how you can define an exclusion

<dependency>
    <groupId>net.sourceforge.dynamicreports</groupId>
    <artifactId>dynamicreports-core</artifactId>
    <version>4.0.0</version>
    <exclusions>
        <exclusion>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons.lang3</artifactId>
        </exclusion>
        <!-- other exclusions ... -->
    </exclusions>
</dependency>

请参见 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

这篇关于从net.sourceforge.dynamicreports添加排除apache.commons.lang3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆