maven - Java 8 import cannot be resolved when executing with CircleCI -


i have java 8 project, built maven. i'm using circleci continuous integration, , following error message during build:

import java.util.function.consumer;        ^^^^^^^^^^^^^^^^^^ import java.util.function cannot resolved 

i have:

<source>1.8</source> <target>1.8</target> 

in maven-compiler plugin. when run build locally, mvn clean install, or mvn integration-test, executed in circleci, no errors.

is there problem when using circleci java 8 project?

the project source can found here: https://github.com/verjigorm/dragonpunch.git

edit: had @ links suggested below, , fixed build adding:

machine:   java:     version:       oraclejdk8 

to circle.yml file.

just because specify want use java 8 in pom file not mean it's going available.

according circle documentation, default oraclejdk7 java runtime. you'll have specify supports java 8, oraclejdk8 instead.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -