Build maven project via maven-thrift-plugin, the pom as below. The java class generated by thrift has hashcode method, which is using org.apache.commons.lang3.builder.HashCodeBuilder.
But when I generate java code by thrift command in terminal, the hashcode method will not be using HashCodeBuilder.
Using HashCodeBuilder need to add a common-lang3 dependency, and the package jar will be different with the others.
Build maven project via maven-thrift-plugin, the pom as below. The java class generated by thrift has
hashcode
method, which is using org.apache.commons.lang3.builder.HashCodeBuilder. But when I generate java code by thrift command in terminal, thehashcode
method will not be usingHashCodeBuilder
.Using
HashCodeBuilder
need to add a common-lang3 dependency, and the package jar will be different with the others.What can I do to avoid
HashCodeBuilder
?