Java 主题\u SERVLET\u上下文\u/templates/portal\u normal.vm不存在

Java 主题\u SERVLET\u上下文\u/templates/portal\u normal.vm不存在,java,liferay,liferay-theme,Java,Liferay,Liferay Theme,我正在尝试用一些基本的css和一些页眉和页脚创建一个基本的liferay maven主题 我已经创建了一个页面,并将此主题应用于该页面 基本上我的主题文件夹结构是 sample-theme sample-theme/pom.xml sample-theme/src sample-theme/src/main sample-theme/src/main/resources sample-theme/src/main/webapp sample-theme/src/main/webapp/WEB-I

我正在尝试用一些基本的css和一些页眉和页脚创建一个基本的liferay maven主题

我已经创建了一个页面,并将此主题应用于该页面

基本上我的主题文件夹结构是

sample-theme
sample-theme/pom.xml
sample-theme/src
sample-theme/src/main
sample-theme/src/main/resources
sample-theme/src/main/webapp
sample-theme/src/main/webapp/WEB-INF
sample-theme/src/main/webapp/WEB-INF/liferay-plugin-package.properties
sample-theme/src/main/webapp/WEB-INF/web.xml
我的门户是正常的。虚拟机的路径是

sample-theme\src\main\webapp\WEB-INF\_diffs\templates\portal_normal.vm
当我打开页面时,控制台中不存在
theme\u SERVLET\u CONTEXT\u/templates/portal\u normal.vm


可能有什么问题?

您的主题结构有误。在
Maven
中构建
主题时,不需要
\u diff
文件夹

下面的屏幕截图显示了在
Maven

以下是
pom.xml

插件

com.liferay.maven.plugins
liferay maven插件
${liferay.version}
生成源
主题合并
构建css
构建缩略图
${liferay.auto.deploy.dir}
${liferay.app.server.deploy.dir}
${liferay.app.server.lib.global.dir}
${liferay.app.server.portal.dir}
${liferay.version}
${liferay.theme.parent}
主题
${liferay.theme.type}
性质
classic
虚拟机

Hi,如果您使用的是maven,那么pom.xml中的父主题是什么?另外,您是否检查了服务器日志?我也有同样的问题,但结构设置正确。我是否需要包含经典主题中的所有文件才能工作?我以为liferay构建过程应该添加这些文件。你的目标是什么?
     <plugin>
            <groupId>com.liferay.maven.plugins</groupId>
            <artifactId>liferay-maven-plugin</artifactId>
            <version>${liferay.version}</version>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>theme-merge</goal>
                        <goal>build-css</goal>
                        <goal>build-thumbnail</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <autoDeployDir>${liferay.auto.deploy.dir}</autoDeployDir>
                <appServerDeployDir>${liferay.app.server.deploy.dir}</appServerDeployDir>
                <appServerLibGlobalDir>${liferay.app.server.lib.global.dir}</appServerLibGlobalDir>
                <appServerPortalDir>${liferay.app.server.portal.dir}</appServerPortalDir>
                <liferayVersion>${liferay.version}</liferayVersion>
                <parentTheme>${liferay.theme.parent}</parentTheme>
                <pluginType>theme</pluginType>
                <themeType>${liferay.theme.type}</themeType>
            </configuration>
    </plugin>
<liferay.theme.parent>classic</liferay.theme.parent>
<liferay.theme.type>vm</liferay.theme.type>