我尝试从Openbravo 3.0的源代码安装。 我成功地克隆了这个项目。 下一步我试图运行ant install.source 这是我得到的结果
D:\openbravopi>ant install.source
Buildfile: D:\openbravopi\build.xml
set.code.rev:
code.rev:
init:
cleanSubfolders:
clean:
[delete] Deleting directory D:\openbravopi\src-core\build\classes
[delete] Deleting directory D:\openbravopi\src-core\docs
[delete] Deleting: D:\openbravopi\src-core\lib\openbravo-core.jar
clean:
clean:
core.lib:
init:
[mkdir] Created dir: D:\openbravopi\src-core\build\classes
[mkdir] Created dir: D:\openbravopi\src-core\docs
compile:
[javac] Compiling 127 source files to D:\openbravopi\src-core\build\classes
build.jar:
[jar] Building jar: D:\openbravopi\src-core\lib\openbravo-core.jar
build:
copy.core.lib:
[copy] Copying 1 file to D:\openbravopi\lib\runtime
database.lib:
init:
compile:
build.jar:
jar:
create.database:
create.database:
BUILD FAILED
D:\openbravopi\build.xml:740: The following error occurred while executing this line:
D:\openbravopi\src-db\database\build-create.xml:50: The following error occurred while executing this line:
Target "clean.database.${bbdd.rdbms}" does not exist in the project "openbravo".
Total time: 6 seconds
有谁知道这个问题的解决方案? 谢谢。
答案 0 :(得分:1)
实际上我跳过了步骤ant setup
。那造成了错误!如果按照说明执行步骤,则应该进行正确的设置。
答案 1 :(得分:0)
原因是因为ant不知道$ {bbdd.rdbms}是什么。 解决方案是
转到{your openbravo folder} / config并查找文件Opernbavo.properties.template
复制Opernbavo.properties.template并将其重命名为Opernbavo.properties
在Opernbavo.properties中你可能需要更改一些用户名或密码来访问PostgreSQL,在我的情况下我必须设置bbdd.systemPassword = root
希望这会有所帮助
答案 2 :(得分:0)
你必须运行" ant setup"第一;)