For decades, northern Maine and New Brunswick have relied on each other for business, power and community ties.