From our discussion on what items to store for barter, coffee was listed a few different time. So I researched the best way to store coffee for a long time. I figured that storing beans would be best because I know that once ground the coffee starts losing flavor right away. Well as it turns out Modern survival has an article that tells us that yes we should store the coffee in bean form but evidently we need to store green coffee beans and then roast them to taste as needed. Check out the article, I found it pretty interesting.
Green Coffee Beans for Long Term Storage