在liferay中安装kaleo-web源码

Installing kaleo-web source code in liferay

我必须从 eclipse 部署 kaleo-web 插件,它显示无效位置,我已将 kaleo-web 插件放在 webs 文件夹中,因为它是下载后的,或者我尝试从 cmd 部署它 prompt.As kaleo-web 包含 service.xml,所以我已经完成了 ant 构建服务,它显示构建失败,有人可以帮助解决这个问题吗?

D:\Migration-work-for_Liferay62\one-click62\plugins\webs\kaleo-web>ant build-ser
vice
Buildfile: D:\Migration-work-for_Liferay62\one-click62\plugins\webs\kaleo-web\bu
ild.xml

build-service:
    [mkdir] Created dir: D:\Migration-work-for_Liferay62\one-click62\plugins\web
s\kaleo-web\docroot\WEB-INF\classes
     [copy] Copying 24 files to D:\Migration-work-for_Liferay62\one-click62\plug
ins\webs\kaleo-web\docroot\WEB-INF\classes
     [copy] Copied 45 empty directories to 35 empty directories under D:\Migrati
on-work-for_Liferay62\one-click62\plugins\webs\kaleo-web\docroot\WEB-INF\classes

      [jar] Building MANIFEST-only jar: D:\Migration-work-for_Liferay62\one-clic
k62\plugins\webs\kaleo-web\build-service-classpath.jar
   [delete] Deleting: D:\Migration-work-for_Liferay62\one-click62\plugins\webs\k
aleo-web\build-service-classpath.jar.manifest
   [delete] Deleting: D:\Migration-work-for_Liferay62\one-click62\plugins\webs\k
aleo-web\build-service-classpath.jar
     [echo] Loading jar:file:/D:/Migration-work-for_Liferay62/one-click62/bundle
s/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
     [echo] Loading jar:file:/D:/Migration-work-for_Liferay62/one-click62/bundle
s/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
     [echo] Loading file:/D:/Migration-work-for_Liferay62/one-click62/bundles/to
mcat-7.0.42/webapps/ROOT/WEB-INF/classes/portal-ext.properties
     [echo] Loading jar:file:/D:/Migration-work-for_Liferay62/one-click62/bundle
s/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/too
ls/dependencies/portal-tools.properties
     [echo] Building KaleoAction
     [echo] Building KaleoCondition
     [echo] Building KaleoDefinition
     [echo] Building KaleoInstance
     [echo] Building KaleoInstanceToken
     [echo] Building KaleoLog
     [echo] Building KaleoNode
     [echo] Building KaleoNotification
     [echo] Building KaleoNotificationRecipient
     [echo] Building KaleoTask
     [echo] Building KaleoTaskAssignment
     [echo] Building KaleoTaskAssignmentInstance
     [echo] Building KaleoTaskInstanceToken
     [echo] Building KaleoTimer
     [echo] Building KaleoTimerInstanceToken
     [echo] Building KaleoTransition
    [javac] Compiling 1 source file to D:\Migration-work-for_Liferay62\one-click
62\plugins\webs\kaleo-web\docroot\WEB-INF\service-classes
    [javac] ----------
    [javac] 1. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 17)
    [javac]     import com.liferay.compat.portal.kernel.scheduler.CronText;
    [javac]            ^^^^^^^^^^^^^^^^^^
    [javac] The import com.liferay.compat cannot be resolved
    [javac] ----------
    [javac] 2. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 25)
    [javac]     DAY("day", CronText.DAILY_FREQUENCY),
    [javac]                ^^^^^^^^
    [javac] CronText cannot be resolved to a variable
    [javac] ----------
    [javac] 3. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 26)
    [javac]     HOUR("hour", CronText.HOURLY_FREQUENCY),
    [javac]                  ^^^^^^^^
    [javac] CronText cannot be resolved to a variable
    [javac] ----------
    [javac] 4. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 27)
    [javac]     MINUTE("minute", CronText.MINUTELY_FREQUENCY),
    [javac]                      ^^^^^^^^
    [javac] CronText cannot be resolved to a variable
    [javac] ----------
    [javac] 5. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 28)
    [javac]     MONTH("month", CronText.MONTHLY_FREQUENCY),
    [javac]                    ^^^^^^^^
    [javac] CronText cannot be resolved to a variable
    [javac] ----------
    [javac] 6. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 29)
    [javac]     SECOND("second", CronText.SECONDLY_FREQUENCY),
    [javac]                      ^^^^^^^^
    [javac] CronText cannot be resolved to a variable
    [javac] ----------
    [javac] 7. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 30)
    [javac]     WEEK("week", CronText.WEEKLY_FREQUENCY),
    [javac]                  ^^^^^^^^
    [javac] CronText cannot be resolved to a variable
    [javac] ----------
    [javac] 8. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 31)
    [javac]     YEAR("year", CronText.YEARLY_FREQUENCY);
    [javac]                  ^^^^^^^^
    [javac] CronText cannot be resolved to a variable
    [javac] ----------
    [javac] 8 problems (8 errors)

BUILD FAILED
D:\Migration-work-for_Liferay62\one-click62\plugins\build-common-plugin.xml:262:
 The following error occurred while executing this line:
D:\Migration-work-for_Liferay62\one-click62\plugins\build-common.xml:634: Compil
e failed; see the compiler error output for details.

Total time: 42 seconds

我已经更改了class

中的包
D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java 

com.liferay.compat.portal.kernel.scheduler.CronTextcom.liferay.portal.kernel.scheduler.CronText然后执行ant build-service和ant deploy,然后kaleo-web部署成功。

参考:https://www.liferay.com/community/forums/-/message_boards/message/58130766