Thanks, that solved the problem. maven was pointing to a different java
even after setting the JAVA_HOME. Have reinstalled maven Now build is
working.

On Tue, Oct 29, 2019 at 2:52 PM Martin Perina <[email protected]> wrote:

> So just final verification, what "mvn -v" reports?
> This is what I got on FC29, where everything works fine for me:
>
> $ mvn -v
> Apache Maven 3.5.4 (Red Hat 3.5.4-4)
> Maven home: /usr/share/maven
> Java version: 11.0.4, vendor: Oracle Corporation, runtime:
> /usr/lib/jvm/java-11-openjdk-11.0.4.11-0.fc29.x86_64
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "5.2.18-100.fc29.x86_64", arch: "amd64",
> family: "unix"
>
> $ echo $JAVA_HOME
> /usr/lib/jvm/java-11
>
>
>
> On Tue, Oct 29, 2019 at 9:22 AM Kaustav Majumder <[email protected]>
> wrote:
>
>> Hi,
>> java -version does report jdk 11. Previously I did set it up with
>> alternatives.Any idea?
>>
>> java -version
>> openjdk version "11.0.5" 2019-10-15
>> OpenJDK Runtime Environment 18.9 (build 11.0.5+10)
>> OpenJDK 64-Bit Server VM 18.9 (build 11.0.5+10, mixed mode, sharing)
>>
>> On Tue, Oct 29, 2019 at 1:24 PM Martin Perina <[email protected]> wrote:
>>
>>> Try to execute "java -version". If it doesn't report JDK 11, then you
>>> need to set it using alternatives:
>>>
>>>
>>> https://github.com/oVirt/ovirt-engine/blob/master/README.adoc#prepare-your-dev-envrionment-for-java-11
>>>
>>> On Tue, Oct 29, 2019 at 7:33 AM Kaustav Majumder <[email protected]>
>>> wrote:
>>>
>>>> yes have done that
>>>>  echo $JAVA_HOME
>>>> /usr/lib/jvm/java-11-openjdk-11.0.4.11-0.fc29.x86_64/
>>>>
>>>> On Tue, Oct 29, 2019 at 12:01 PM Benny Zlotnik <[email protected]>
>>>> wrote:
>>>>
>>>>> Did you set JAVA_HOME to point to java 11 jdk?
>>>>>
>>>>>
>>>>> On Tue, Oct 29, 2019 at 5:43 AM Kaustav Majumder <[email protected]>
>>>>> wrote:
>>>>> >
>>>>> > Hi,
>>>>> > I am currently facing this error while building ovirt-engine master
>>>>> (commit da774d861d5a593666932f6e678f5383222ed8d5) on fedora 29.
>>>>> >
>>>>> > [ERROR] Failed to execute goal
>>>>> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
>>>>> (default-compile) on project ovirt-checkstyle-extension: Fatal error
>>>>> compiling: invalid flag: --release -> [Help 1]
>>>>> >
>>>>> > full build log here: https://pastebin.com/rJA5PHWu
>>>>> > --
>>>>> >
>>>>> > Thanks,
>>>>> >
>>>>> > Kaustav Majumder
>>>>> >
>>>>> > _______________________________________________
>>>>> > Devel mailing list -- [email protected]
>>>>> > To unsubscribe send an email to [email protected]
>>>>> > Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>>>>> > oVirt Code of Conduct:
>>>>> https://www.ovirt.org/community/about/community-guidelines/
>>>>> > List Archives:
>>>>> https://lists.ovirt.org/archives/list/[email protected]/message/MA7LF23VDYLIHSCJCLP5BTQBC6LOSAF2/
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Thanks,
>>>>
>>>> Kaustav Majumder
>>>> _______________________________________________
>>>> Devel mailing list -- [email protected]
>>>> To unsubscribe send an email to [email protected]
>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>>>> oVirt Code of Conduct:
>>>> https://www.ovirt.org/community/about/community-guidelines/
>>>> List Archives:
>>>> https://lists.ovirt.org/archives/list/[email protected]/message/WTKNMRZ2U5WTVAZZPFF52YK5AO2EWJHQ/
>>>>
>>>
>>>
>>> --
>>> Martin Perina
>>> Manager, Software Engineering
>>> Red Hat Czech s.r.o.
>>>
>>
>>
>> --
>>
>> Thanks,
>>
>> Kaustav Majumder
>>
>
>
> --
> Martin Perina
> Manager, Software Engineering
> Red Hat Czech s.r.o.
>


-- 

Thanks,

Kaustav Majumder
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/CUPPSHNBT3TJ63C77F7A5GCKDVSZUIUD/

Reply via email to