mine were stuck really bad I tried the whacking the hub idea. and the screwdriver idea and all sorts of other stuff as well. pb blast, wd 40, finally I tried hitting the stud with a brass drift with the nuts on enough to protect the threads and to keep the washers on if they did come off and with one hit to each stud with a 2.5 lb small sledge. a light tap was all it took and each one came off no problem. and that's the way I have done it every time since then. also use anti seize on the cones for easy removal. the hitting the hub thing is not a good idea since it can deform the hub and ding it all up like mine are now they look like crap. anti seize the cones and thread lock the nuts and the next time they will come right off.
the first time mine hadn't been removed for 20 years so they were in bad shape as far as the cones went. they were rusted to the studs.