Present perfect simple:
If an action is still going on and we want to express that it is a permanent situation.
James has lived in this town for 10 years.
(Meaning: He is a permanent resident of this town.)
Present perfect continuous:
For temporary situations, we would prefer the Present Perfect Progressive.
James has been living here for a year.
(Meaning: This situation is only temporary. Maybe he is an exchange student and only here for one or two years.)