|
@@ -84,9 +84,17 @@ Github : https://github.com/o2oa/o2oa
|
|
|
## 关于编译错误
|
|
## 关于编译错误
|
|
|
第一次使用maven进行项目编译执行 mvn install 可能会发生异常,原因是编译生成的META-INF/persistence.xml来不及加载。这种情况下,您可以再执行一次mvn install即可完成对项目的编译。
|
|
第一次使用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 <properties> or <propertiesFile> attributes of the task's nested <config> 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 <properties> or <propertiesFile> attributes of the task's nested <config> 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
|
|
|
|
|
|
|
|
|
|
|
|
|
# 服务器部署
|
|
# 服务器部署
|