For details on how to upgrade please review the user guide:
http://docs.geotools.org/latest/userguide/welcome/upgrade.html