CircleCI-Public / maven-orb

Simplify common tasks for building and testing Java projects using Maven on CircleCI.
https://circleci.com/orbs/registry/orb/circleci/maven
MIT License
6 stars 12 forks source link

Provide examples how to launch with several JDKs #15

Closed apupier closed 3 years ago

apupier commented 4 years ago

Is your feature request related to a problem? Please describe.

it is mentioned that executors have tag parameter https://circleci.com/developer/orbs/orb/circleci/maven#executors but it doesn't provide an example on how to use it. Especially when trying to laucnh against several jdks.

Describe the solution you'd like

a new example in https://circleci.com/developer/orbs/orb/circleci/maven#usage-examples

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context I'm unable to configure it so cannot provide a Pull Request :'(

neirfeno commented 3 years ago

@apupier I have just spent an hour or so trying every combination under the sun for this, finally hit the right config:

workflows:
  maven_test:
    jobs:
      - maven/test:
          executor:
            name: maven/default
              tag: "14.0"

I found this from an example that was name: docker/docker and running it complained that there was no orb "docker", so it seems that the x/y format is <orb>/<value>. Since the name is "default", I guessed at this format.

Unfortunately it seems that most of the Orb based documentation is focused around creating new Orbs rather than consuming them.

Anyway, hope this helps you out.