如何在 liferay 中部署主题?
How to deploy a theme in liferay?
我正在尝试检查我的主题项目是否是 运行 不同的版本。
我下载了我需要的所有版本(6.2:ga1、ga2、ga3、ga4、ga5、ga6),并为每个服务器配置了服务器和 sdk。
我做到了(从插件 SDK 导入 -> liferay 项目)。在导入 window 中,我收到一条消息:
SDK version and Liferay runtime version may not be compatible.
我导入了主题并尝试部署它(liferay -> 部署)但出现错误:
Error running SDK command deploy java.lang.NullPointerException
我正在使用 Eclipse Kepler-4.3 和 Liferay 6.2。
错误说明
我尝试了运行 As-> Ant Build
我收到这个错误:
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
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
Total time: 1 second
更新 1:
我尝试使用 ant deploy 但出现错误:
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)
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
BUILD FAILED
如何使用 IDE 和 Ant line 命令在 liferay 中部署主题?
更新 2:
我将目录移到了更高的位置并导入了项目。
首先我测试了 GA1 版本并且我做了(liferay -> 部署)它工作。然后当我尝试为 GA2 导入项目时,我收到一条消息:
SDK version and Liferay runtime version may not be compatible.
详情如下图:
在Liferay目标运行时,如果我select一个SDK的配置:GA2、GA3、GA4、GA5、GA6。
例如:
- Liferay 插件 SDK:liferay-plugins-sdk-6.2 (GA2)
- Liferay 目标运行时:Liferay v6.2 CE (GA2) (Tomcat 7)
只有我 select Liferay v6.2 SE (GA1) (Tomcat 7), 消息消失了。
如果我 select 这样的配置 (GA2-GA2), ... ,(GA6-GA6) 消息出现。
如果我 select 这样的配置 (GA1-GA1), (GA2-GA1), ...,(GA6-GA1) 消息消失了。
对于 (GA1-GA1) 他没有问题。
导入项目后,出现以下错误消息:
[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
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
Total time: 11 seconds
更新 3:
我遇到了 SDK 版本和 Liferay 运行时的兼容性问题。
我试图在插件 sdk 中创建 build.yoursystemusername.properties 文件。
这两行删除了一些版本的错误:
ivy.jar.url=http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar
ivy.version=2.3.0
当我尝试部署 GA6 版本时出现此错误:文件名或扩展名太长
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.
我尝试在 GA6 版本上部署主题,但出现此错误:
[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[=18=]/":
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[=103=]/;如果我更正它并部署主题,同一行会再次出现。
你那里有一个奇怪的版本集合。不要使用 GA1-6 的 all,而是选择一个(最新的)。
其余部分:您正在构建 一些 主题并且构建过程缺少一个文件。请注意,您的主题的构建文件是 \liferay-plugins-sdk-6.2\themes\material-admin\Material-admin-theme\build.xml
。打开该文件并检查它包含的内容:您会发现 ../build-common-theme.xml
,这正是丢失的文件。搜索该文件,您会在更上一层的目录中找到它。这将告诉您,插件 SDK 尚未针对存储在 SDK 根目录下两个级别的主题构建。我建议将您的主题向上移动一个级别,但您可能会幸运地更改主题 build.xml
中包含的构建文件
截至 NullpointerException:此处信息不足。但是,当您的主题根本无法构建时,难怪有些东西没有按预期工作。
我应该使用一个 sdk 6.2 GA1 并将其部署在不同的门户网站上。
我必须将 SDK 留给 GA1 并仅更改 Liferay 目标运行时。
例如:
- Liferay 插件 SDK:liferay-plugins-sdk-6.2 (GA1)
- Liferay 目标运行时:Liferay v6.2 CE (GA2) (Tomcat 7)
该主题适用于所有版本。
我正在尝试检查我的主题项目是否是 运行 不同的版本。
我下载了我需要的所有版本(6.2:ga1、ga2、ga3、ga4、ga5、ga6),并为每个服务器配置了服务器和 sdk。
我做到了(从插件 SDK 导入 -> liferay 项目)。在导入 window 中,我收到一条消息:
SDK version and Liferay runtime version may not be compatible.
我导入了主题并尝试部署它(liferay -> 部署)但出现错误:
Error running SDK command deploy java.lang.NullPointerException
我正在使用 Eclipse Kepler-4.3 和 Liferay 6.2。
错误说明
我尝试了运行 As-> Ant Build
我收到这个错误:
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
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
Total time: 1 second
更新 1:
我尝试使用 ant deploy 但出现错误:
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)
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
BUILD FAILED
如何使用 IDE 和 Ant line 命令在 liferay 中部署主题?
更新 2:
我将目录移到了更高的位置并导入了项目。
首先我测试了 GA1 版本并且我做了(liferay -> 部署)它工作。然后当我尝试为 GA2 导入项目时,我收到一条消息:
SDK version and Liferay runtime version may not be compatible.
详情如下图:
在Liferay目标运行时,如果我select一个SDK的配置:GA2、GA3、GA4、GA5、GA6。
例如:
- Liferay 插件 SDK:liferay-plugins-sdk-6.2 (GA2)
- Liferay 目标运行时:Liferay v6.2 CE (GA2) (Tomcat 7)
只有我 select Liferay v6.2 SE (GA1) (Tomcat 7), 消息消失了。
如果我 select 这样的配置 (GA2-GA2), ... ,(GA6-GA6) 消息出现。
如果我 select 这样的配置 (GA1-GA1), (GA2-GA1), ...,(GA6-GA1) 消息消失了。
对于 (GA1-GA1) 他没有问题。
导入项目后,出现以下错误消息:
[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 DETAILSBUILD 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
Total time: 11 seconds
更新 3:
我遇到了 SDK 版本和 Liferay 运行时的兼容性问题。
我试图在插件 sdk 中创建 build.yoursystemusername.properties 文件。
这两行删除了一些版本的错误:
ivy.jar.url=http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar
ivy.version=2.3.0
当我尝试部署 GA6 版本时出现此错误:文件名或扩展名太长
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.
我尝试在 GA6 版本上部署主题,但出现此错误:
[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[=18=]/": 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[=103=]/;如果我更正它并部署主题,同一行会再次出现。
你那里有一个奇怪的版本集合。不要使用 GA1-6 的 all,而是选择一个(最新的)。
其余部分:您正在构建 一些 主题并且构建过程缺少一个文件。请注意,您的主题的构建文件是 \liferay-plugins-sdk-6.2\themes\material-admin\Material-admin-theme\build.xml
。打开该文件并检查它包含的内容:您会发现 ../build-common-theme.xml
,这正是丢失的文件。搜索该文件,您会在更上一层的目录中找到它。这将告诉您,插件 SDK 尚未针对存储在 SDK 根目录下两个级别的主题构建。我建议将您的主题向上移动一个级别,但您可能会幸运地更改主题 build.xml
截至 NullpointerException:此处信息不足。但是,当您的主题根本无法构建时,难怪有些东西没有按预期工作。
我应该使用一个 sdk 6.2 GA1 并将其部署在不同的门户网站上。 我必须将 SDK 留给 GA1 并仅更改 Liferay 目标运行时。
例如:
- Liferay 插件 SDK:liferay-plugins-sdk-6.2 (GA1)
- Liferay 目标运行时:Liferay v6.2 CE (GA2) (Tomcat 7)
该主题适用于所有版本。