【发布时间】:2014-05-10 07:29:09
【问题描述】:
我正在使用 Ant 构建我的项目并将其部署到 JBoss。 Ant 正在使用 jboss-home/server/default/lib jar 构建。但是在部署过程中会报错:
java.lang.Error: Unresolved compilation problems:
The import org.apache.commons.lang3 cannot be resolved
StringUtils cannot be resolved
我通过以下 Ant 条目将 commons-lang3-3.1.jar 用于 StringUtils 类:
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar">
<include name="{jboss.home}/server/default/lib/commons-lang3-3.1.jar" />
【问题讨论】:
-
“未解决的编译问题”听起来像是编译错误。确定编译没有错误?
-
@arghtype 感谢回复,是的,编译时没有错误。
标签: ant jboss apache-commons-lang