Description of problem: In JBoss Managment Console,we can add a deployment (add to deployment repository) then assign it to different server-groups,but under cli mode,it can't be done duo to 'xxx' already exists in the deployment repository. Steps to Reproduce: 1.start jboss eap with domain mode,and enter into cli mode. 2.[domain@localhost:9999 /] deploy /path/to/test.war --name=test --runtime-name=test --server-groups=group1 3.[domain@localhost:9999 /] deploy /path/to/test.war --name=test --runtime-name=test --server-groups=group2 Actual results: Can't deploy,error shows 'test' already exists in the deployment repository (use --force to replace the existing content in the repository). Expected results: can deploy successfully. Additional info: I know the --name should keep unique,but if use different name,two same deployments will be added into repository,that's not customer's expectation.So there is no way to deploy/assign the same test.war to other server groups via jboss cli.