如何在Liferay中部署主题? [英] How to deploy a theme in liferay?

查看:114
本文介绍了如何在Liferay中部署主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检查我的主题项目是否正在以其他版本运行.

I am trying to check if my theme project is running with the different version.

我下载了我需要的所有版本(6.2:ga1,ga2,ga3,ga4,ga5,ga6),并为每个服务器配置了服务器和SDK.

I downloaded all the versions that i need (6.2: ga1,ga2,ga3,ga4,ga5,ga6) and I configured the servers and the sdk for each server.

我做了(从插件SDK导入-> liferay项目).在导入窗口中,我收到一条消息:

I did (Import -> liferay projects from plugins SDK). In the import window I got a message:

SDK版本和Liferay运行时版本可能不兼容.

SDK version and Liferay runtime version may not be compatible.

我导入了主题,并尝试进行部署(liferay->部署),但出现错误:

I imported the theme and I tried to deploy it (liferay -> deploy) but I got an error:

运行SDK命令部署java.lang.NullPointerException时出错

Error running SDK command deploy java.lang.NullPointerException

我正在使用Eclipse Kepler-4.3和Liferay 6.2.

I am using Eclipse Kepler-4.3 and Liferay 6.2.

错误说明

我尝试了Run As-> Ant Build

I tried Run As-> Ant Build

我收到此错误:

构建文件: D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ themes \ material-admin \ Material-admin-theme \ build .xml

Buildfile: D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\themes\material-admin\Material-admin-theme\build.xml

建立失败 D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ themes \ material-admin \ Material-admin-theme \ build .xml:5: 找不到 D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ themes \ material-admin \ build-common-theme.xml 从进口 D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ themes \ material-admin \ Material-admin-theme \ build .xml

BUILD FAILED D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\themes\material-admin\Material-admin-theme\build.xml:5: Cannot find D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\themes\material-admin\build-common-theme.xml imported from D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\themes\material-admin\Material-admin-theme\build.xml

总时间:1秒

更新1:

我尝试使用ant deploy,但出现错误:

Update 1:

I tried to use ant deploy but I got an error:

编译: D:\ FormationJEE \ Liferay \ Liferay-6.2.0-ce-ga1 \ liferay-plugins-sdk-6.2.0-ce-ga1-20131101192857659 \ bundles \ tomcat-7.0.42 \ lib \ ext不存在.在 org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:495) 在org.apache.tools.ant.types.FileSet.iterator(FileSet.java:70)处 org.apache.tools.ant.types.resources.Union.getAllResources(Union.java:148) 在 org.apache.tools.ant.types.resources.Union.getCollection(Union.java:108) 在 org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.cacheCollection(BaseResourc eCollectionContainer.java:263),网址为 org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.iterator(BaseResourceCollec tionContainer.java:142)在 org.apache.tools.ant.types.Path.iterator(Path.java:709)位于 org.apache.tools.ant.types.Path.iterator(Path.java:702)位于 org.apache.tools.ant.types.resources.Union.getAllResources(Union.java:148) 在 org.apache.tools.ant.types.resources.Union.getAllToStrings(Union.java:128) 在org.apache.tools.ant.types.resources.Union.list(Union.java:87)处 org.apache.tools.ant.types.Path.list(Path.java:378)位于 org.apache.tools.ant.types.Path.addExisting(Path.java:330)在 org.apache.tools.ant.types.Path.addExisting(Path.java:318)在 org.apache.tools.ant.types.Path.concatSpecialPath(Path.java:569)在 org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:529) 在 org.apache.tools.ant.AntClassLoader.setClassPath(AntClassLoader.java:363) 在org.apache.tools.ant.AntClassLoader(AntClassLoader.java:277) 在org.apache.tools.ant.AntClassLoader(AntClassLoader.java:298) 在 org.apache.tools.ant.AntClassLoader.newAntClassLoader(AntClassLoader.java:1562) 在org.apache.tools.ant.Project.createClassLoader(Project.java:345)处 org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130) 在org.apache.tools.ant.taskdefs.Java.run(Java.java:834)处 org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:228)在 org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:137)在 org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)在 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) 在jdk.internal.reflect.GeneratedMethodAccessor4.invoke(未知 来源) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43),位于java.base/java.lang.reflect.Method.invoke(Method.java:564) 在 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.Task.perform(Task.java:348)处 org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) 在 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) 在jdk.internal.reflect.GeneratedMethodAccessor4.invoke(未知 来源) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43),位于java.base/java.lang.reflect.Method.invoke(Method.java:564) 在 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.Task.perform(Task.java:348)处 org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:402) 在 net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259) 在net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)处 net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:324)在 net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)在 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) 在jdk.internal.reflect.GeneratedMethodAccessor4.invoke(未知 来源) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43),位于java.base/java.lang.reflect.Method.invoke(Method.java:564) 在 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.Task.perform(Task.java:348)处 org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) 在net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)处 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(本机 方法) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

compile: D:\FormationJEE\Liferay\Liferay-6.2.0-ce-ga1\liferay-plugins-sdk-6.2.0-ce-ga1-20131101192857659\bundles \tomcat-7.0.42\lib\ext does not exist. at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:495) at org.apache.tools.ant.types.FileSet.iterator(FileSet.java:70) at org.apache.tools.ant.types.resources.Union.getAllResources(Union.java:148) at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:108) at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.cacheCollection(BaseResourc eCollectionContainer.java:263) at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.iterator(BaseResourceCollec tionContainer.java:142) at org.apache.tools.ant.types.Path.iterator(Path.java:709) at org.apache.tools.ant.types.Path.iterator(Path.java:702) at org.apache.tools.ant.types.resources.Union.getAllResources(Union.java:148) at org.apache.tools.ant.types.resources.Union.getAllToStrings(Union.java:128) at org.apache.tools.ant.types.resources.Union.list(Union.java:87) at org.apache.tools.ant.types.Path.list(Path.java:378) at org.apache.tools.ant.types.Path.addExisting(Path.java:330) at org.apache.tools.ant.types.Path.addExisting(Path.java:318) at org.apache.tools.ant.types.Path.concatSpecialPath(Path.java:569) at org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:529) at org.apache.tools.ant.AntClassLoader.setClassPath(AntClassLoader.java:363) at org.apache.tools.ant.AntClassLoader.(AntClassLoader.java:277) at org.apache.tools.ant.AntClassLoader.(AntClassLoader.java:298) at org.apache.tools.ant.AntClassLoader.newAntClassLoader(AntClassLoader.java:1562) at org.apache.tools.ant.Project.createClassLoader(Project.java:345) at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130) at org.apache.tools.ant.taskdefs.Java.run(Java.java:834) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:228) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:137) at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:402) at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259) at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268) at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:324) at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

在 java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43),位于java.base/java.lang.reflect.Method.invoke(Method.java:564) 在 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)处 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) 在jdk.internal.reflect.GeneratedMethodAccessor4.invoke(未知 来源) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43),位于java.base/java.lang.reflect.Method.invoke(Method.java:564) 在 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.Task.perform(Task.java:348)处 org.apache.tools.ant.Target.execute(Target.java:435)在 org.apache.tools.ant.Target.performTasks(Target.java:456)在 org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) 在org.apache.tools.ant.Project.executeTarget(Project.java:1376)处 org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 在org.apache.tools.ant.Project.executeTargets(Project.java:1260)处 org.apache.tools.ant.Main.runBuild(Main.java:857)在 org.apache.tools.ant.Main.startAnt(Main.java:236)在 org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)在 org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)Java 结果:-1

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:857) at org.apache.tools.ant.Main.startAnt(Main.java:236) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113) Java Result: -1

建立失败

如何使用IDE和Ant line命令在liferay中部署主题?

How to deploy a theme in liferay using the IDE and the Ant line command?

我将目录上移并导入了项目.

I moved the directory higher and I imported the project.

首先,我测试了GA1版本,并做了(liferay->部署)它可以工作.然后,当我尝试为GA2导入项目时,我收到一条消息:

First I tested the GA1 version and I did (liferay -> deploy) it worked. Then when I tried to import the project for GA2, i got a message:

SDK版本和Liferay运行时版本可能不兼容.

SDK version and Liferay runtime version may not be compatible.

下图显示了详细信息:

在Liferay目标运行时中,如果我为SDK选择配置:GA2,GA3,GA4,GA5,GA6.

In the Liferay target runtime, if I select a configuration for the SDK: GA2, GA3, GA4, GA5, GA6.

例如:

  • Liferay插件SDK:liferay-plugins-sdk-6.2(GA2)
  • Liferay目标运行时:Liferay v6.2 CE(GA2)(Tomcat 7)

仅当我选择Liferay v6.2 SE(GA1)(Tomcat 7)时,消息消失了.

Only if I select Liferay v6.2 SE (GA1) (Tomcat 7), The message gone.

如果我选择这样的配置(GA2-GA2),...,(GA6-GA6),则会出现该消息.

If I select a configuration like this (GA2-GA2), ... ,(GA6-GA6) the message appeared.

如果我选择像(GA1-GA1),(GA2-GA1),...,(GA6-GA1)这样的配置,消息就消失了.

If I select a configuration like this (GA1-GA1), (GA2-GA1), ... ,(GA6-GA1) the message gone.

对于(GA1-GA1),他没有问题.

For (GA1-GA1) he has no problems.

导入项目后,出现以下错误消息:

After I imported the project, I have this error message:

[控制台输出重定向到 文件:D:\ FormationJEE \ Liferay \ workspace.metadata.plugins \ com.liferay.ide.sdk.core \ sdk.log] 生成文件: D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ themes \ Material-admin-theme \ build.xml [ivy:resolve] :: Apache Ivy 2.3.0-20130110142753 :: http://ant.apache.org/ivy/ :: [ivy:resolve] ::加载设置:: 文件= D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ ivy-settings.xml [ivy:resolve] ::问题摘要:: [ivy:resolve] ::::警告 找不到[ivy:resolve]模块:biz.aQute#bnd; 2.3.0 [ivy:resolve] ==== asu-gibson:尝试过[ivy:resolve]
https://gibson.asu. edu/maven/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
https://gibson.asu. edu/maven/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== jboss-nexus:尝试过[ivy:resolve]
https: //repository.jboss.org/nexus/content/repositories/releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
https: //repository.jboss.org/nexus/content/repositories/releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== jboss-thirdparty:尝试过[ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== maven2:已尝试[ivy:resolve]
http://repo1.maven. org/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
http://repo1.maven. org/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== ow2-public:已尝试[ivy:resolve]
http: //repository.ow2.org/nexus/content/repositories/public/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
http: //repository.ow2.org/nexus/content/repositories/public/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ====素数:已尝试[ivy:resolve]
http://repository.primefaces.org/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
http://repository.primefaces.org/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== liferay-public:已尝试[ivy:resolve]
https: //repository.liferay.com/nexus/content/groups/public/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
https: //repository.liferay.com/nexus/content/groups/public/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== pentaho:已尝试[ivy:resolve]
http://存储库. pentaho.org/artifactory/repo/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
http://存储库. pentaho.org/artifactory/repo/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== soapui:尝试过[ivy:resolve]
http://www. soapui.org/repository/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve]-工件biz.aQute#bnd; 2.3.0!bnd.jar: [ivy:resolve]
http://www. soapui.org/repository/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::::::: : [ivy:resolve] ::无法解决的依赖:: [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::::::: : [ivy:resolve] :: biz.aQute#bnd; 2.3.0:未找到[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::: [:ivy:resolve ] [ivy:resolve] [ivy:resolve] ::使用VERBOSE或DEBUG消息级别 更多详情

[Console output redirected to file:D:\FormationJEE\Liferay\workspace.metadata.plugins\com.liferay.ide.sdk.core\sdk.log] Buildfile: D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\themes\Material-admin-theme\build.xml [ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ :: [ivy:resolve] :: loading settings :: file = D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\ivy-settings.xml [ivy:resolve] :: problems summary :: [ivy:resolve] :::: WARNINGS [ivy:resolve] module not found: biz.aQute#bnd;2.3.0 [ivy:resolve] ==== asu-gibson: tried [ivy:resolve]
https://gibson.asu.edu/maven/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
https://gibson.asu.edu/maven/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== jboss-nexus: tried [ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== jboss-thirdparty: tried [ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== maven2: tried [ivy:resolve]
http://repo1.maven.org/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
http://repo1.maven.org/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== ow2-public: tried [ivy:resolve]
http://repository.ow2.org/nexus/content/repositories/public/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
http://repository.ow2.org/nexus/content/repositories/public/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== primefaces: tried [ivy:resolve]
http://repository.primefaces.org/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
http://repository.primefaces.org/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== liferay-public: tried [ivy:resolve]
https://repository.liferay.com/nexus/content/groups/public/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
https://repository.liferay.com/nexus/content/groups/public/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== pentaho: tried [ivy:resolve]
http://repository.pentaho.org/artifactory/repo/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
http://repository.pentaho.org/artifactory/repo/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] ==== soapui: tried [ivy:resolve]
http://www.soapui.org/repository/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom [ivy:resolve] -- artifact biz.aQute#bnd;2.3.0!bnd.jar: [ivy:resolve]
http://www.soapui.org/repository/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: biz.aQute#bnd;2.3.0: not found [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] [ivy:resolve] [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

建立失败 D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ themes \ Material-admin-theme \ build.xml:5 : 执行此行时发生以下错误: D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ themes \ build-common-theme.xml:5: 执行此行时发生以下错误: D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ build-common-plugin.xml:5: 执行此行时发生以下错误: D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ build-common.xml:47:执行此行: D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ build-common-ivy.xml:34: 执行此行时发生以下错误: D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga2 \ liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 \ liferay-plugins-sdk-6.2 \ build-common-ivy.xml:50: 无法解决依赖关系:解决失败-请参阅输出以了解 详细信息

BUILD FAILED D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\themes\Material-admin-theme\build.xml:5: The following error occurred while executing this line: D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\themes\build-common-theme.xml:5: The following error occurred while executing this line: D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\build-common-plugin.xml:5: The following error occurred while executing this line: D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\build-common.xml:47: The following error occurred while executing this line: D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\build-common-ivy.xml:34: The following error occurred while executing this line: D:\FormationJEE\Liferay\Liferay-6.2-ce-ga2\liferay-plugins-sdk-6.2-ce-ga2-20140319114139101\liferay-plugins-sdk-6.2\build-common-ivy.xml:50: impossible to resolve dependencies: resolve failed - see output for details

总时间:11秒

更新3:

我在SDK版本和Liferay运行时上存在兼容性问题.

Update 3:

I had a compatibility problem with SDK version and Liferay runtime.

我试图在sdk插件中创建build.yoursystemusername.properties文件.

I tried to create build.yoursystemusername.properties file inside the plugin sdk.

这两行删除了某些版本的一些错误:

These two lines deleted several errors for some version:

    ivy.jar.url=http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar
ivy.version=2.3.0

当我尝试部署GA6版本时,出现以下错误:文件名或扩展名太长

When I tried to deploy the GA6 version I had this error: File name or extension too long

D:\ FormationJEE \ Liferay \ Liferay-6.2-ce-ga6 \ liferay-plugins-sdk-6.2-ce-ga6-20160112152609836 \ liferay-plugins-sdk-6.2 \ build-common.xml:178: java.io.IOException:无法运行程序"D:\ Program Files \ Java \ jdk1.8.0_144 \ jre \ bin \ java.exe:CreateProcess错误= 206, Nom de fichier ou extension trop long

D:\FormationJEE\Liferay\Liferay-6.2-ce-ga6\liferay-plugins-sdk-6.2-ce-ga6-20160112152609836\liferay-plugins-sdk-6.2\build-common.xml:178: java.io.IOException: Cannot run program "D:\Program Files\Java\jdk1.8.0_144\jre\bin\java.exe": CreateProcess error=206, Nom de fichier ou extension trop long

更新3:

要纠正该错误:文件名或扩展名太长,我将liferay-sdk和liferay-tomcat目录的名称重命名为sdk和tomcat等短名称.

Update 3:

To fix the error: File name or extension too long I renamed the names of the liferay-sdk and liferay-tomcat directories to short names like sdk and tomcat.

我尝试在GA6版本上部署主题,但出现此错误:

I tried to deploy a theme on the version GA6 but I got this error:

[echo]正在加载 jar:文件:/D:/FormationJEE/Liferay/LiferayGA5/tomcat/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system .特性 [回声]正在加载 jar:文件:/D:/FormationJEE/Liferay/LiferayGA5/tomcat/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal .特性 [echo] Sass :: SyntaxError:"... ow-x:hidden \ 0/"之后的CSS无效: 预期的表达方式(例如1px,粗体)为;" [回声]
预期在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1147 [回声]预期!在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/lexer.rb:199 [echo] assert_expr在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:471 [echo] times_div_or_mod在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:233 [echo] plus_or_minus at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [回声]关系在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [echo] eq_or_neq在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [echo] and_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [echo] or_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [回声]处的空间 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:298 [echo] expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:246 [echo]在org/jruby/RubyKernel.java:2093发送 [echo] assert_expr在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:470 [回声]解析在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:49 [echo]在org/jruby/RubyKernel.java:2093发送 [echo] sass_script位于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1021 [回声]值!在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:881 [echo]声明在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:858 [echo]在以下位置的clarification_or_ruleset: C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:581 [回声]致电org/jruby/RubyProc.java:270 [回声] 致电org/jruby/RubyProc.java:220 [echo]重新抛出 在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1122 [echo]在以下位置的clarification_or_ruleset: C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:591 [echo] block_child位于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:553 [echo] block_contents位于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:542 [回声]在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:534 [echo]规则集位于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:528 [echo] block_child位于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:552 [echo] block_contents位于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:545 [echo]样式表位于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:82 [回声]解析在 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:27 [echo] _to_tree位于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:342 [echo] _render at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:315 [echo]渲染于 C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:262 [echo](root),位于:48 [echo]无法解析 /css/app.css [echo]线程"main"中的异常 org.jruby.embed.EvalFailedException:(SyntaxError)之后出现无效的CSS

[echo] Loading jar:file:/D:/FormationJEE/Liferay/LiferayGA5/tomcat/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties [echo] Loading jar:file:/D:/FormationJEE/Liferay/LiferayGA5/tomcat/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties [echo] Sass::SyntaxError: Invalid CSS after "...ow-x: hidden\0/": expected expression (e.g. 1px, bold), was ";" [echo]
expected at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1147 [echo] expected! at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/lexer.rb:199 [echo] assert_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:471 [echo] times_div_or_mod at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:233 [echo] plus_or_minus at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [echo] relational at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [echo] eq_or_neq at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [echo] and_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [echo] or_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225 [echo] space at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:298 [echo] expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:246 [echo] send at org/jruby/RubyKernel.java:2093 [echo] assert_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:470 [echo] parse at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:49 [echo] send at org/jruby/RubyKernel.java:2093 [echo] sass_script at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1021 [echo] value! at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:881 [echo] declaration at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:858 [echo] declaration_or_ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:581 [echo] call at org/jruby/RubyProc.java:270 [echo] call at org/jruby/RubyProc.java:220 [echo] rethrow at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1122 [echo] declaration_or_ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:591 [echo] block_child at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:553 [echo] block_contents at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:542 [echo] block at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:534 [echo] ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:528 [echo] block_child at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:552 [echo] block_contents at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:545 [echo] stylesheet at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:82 [echo] parse at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:27 [echo] _to_tree at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:342 [echo] _render at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:315 [echo] render at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:262 [echo] (root) at :48 [echo] Unable to parse /css/app.css [echo] Exception in thread "main" org.jruby.embed.EvalFailedException: (SyntaxError) Invalid CSS after

主题项目行的文件css/app.css中,行7837:overflow-x:hidden \ 0/;如果我纠正它并部署了主题,则同一行会再次出现.

In the file css/app.css of the theme project line 7837: overflow-x: hidden\0/; If I correct it and I deploy the theme, the same line comes back again.

推荐答案

我应该使用一个sdk 6.2 GA1并将其部署在其他门户网站上. 我必须将SDK留给GA1并仅更改Liferay目标运行时.

I should use one sdk 6.2 GA1 and deploy it on different portal. I have to leave the SDK to GA1 and change only the Liferay target runtime.

例如:

  • Liferay插件SDK:liferay-plugins-sdk-6.2(GA1)
  • Liferay目标运行时:Liferay v6.2 CE(GA2)(Tomcat 7)

该主题在所有版本中均可正常运行.

The theme works well in all versions.

这篇关于如何在Liferay中部署主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆