Case closed. Turns out I had improper JAVA_HOME defined in ~/.mavenrc
which overrides user env and that is why it worked as root. I had to
debug the mvn bash script to get to the core of it. Too bad maven fails
with not much info in case like this. If you run with -X it could at
least tell you
Small update: I nuked all presence of java and maven with dnf autoremove
and then reinstalled maven and it did indeed install all the necessary
packages and now I also see the jre folder in the /usr/lib/jvm/... but
still! the same error. What is more interesting though is that if I
switch to ro
On 11/27/17 18:37, cen wrote:
> Yes, apparently I did have JAVA_HOME set. After unsetting the variable and
> reinstalling maven again it completed successfully. However, problem persists:
>
> mvn -version
> /usr/bin/mvn: Failed to set JAVACMD
> The JAVA_HOME environment variable is not defined corr
On 11/27/2017 11:00 AM, Ed Greshko wrote:
On 11/27/17 16:53, cen wrote:
On 11/27/2017 01:51 AM, Ed Greshko wrote:
On 11/27/17 07:39, Ed Greshko wrote:
I suppose I could give it a try with java-9 on a VM. If that is what you
require.
As previously noted. I got
[egreshko@acer ~]$ mvn -v
On 11/27/17 16:53, cen wrote:
>
> On 11/27/2017 01:51 AM, Ed Greshko wrote:
>> On 11/27/17 07:39, Ed Greshko wrote:
>>> I suppose I could give it a try with java-9 on a VM. If that is what you
>>> require.
>> As previously noted. I got
>>
>> [egreshko@acer ~]$ mvn -v
>> Apache Maven 3.5.0 (R
On 11/27/2017 01:51 AM, Ed Greshko wrote:
On 11/27/17 07:39, Ed Greshko wrote:
I suppose I could give it a try with java-9 on a VM. If that is what you
require.
As previously noted. I got
[egreshko@acer ~]$ mvn -v
Apache Maven 3.5.0 (Red Hat 3.5.0-6)
Maven home: /usr/share/maven
Java
On 11/27/17 07:39, Ed Greshko wrote:
> I suppose I could give it a try with java-9 on a VM. If that is what you
> require.
As previously noted. I got
[egreshko@acer ~]$ mvn -v
Apache Maven 3.5.0 (Red Hat 3.5.0-6)
Maven home: /usr/share/maven
Java version: 1.8.0_151, vendor: Oracle Corpora
On 11/27/17 07:13, cen wrote:
> I feel like my problem is something deeper or something silly at this point..
>
>
> sudo dnf install java-9-openjdk-devel
> Last metadata expiration check: 0:00:00 ago on Mon 27 Nov 2017 12:09:07 AM
> CET.
> Package java-9-openjdk-devel-1:9.0.0.181-7.fc27.x86_64 is
I feel like my problem is something deeper or something silly at this
point..
sudo dnf install java-9-openjdk-devel
Last metadata expiration check: 0:00:00 ago on Mon 27 Nov 2017 12:09:07
AM CET.
Package java-9-openjdk-devel-1:9.0.0.181-7.fc27.x86_64 is already
installed, skipping.
Dependenc
On 26.11.2017 23:02, Ulf Volmer wrote:
> On 26.11.2017 22:43, cen wrote:
>
>> 1. sudo dnf install maven
>
>> The JAVA_HOME environment variable is not defined correctly
>> This environment variable is needed to run this program
>> NB: JAVA_HOME should point to a JDK not a JRE
>
> is java-1.8.0-o
On 11/27/17 06:28, cen wrote:
>
> Hm, there is no jre directory.
>
On my system
[egreshko@meimei jvm]$ ls /usr/lib/jvm/java/jre/
bin lib
>
> On 11/26/2017 11:08 PM, Ed Greshko wrote:
>> On 11/27/17 05:43, cen wrote:
>>> Perhaps I am just going crazy but maven just won't pick up JAVA_HOME o
On 11/26/2017 05:28 PM, cen wrote:
>
> Hm, there is no jre directory.
>
>
> On 11/26/2017 11:08 PM, Ed Greshko wrote:
>> On 11/27/17 05:43, cen wrote:
>>> Perhaps I am just going crazy but maven just won't pick up JAVA_HOME on F27.
>>>
>>> 1. sudo dnf install maven
>>>
>>> 2. echo $JAVA_HOME re
To clarify, both are installed
export JAVA_HOME=/usr/lib/jvm/java-9-openjdk-9.0.0.181-7.fc27.x86_64
$JAVA_HOME/bin/java -version
openjdk version "9"
OpenJDK Runtime Environment (build 9+181)
OpenJDK 64-Bit Server VM (build 9+181, mixed mode)
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0
> On 11/26/2017 11:02 PM, Ulf Volmer wrote:
On 26.11.2017 23:23, cen wrote:
>> is java-1.8.0-openjdk-devel installed?
> It is indeed.
then it should usually works out of the box. As Ed wrote, $JAVA_HOME
should point to the JRE. But in my case, there is no $JAVA_HOME defined,
maven uses the defau
Hm, there is no jre directory.
On 11/26/2017 11:08 PM, Ed Greshko wrote:
On 11/27/17 05:43, cen wrote:
Perhaps I am just going crazy but maven just won't pick up JAVA_HOME on F27.
1. sudo dnf install maven
2. echo $JAVA_HOME returns /usr/lib/jvm/java-9-openjdk-9.0.0.181-7.fc27.x86_64
(which
It is indeed.
On 11/26/2017 11:02 PM, Ulf Volmer wrote:
On 26.11.2017 22:43, cen wrote:
1. sudo dnf install maven
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
is java-1.8.0-op
On 11/27/17 05:43, cen wrote:
> Perhaps I am just going crazy but maven just won't pick up JAVA_HOME on F27.
>
> 1. sudo dnf install maven
>
> 2. echo $JAVA_HOME returns /usr/lib/jvm/java-9-openjdk-9.0.0.181-7.fc27.x86_64
> (which includes bin dir with JDK tools such as javac, keytool etc so it is
On 26.11.2017 22:43, cen wrote:
> 1. sudo dnf install maven
> The JAVA_HOME environment variable is not defined correctly
> This environment variable is needed to run this program
> NB: JAVA_HOME should point to a JDK not a JRE
is java-1.8.0-openjdk-devel installed?
best regards
Ulf
___
Perhaps I am just going crazy but maven just won't pick up JAVA_HOME on F27.
1. sudo dnf install maven
2. echo $JAVA_HOME returns
/usr/lib/jvm/java-9-openjdk-9.0.0.181-7.fc27.x86_64 (which includes bin
dir with JDK tools such as javac, keytool etc so it is JDK for sure)
3. Any mvn command re
19 matches
Mail list logo