[ 
https://issues.apache.org/jira/browse/MCOMPILER-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430867#comment-15430867
 ] 

James Wen commented on MCOMPILER-274:
-------------------------------------

Hi, we're the Cloud Foundry Buildpacks team and we've encountered this issue 
(with almost the exact same error trace at the end as the original submitter) 
as well. We encountered it while trying to use our binary builder tool 
(https://github.com/cloudfoundry/binary-builder) to build jruby 9.1.2.0.

It uses maven `3.3.9`, ant `1.9.7`, and openjdk-7 from the trusty ubuntu apt 
repo (version `7u111-2.6.7-0ubuntu0.14.04.3`).

It will try to install openjdk via apt-get, build and compile ant and maven, 
and then use maven to try to build jruby.

Reproduction:
```
git clone g...@github.com:cloudfoundry/binary-builder.git
cd binary-builder
docker run -it -v $(pwd):/binary-builder bash
cd /binary-builder
./bin/binary-builder --name=jruby --version=9.1.2.0_ruby-2.3.0 
--sha256=dfd44f532105725a4d4a2378a3b6a06899bae660be21538a5b36b41e4dd045e6
```

We've also attached the full error log after switching maven to try and build 
jruby with the `-X` flag enabled.

> "Compilation failure" message should say what actually went wrong
> -----------------------------------------------------------------
>
>                 Key: MCOMPILER-274
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-274
>             Project: Maven Compiler Plugin
>          Issue Type: Improvement
>    Affects Versions: 3.1, 3.5.1
>            Reporter: Trejkaz
>         Attachments: out.txt
>
>
> I tried to build jruby 9.0.5.0, which uses Maven to run the build. It fails 
> to compile, but gives me a useless error message:
>     [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) 
> on project jruby-core: Compilation failure -> [Help 1]
> When compilation fails, Maven should tell me what actually went wrong, so 
> that I can fix it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to