A civil complaint challenging the town’s issuance of a building permit to Emera Maine for an electrical substation on Woodbury Road has been filed in Hancock County Superior Court.