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
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