Skip to content
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

Failed to compile java11 source #3742

Closed
1 of 3 tasks
aucfan-makise opened this issue Apr 25, 2019 · 9 comments
Closed
1 of 3 tasks

Failed to compile java11 source #3742

aucfan-makise opened this issue Apr 25, 2019 · 9 comments

Comments

@aucfan-makise
Copy link

Summary

buildPack: maven-java11 is specified in jenkins-x.yaml but gcr.io/jenkinsxio/builder-maven is used as containers' image.

Steps to reproduce the behavior

jx create spring -d web -d actuator -j 11

Expected behavior

builder-maven-java11 is used to build.

Actual behavior

Build failed.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project spring-test: Fatal error compiling: invalid target release: 11 -> [Help 1]

I have checked the created task and found that builder-maven is used as containers' image.

Jx version

The output of jx version is:

jx                 2.0.41
Kubernetes cluster v1.11.8-eks-7c34c0
kubectl            v1.14.0
git                git version 2.17.2 (Apple Git-113)
Operating System   Mac OS X 10.13.6 build 17G6030

Jenkins type

  • Next Generation (Tekton + Prow)
  • Classic Jenkins
  • Serverless Jenkins (JenkinsFileRunner + Prow)

Kubernetes cluster

EKS

Operating system / Environment

OS X

@pmuir
Copy link
Contributor

pmuir commented Jun 27, 2019

/area buildpacks
/kind bug
/priority backlog

@babadofar
Copy link

The quickstart for java-11 fails due to this
jenkins-x-buildpacks/jenkins-x-kubernetes#69

@babadofar
Copy link

A workaround for this is to define the jenkins-x.yml like this

buildPack: maven-java11
pipelineConfig:
  agent:
    image: maven-java11

@RafalKorepta
Copy link

@jstrachan Maybe build pack for java 11 could have container set up to maven-java11 as per jenkins-x-buildpacks/jenkins-x-kubernetes#16? I'm not sure why there was need for consolidation in jenkins-x-buildpacks/jenkins-x-kubernetes@6cd979b.

joostvdg added a commit to joostvdg/jenkins-x-kubernetes that referenced this issue Jan 10, 2020
The image used was still Java 8, meaning, you couldn't build Java 11 applications with this build pack.

As raised via this issue: jenkins-x/jx#3742
joostvdg added a commit to joostvdg/jenkins-x-kubernetes that referenced this issue Jan 10, 2020
The image used was still Java 8, meaning, you couldn't build Java 11 applications with this build pack.

As raised via this issue: jenkins-x/jx#3742

Signed-off-by: Joost van der Griendt <[email protected]>
Indy79 added a commit to Indy79/contracts that referenced this issue Jan 28, 2020
@jenkins-x-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

@jenkins-x-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten

@jenkins-x-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

@jenkins-x-bot
Copy link
Contributor

@jenkins-x-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants