在liferay中安装kaleo-web源代码

时间:2015-09-01 12:25:35

标签: liferay liferay-6 portlet liferay-theme spring-portlet-mvc

我必须从eclipse部署kaleo-web插件,它显示无效的位置,我已经在web文件夹中放置了kaleo-web插件,因为它是在下载之后,或者我已尝试从cmd提示符部署它。作为kaleo- web包含service.xml,所以我已经完成了ant build-service,它显示构建失败,对此可以有任何帮助吗?

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

1 个答案:

答案 0 :(得分:0)

我已经更改了课程中的包

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