#1 is the default and preferred use case.
#2 Could be tricky, as the file permission will be changed and you need to make sure, the jboss-as CLI for example is able to undeploy it fully afterwards. But again, this is not ideal case, because the system wide service should be used for "production" deployments, not development.