Open source communities frequently struggle with the famous Tragedy of the Commons problem. See the link for a description of the history and links to work.
There are, however, some recent ideas and associated research that have shown promise:
Commons-based peer production
Altruistic Punishment