我已经在webapp中的Pom文件中导入了magnolia-module-standard-templating-kit
maven依赖项。它的版本是2.3.0,Magnolia版本是5.3。建成之后运行Tomcat服务器并启动安装模块,我遇到了如下故障:
Magnolia Data Module (version 2.3.0)
Could not install or update data module. Task 'Data AppLauncher group ordering' failed. (PathNotFoundException: /modules/ui-admincentral/config/appLauncherLayout/groups/data)
的pom.xml:
<!-- Overlay Magnolia Empty Webapp. Alternatively, use the bundled-webapp or the enterprise-webapp. Dependencies versions are already imported by parent, so no need to replicate here. -->
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-empty-webapp</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-empty-webapp</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>com.mycompany.projects</groupId>
<artifactId>myTemplateModule</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>info.magnolia.contacts</groupId>
<artifactId>magnolia-contacts</artifactId>
</dependency>
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-module-standard-templating-kit</artifactId>
</dependency>
任何人都可以帮我解决这个问题吗?
答案 0 :(得分:1)
我设法复制了你得到的异常,我认为问题是你添加依赖项的顺序并执行&#34;开始安装&#34;过程
如果我第一次做&#34;开始安装&#34;只有magnolia-empty-webapp依赖,然后我停止服务器,将magnolia-module-standard-templating-kit添加到pom.xml并执行另一个&#34;开始安装&#34;我得到了例外:
但如果我做了一个&#34;开始安装&#34;从一开始就指定所有依赖项(stk和empty-webapp)我根本不会得到异常
我建议您为演示项目和流行主题
添加这些依赖项<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-theme-pop</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-demo-project</artifactId>
<version>${project.version}</version>
</dependency>