如何在空白玉兰实例上安装玉兰的旅行演示项目

时间:2018-02-01 15:38:06

标签: magnolia

我正在尝试关注Travel Demo - 面向开发者@ https://documentation.magnolia-cms.com/display/DOCS56/Travel+Demo+-+for+developers

  • 正如建议我克隆了项目
  • 使用跳过的checkstyle选项构建它(如果我不能在没有未记录的技巧的情况下构建项目,那已经感觉很奇怪)
  • 构建成功,但我不知道如何处理它:
    • 没有战争文件,只有罐子。
    • 我知道我能够在本地Tomcat上构建和运行的training-developer-project包。

我想做的是:

  • 在我使用maven archetype生成的空白玉兰网应用程序maven项目中安装Travel Demo项目

澄清:我的想法不仅仅是将travel-demo作为依赖安装,而是将其作为我学习项目的一部分。

更新@ Ducaz035:运行mvn -e -X clean install会在checkstyle插件中出错:

[INFO] Starting audit...
C:\Magnolia_dev\demo-projects\community\magnolia-travel-demo\src\test\java\info\magnolia\demo\travel\model\NavigationAreaModelTest
.java:48: Missing a Javadoc comment.
C:\Magnolia_dev\demo-projects\community\magnolia-travel-demo\src\test\java\info\magnolia\demo\travel\setup\SetupDemoRolesAndGroups
TaskTest.java:54: Missing a Javadoc comment.
C:\Magnolia_dev\demo-projects\community\magnolia-travel-demo\src\test\java\info\magnolia\demo\travel\setup\TravelDemoModuleVersion
HandlerTest.java:75: Missing a Javadoc comment.
Audit done.
[INFO] There are 3 errors reported by Checkstyle 6.1.1 with magnolia-build-resources/checkstyle.xml ruleset.
[ERROR] src\test\java\info\magnolia\demo\travel\model\NavigationAreaModelTest.java[48] (javadoc) JavadocType: Missing a Javadoc co
mment.
[ERROR] src\test\java\info\magnolia\demo\travel\setup\SetupDemoRolesAndGroupsTaskTest.java[54] (javadoc) JavadocType: Missing a Ja
vadoc comment.
[ERROR] src\test\java\info\magnolia\demo\travel\setup\TravelDemoModuleVersionHandlerTest.java[75] (javadoc) JavadocType: Missing a
 Javadoc comment.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Magnolia Travel Demo (parent pom) .................. SUCCESS [  4.489 s]
[INFO] Magnolia Travel Demo Module ........................ FAILURE [ 34.003 s]

1 个答案:

答案 0 :(得分:0)

You have to put in into the webapp, you are talking about the bundle so add the travel-demo to it as maven dependency. Alternative you can drop the jar to /libs folder and Magnolia will it pick up automatically. For more detail please check https://documentation.magnolia-cms.com/display/DOCS55/Installing+a+module

Cheers,