Skip to content

Ruby Maven Compilation Error : No compiler is provided in this environment #6

@mbnetobr

Description

@mbnetobr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions