问题
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>
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(...)
.
I think it's a conflit in versions of lang3
how can i add an exclude for commons.lang3
?
回答1:
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>
See http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
来源:https://stackoverflow.com/questions/29143189/add-exclude-apache-commons-lang3-from-net-sourceforge-dynamicreports