From cd75c3f7db18d267db9f4ac2a10f965f1cd530d0 Mon Sep 17 00:00:00 2001 From: liyihz2008 Date: Tue, 15 Jan 2019 13:36:02 +0800 Subject: [PATCH] Update README.md --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cdb219bb43..541831a61e 100644 --- a/README.md +++ b/README.md @@ -84,9 +84,17 @@ Github : https://github.com/o2oa/o2oa ## 关于编译错误 第一次使用maven进行项目编译执行 mvn install 可能会发生异常,原因是编译生成的META-INF/persistence.xml来不及加载。这种情况下,您可以再执行一次mvn install即可完成对项目的编译。 -[ERROR] Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:3.0.0:enhance(enhanncer) on project x_base_core_project: Exception enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.0.0:enhance failed: MetaDataFactory could not be configured (conf.newMetaDataFactoryInstance() returned null). This might mean that no configuration properties were fount. Ensured that you have a META-INF/persistence.xml file, that it is available in your classpath, or that the properties file you are using for configuration is available. If you are using Ant, please see the or attributes of the task's nested element. This can also occur if your OpenJPA distribution jars are corrupt, or if your security policy is overly strict. -> [Help 1] -[ERROR] -...... +[ERROR] Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:3.0.0:enhance(enhanncer) on project x_base_core_project: Exception enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.0.0:enhance failed: MetaDataFactory could not be configured (conf.newMetaDataFactoryInstance() returned null). This might mean that no configuration properties were fount. Ensured that you have a META-INF/persistence.xml file, that it is available in your classpath, or that the properties file you are using for configuration is available. If you are using Ant, please see the or attributes of the task's nested element. This can also occur if your OpenJPA distribution jars are corrupt, or if your security policy is overly strict. + +-> [Help 1][ERROR]...... + +如果在编译的时候遇到上述错误,直接重新再 mvn install 就可以了。 + +## 关于编译打包结果 + +o2oa/o2server/target目录下会有打包好的zip包,将此zip包Copy到其他目录解压(避免目录层级太深造成启动异常),然后启动服务即可。 + +服务器部署和启动相关的教程文档,请移步系列教程:https://my.oschina.net/u/3931542/blog/2209110 # 服务器部署 -- GitLab