Change tag parameter of default executor on orbs maven

I’m new in circleci and I’m not familiar with syntax of yaml file.

I’m trying to build project by maven. so I’m using default yaml file given here

I found that orbs circleci/maven use 13.0 version as default, here
But I want to use java 14 version.

so I tried some.

orbs:
  maven: circleci/maven@0.0.12

workflows:
  maven_test:
    jobs:
      - maven/test: # checkout, build, test, and upload test results
          executor:
            tag: 14.0.1

Error calling workflow: ‘maven_test’
Error calling job: ‘maven/test’
Unexpected executor invocation format
The value of name must be a string
Examples of correct executor invocation:
executor: string-executor-name
executor: {name: string-executor-name}
executor: << parameters.executor-type-parameter >>

orbs:
  maven: circleci/maven@0.0.12

workflows:
  maven_test:
    jobs:
      - maven/test: # checkout, build, test, and upload test results
          executor:
            name: maven/default
            tag: 14.0.1

Error calling workflow: ‘maven_test’
Error calling job: ‘maven/test’
Cannot find a definition for executor named maven/default

Could you help me?

2 Likes

I found the reason!! Second trial was right.

orbs:
  maven: circleci/maven@1.0.12 # version 0.0.12 =>  1.0.3(latest)

I got is problem because of given code from circleci was old version of orb maven
I got this code from “Set Up Project” function

version: 2.1

orbs:
  maven: circleci/maven@0.0.12 # <== wrong version

workflows:
  maven_test:
    jobs:
      - maven/test # checkout, build, test, and upload test results
1 Like

My big problem is reading 1.0.3 version document while using 0.0.12 version.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.