deploy & debug ovirt in the intellij ide

Before we start, we need intellij enterprise version and a register tool..
[url]

[Summary]
1. We should open the pom.xml file instead of the project directory.
2. Modify the extension of the directory in the project properties.
3. Modify the .m2 file in your personal directory to make jboss know where to deploy the project.
4. We need seperate run/debug config to make it clearer.

[Steps]
OVIRT_HOME=/home/demo
JBOSS_HOME=/usr/jboss-as
JDK=/usr/java/jdk1.7.0_17
$ cmd as demo
# cmd as root

1.Compile the ovirt from src
in $OVIRT_HOME

$ mvn clean install -Pgwt-admin,gwt-user -DskipTests=true

2.Deploy ovirt
You need ~/.m2/settings.xml file in /root/ and /home/demo directory.

oVirtEnvSettingsoVirtEnvSettings/usr/jboss-as/usr/java/jdk1.7.0_17

in $OVIRT_HOME/ear

# mvn clean install -Pdep,setup

3.Run jboss
You should export an environment variant and a runtime configuration file.

$ echo -e "ENGINE_USR=admin111nENGINE_ETC=/etc/ovirt-engine" > $OVIRT_HOME/backend/manager/conf/engine.conf.defaults
# export ENGINE_DEFAULTS=$OVIRT_HOME/backend/manager/conf/engine.conf.defaults
# /usr/jboss-as/bin/standalone.sh

UPDATE:
Now there is README.developer in the source dir, just follow it.

发表评论

您的电子邮箱地址不会被公开。