You can add system properties directly in your standalone.xml file:
If you want to use the -D approach in the startup file, use 'jinfo' on the running process to figure out if the process even has the flag set on it. You may be setting it in the wrong place in the conf.
In the standalone.xml
<property name="environment" value="dev" />