只是注意一点,在进行生产mysql数据库模式的时候,还需要加入一个环境变量
(.hq/build.properties):server.database=MySQL
附件是sql模式创建语句。可以直接通过命令导入。最好通过工具导入。
常见编译问题:
1. Maven编译过程中因为警告信息导致编译失败
在编译HQ的websphere-plugin插件时,因为WebsphereProductPlugin.java中使用了sun的专用API而出现警告信息,从而导致Maven编译失败,如下所示(Hudson编译输出:
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/hq/.hudson/jobs/plugin/workspace/websphere-plugin/src/main/java/org/hyperic/hq/plugin
/websphere/WebsphereProductPlugin.java:[364,45]
警告:sun.net.www.ParseUtil 是 Sun 的专用 API,可能会在未来版本中删除
解决办法:
在插件的pom.xml文件中修改对应的编译插件,将
org.apache.maven.plugins
maven-compiler-plugin
1.5
1.5
256m
true
修改为
org.apache.maven.plugins
maven-compiler-plugin
2.3.1
org.codehaus.plexus
plexus-compiler-javac
1.8.1