[Engine-devel] Building oVirt from source
Juan Hernandez
jhernand at redhat.com
Wed Nov 14 16:43:03 UTC 2012
On 11/14/2012 05:31 PM, Itamar Heim wrote:
> On 11/14/2012 03:40 PM, Stephen Liu wrote:
>>
>>
>> ----- Original Message -----
>>> From: Juan Hernandez <jhernand at redhat.com>
>>> To: Stephen Liu <satimis at yahoo.com>
>>> Cc: Laszlo Hornyak <lhornyak at redhat.com>; "engine-devel at ovirt.org" <engine-devel at ovirt.org>
>>> Sent: Wednesday, November 14, 2012 7:17 PM
>>> Subject: Re: [Engine-devel] Building oVirt from source
>>>
>>> On 11/14/2012 12:09 PM, Stephen Liu wrote:
>>>>
>>>> Hi all,
>>>>
>>>> $ sudo find / -name .m2
>>>> find: `/run/user/satimis/gvfs': Permission denied
>>>> /home/satimis/.m2
>>>>
>>>> $ sudo ls -ald /home/satimis/.m2
>>>> drwxrwxr-x. 3 satimis satimis 4096 Nov 14 14:12 /home/satimis/.m2
>>>>
>>>>
>>>> $ cat $HOME/.m2/settings.xml
>>>> <settings xmlns="http://maven.apache.org/POM/4.0.0"
>>>> <http://maven.apache.org/POM/4.0.0%22>;
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> <http://www.w3.org/2001/XMLSchema-instance%22>;
>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>> http://maven.apache.org/xsd/settings-1.0.0.xsd"
>>>> <http://maven.apache.org/xsd/settings-1.0.0.xsd%22>;>
>>>>
>>>> <!--**************************** PROFILES
>>> ****************************-->
>>>>
>>>> <activeProfiles>
>>>>
>>> <activeProfile>oVirtEnvSettings</activeProfile>
>>>> </activeProfiles>
>>>>
>>>> <profiles>
>>>> <profile>
>>>> <id>oVirtEnvSettings</id>
>>>> <properties>
>>>>
>>> <jbossHome>/usr/share/jboss-as</jbossHome>
>>>>
>>>>
>>> <JAVA_HOME>/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java</JAVA_HOME>
>>>> </properties>
>>>> </profile>
>>>> </profiles>
>>>> </settings>
>>>
>>> This ^ (/home/satimis/.m2/settings.xml) is the file that you need to
>>> change, and you need to change the "jbossHome" property so that it
>>> contains the directory where you actually have the application server
>>> installed.
>>>
>>> Please remove or fix the JAVA_HOME property as well, as it is not needed
>>> and pointing a location that doesn't exist in Fedora 17.
>>
>>
>> Whether to run:-
>>
>> # mv /home/satimis/jboss-as /usr/share/
>> # rm -rf /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
>> # service jboss-as restart
>>
>> #> ps ax | grep java (to check jboss running)
>>
>> Then run again;
>> $> cd $OVIRT_HOME/ear
>> $> mvn clean install -Pdep,setup
>>
>> followed by;
>> Deploying engine-config & engine-manage-domains
>>
>> $> cd $OVIRT_HOME
>> $> make create_dirs
>> $> make install_tools
>> $> make install_config
>>
>> etc.
>>
>
> is there any reason to not use jboss in rpm form, and have our default
> files for developers assume paths based on jboss rpm?
The reason is that the jboss rpm installs the files in
/usr/share/jboss-as, owned by the root:jboss-as, so a non privileged
user will not have permission to write to those directories.
Stephen, what I suggested you to do is to leave the installation of the
application server in the /home/satimis/jboss-as directory and then
modify the /home/satimis/.m2/settings.xml file. It should read as follows:
<settings
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>oVirt</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>oVirt</id>
<properties>
<jbossHome>/home/satimis/jboss-as</jbossHome>
</properties>
</profile>
</profiles>
</settings>
Also you don't need to start the jboss-as service, as ovirt doesn't use
it. In a development environment you just go to
/home/satimis/jboss-as/bin and run standalone.sh.
Also make sure that you own the /home/satimis/jboss-as directory:
sudo chown --recursive satimis:satimis /home/satimis/jboss-as
Let me insist that if the build runs correctly what you will have is an
environment that you can use for development, it is not suitable or
designed for using ovirt. If what you want to do is test ovirt from the
user point of view then I strongly recommend that you use the prebuilt RPMs.
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
More information about the Devel
mailing list