People were complaining that Star Trek had become too similar to Star Wars back when Wrath of Khan
was released. See: "Indiana Skywalker Meets the Son of Star Trek" in Best of Trek #7
Any resemblences story-wise are superficial. Kirk being raised on a farm? That goes back to The Original Series, before Star Wars was a twinkle in George Lucas' eye. WMD's? Villains with grudges? Action sequences? Fights? All staples of action movies, no matter if they're set on earth or deep space.