I've always seen Starfleet as a military. In fact, it seems completely obvious given the propensity for Starfleet to act like a military in most every way, up to and including the use of military force. During the depictions of military conflict, Starfleet is shown to act as the Federation's military arm. So I never understand why at points in the different movies and series a certain insistence at times for characters to view Starfleet as a military, while most of the time characters will even refer to themselves as soldiers rather than diplomats. I see the most resistance from Star Trek fans, though, so I am curious to see where this resistance comes from.