无法创建Hippocms项目

时间:2017-09-19 09:36:48

标签: java hippocms

我正在尝试在Hippocms上创建一个新项目。我已经按照onehippo网页上的步骤进行操作。我已经单独下载了Maven。我从其他项目中删除了所有元数据,但是当我运行mvn clean verify时它仍然向我显示相同的错误。我已经多次删除了存储库 我仍然收到这条消息。问题是因特网上没有任何解决方案,特别是对于Hippo。 [河马错误] [1]。

  C:\Users\Administrator\myhippoproject>mvn clean verify
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO]
    [INFO] My Hippo Project
    [INFO] My Hippo Project Repository Data
    [INFO] My Hippo Project Repository Data For Application
    [INFO] My Hippo Project Repository Data For Development
    [INFO] My Hippo Project Site
    [INFO] My Hippo Project Repository Data Web Files
    [INFO] My Hippo Project CMS
    [INFO] My Hippo Project Essentials
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building My Hippo Project 0.1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myhippoproject ---
    [INFO]
    [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-versions) @ 
    myhippoproject ---
    [INFO]
    [INFO] --- build-helper-maven-plugin:3.0.0:regex-property (property-
    commandline-offline) @ myhippoproject ---
    [INFO] No match to regex '"true"' found in '"false"'. The initial value 
    '"false"' is left as-is...
    [INFO]
    [INFO] --- build-helper-maven-plugin:3.0.0:regex-property (property-
    commandline-online) @ myhippoproject ---
    [INFO]
    [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
    myhippoproject ---
    [INFO]
    [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources-no-fork) @ 
    myhippoproject ---
    [INFO]
    [INFO] ---------------------------------------------------------------------
    ---
    [INFO] Building My Hippo Project Repository Data 0.1.0-SNAPSHOT
    [INFO] ---------------------------------------------------------------------
    ---
    [INFO]
    [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myhippoproject-
    repository-data ---
    [INFO]
    [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-versions) @ 
    myhippoproject-repository-data ---
    [INFO]
    [INFO] --- build-helper-maven-plugin:3.0.0:regex-property (property-
    commandline-offline) @ myhippoproject-repository-data ---
    [INFO] No match to regex '"true"' found in '"false"'. The initial value 
    '"false"' is left as-is...
    [INFO]
    [INFO] --- build-helper-maven-plugin:3.0.0:regex-property (property-
    commandline-online) @ myhippoproject-repository-data ---
    [INFO]
    [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
    myhippoproject-repository-data ---
    [INFO]
    [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources-no-fork) @ 
    myhippoproject-repository-data ---
    [INFO]
    [INFO] ---------------------------------------------------------------------
    ---
    [INFO] Building My Hippo Project Repository Data For Application 0.1.0-
    SNAPSHOT
    [INFO] ---------------------------------------------------------------------
    ---
   [INFO]
   [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myhippoproject-
   repository-data-application ---
   [INFO]
   [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-versions) @ 
   myhippoproject-repository-data-application ---
   [INFO]
   [INFO] --- build-helper-maven-plugin:3.0.0:regex-property (property-
   commandline-offline) @ myhippoproject-repository-data-application ---
   [INFO] No match to regex '"true"' found in '"false"'. The initial value 
   '"false"' is left as-is...
   [INFO]
   [INFO] --- build-helper-maven-plugin:3.0.0:regex-property (property-
   commandline-online) @ myhippoproject-repository-data-application ---
   [INFO]
   [INFO] --- buildnumber-maven-plugin:1.4:create (default) @ myhippoproject-
   repository-data-application ---
   [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
   [INFO] Working directory: C:\Users\Administrator\myhippoproject\repository-
   data\application
   [INFO] ----------------------------------------------------------------------
   --
   [INFO] Reactor Summary:
   [INFO]
   [INFO] My Hippo Project ................................... SUCCESS [  1.328 
   s]
   [INFO] My Hippo Project Repository Data ................... SUCCESS [  0.062 
   s]
   [INFO] My Hippo Project Repository Data For Application ... FAILURE [  0.469 
    s]
   [INFO] My Hippo Project Repository Data For Development ... SKIPPED
   [INFO] My Hippo Project Site .............................. SKIPPED
   [INFO] My Hippo Project Repository Data Web Files ......... SKIPPED
   [INFO] My Hippo Project CMS ............................... SKIPPED
   [INFO] My Hippo Project Essentials ........................ SKIPPED
   [INFO] ----------------------------------------------------------------------
   --
   [INFO] BUILD FAILURE
   [INFO] ----------------------------------------------------------------------
   --
   [INFO] Total time: 2.766 s
   [INFO] Finished at: 2017-09-19T11:48:05+02:00
   [INFO] Final Memory: 21M/316M
   [INFO] ----------------------------------------------------------------------
   --
   [ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-
   plugin:1.4:create (default) on project myhippoproject-repository-data-
   application: Cannot get the revision information from the scm repository :
   [ERROR] Exception while executing SCM command.: Error while executing 
   command. Error while executing process. Cannot run program "git" (in 
   directory "C:\Users\Administrator\myhippoproject\repository-
   data\application"): CreateProcess error=2, The system cannot find the file 
   specified
   [ERROR] -> [Help 1]
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
   switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please 
   read the following articles:
   [ERROR] [Help 1] 
   http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
   [ERROR]
   [ERROR] After correcting the problems, you can resume the build with the 
   command
   [ERROR]   mvn <goals> -rf :myhippoproject-repository-data-application



  [1]: https://i.stack.imgur.com/j7Lm8.png

2 个答案:

答案 0 :(得分:2)

您的构建问题似乎与尝试执行 git 命令的maven插件有关。请在日志中查看此行:

[ERROR] Exception while executing SCM command.: Error while executing 
   command. Error while executing process. Cannot run program "git" (in 
   directory "C:\Users\Administrator\myhippoproject\repository-
   data\application"): CreateProcess error=2, The system cannot find the file 
   specified

似乎需要在您的系统上安装git。您可能需要先安装 git ,然后再次尝试该构建命令。

答案 1 :(得分:1)

你不应该需要git来构建Hippo,但在12.0.1原型中似乎有些错误。我会提交一个错误。如果可以,请安装git。