A border war with Peru that flared in 1995 was resolved in 1999 .