0
I set up Jenkins to "build" a project from a git repository, I’m using Maven:
Warning: JAVA_HOME Environment variable is not set. Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T08:57:37-03:00) Maven home: /opt/Maven Java version: 1.7.0_95, vendor: Oracle
Corporation Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre
Default locale: en_US, Platform encoding: UTF-8 OS name: "linux", version: "2.6.32-573.el6.x86_64", Arch: "amd64", family: "Unix"
I tried to run "setando" also to JAVA_HOME:
[root@centos64 ~]# mvn -version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T08:57:37-03:00)
Maven home: /opt/maven
Java version: 1.7.0_95, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.el6.x86_64", arch: "amd64", family: "unix"
When I run the build by Jenkins the build wheel is incomplete:
When I run through the terminal it happens correctly:
In both cases the build is successfully completed.
I don’t know exactly what’s going on.
Did you set the environment variable JAVA_HOME on linux? From what I understood you "set" the JAVA_HOME in the configuration of Maven
– adelmo00
I ran export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre then export PATH=$PATH:$JAVA_HOME/bin
– Edson Cezar