[英]class com.bea.alsb.tools.configjar.ant.ConfigJarTask cannot be found
We are trying to invoke ant using maven in an osb project 我们正在尝试在OSB项目中使用Maven调用ant
And we are getting the below error 而且我们收到以下错误
taskdef class com.bea.alsb.tools.configjar.ant.ConfigJarTask cannot be found 找不到taskdef类com.bea.alsb.tools.configjar.ant.ConfigJarTask
================= Below is build XML =================下面是构建XML
<property environment="env" />
<property name="mw.home" location="${env.MW_HOME}"/>
<property name="wl.home" location="${env.WL_HOME}"/>
<property name="osb.home" location="${env.OSB_HOME}"/>
<property name="settingsFile" location="D:\osb_ant\settings.xml"/>
<taskdef name="configjar"
classname="com.bea.alsb.tools.configjar.ant.ConfigJarTask"/>
<target name="init">
<property name="task.debug" value="false" />
<property name="task.failonerror" value="true" />
<property name="task.errorproperty" value="" />
</target>
<target name="run" depends="init">
<fail unless="settingsFile"/>
<configjar debug="${task.debug}"
failonerror="${task.failonerror}"
errorProperty="${task.errorproperty}"
settingsFile="${settingsFile}" />
</target>
You have specified mw.home, wl.home and osb.home based on environment variables MW_HOME, WL_HOME and OSB_HOME. 您已基于环境变量MW_HOME,WL_HOME和OSB_HOME指定了mw.home,wl.home和osb.home。 Are those actually set?
那些真的设置好了吗?
try calling $WL_HOME/server/bin/setWLSEnv.sh (or equivalent) before running ant. 尝试在运行ant之前调用$ WL_HOME / server / bin / setWLSEnv.sh(或等效方法)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.