At least some of these instances of the phrase—in the context of the poem, which is the last on in this edition of the book—clearly allude to the meaning "farewell." This is five years earlier than the earliest example of "so long" in the sense of "goodbye" that the OED cites, according to Barrie England's answer. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.