Make the changes you need inside the nuxeo WAR file, then you can rebuild the WAR file with eclipse or any other java editor.
When nuxeo restarts, it reads the WAR file. This is why your changes are not persistent.