-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby Maven Compilation Error : No compiler is provided in this environment #6
Comments
could you please add
to see more what is going on. ruby-maven comes with its own maven version which is 3.1.1 (same as yours). but it looks like there is a missing "," in your script, try this: |
This problem occurs on configuration of the eclipse, see that post, but i dont use eclipse. I'm try run this script: mvn = Maven::Ruby::Maven.new Occurs that: mvn debug= true mvn install -f pom.xml |
hmm, which version of ruby-maven are you using ? just two observations: remove the mvn.debug line in your script. there is a space in path to your project - well it is a long shot but more questions:
|
which version of ruby-maven are you using ?
just two observations: remove the mvn.debug line in your script.
does
what does I think the problem is this line: |
is javac.exe on your PATH variable ? you also can try setting -Dmaven.compiler.fork=true |
is javac.exe on your PATH variable ? you also can try setting -Dmaven.compiler.fork=true
|
the debug of maven basically says that it looks javac on the environment. inside your script you can do this:
On Tue, Dec 23, 2014 at 6:07 PM, mbnetobr notifications@github.com wrote:
|
Use Build Sucess, thanks :) 👍 |
still unsure why, but I do not have a windows to investigate further. so I |
I'm investigate more and return later. Please dont close this issue. |
The problem occurs because my machine has a incorret JRE installed. On Windows terminal when i'm execute: I'm dont know but ruby maven catch wrong version of the JRE on my machine. My machine is 64bits and the JRE installed was 32bits. So i'm remove JRE7 (32bits) on control painel of the windows and install the correct version to my machine, JRE7 (64bits). After that when i'm execute, rmvn --version, terminal returns: In my case is necessary Java home configured to JRE inside of the JDK version. After this process i dont have more problems. So thanks. |
Hi guys,
I'm try use ruby maven to write some scritps with ruby and maven. When i'm execute
this short script:
require 'maven/ruby/maven'
mvn = Maven::Ruby::Maven.new
mvn.exec('install', '-f' '.myProject/pom.xml' )
I'm receive this error message:
[ERROR] COMPILATION ERROR
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] BUILD FAILURE
My Java_Home is correct setted. The pure command "mvn install" on project diretory works normally and occurs build sucess. But i'm need call maven inside ruby script.
My environment:
Windows7 Professional 64x
Ruby 193;
Maven 3.1.1 MAVEN_HOME = C:\apache-maven-3.1.1
Java 1.7.0_51; JAVA_HOME = C:\Program Files\Java\jdk1.7.0_51
The text was updated successfully, but these errors were encountered: