- service: maven
  command: mvn clean deploy -DdockerBuild=true
  encrypted_dockercfg_path: dockercfg.encrypted

- service: maven
  command: mvn clean install -DdockerBuild=true -DpushImage
  encrypted_dockercfg_path: dockercfg.encrypted

Use maven install instead of deploy
Use maven install instead of deploy
