I accepted a job a few months ago with a large company and it has become apparent that my boss does not like me. I could try to identify things that I have done but even at the interview stage I felt like I had a frosty reception. My boss was late to the interview and I was left to stew for nearly 30 mins. The interview did not last long - about 30 mins - it seemed like a rubber stamp exercise and the offer came through quickly.
On joining the company I was thrown into some work though it later transpired this was low priority stuff. Not surprising really but it continued that way and somebody who joined at the same time was given a big project even though he was less senior. He and others who had not been around too much longer had their responsibilities expanded and were given treats for various bits of work. Every project I got the results were rarely used and my boss never talked to me about work or anything else. I made efforts to converse with him at lunch but he largely did not engage and rarely smiled at what I said even when I was funny - he seemed to be trying not to. On completing a more significant amount of work a while ago, it has still not been used and it is now clear it will probably not be needed for months. Colleagues also got invited to company events. I never received emails about that or invitations to informal social gatherings only hearing about it later. In the corridor when walking past my boss he looks the opposite way.
Now it's got to the stage where work has dried up completely and when I asked for something to do all I got was a menial task. The entire time I have been here I have never worked as part of a team unlike others who work in small groups, always alone, always ignored by the boss and on nothing important in stark contrast to others. My colleagues are friendly enough but I've noticed some have distanced themselves from me recently. I know that I openly disagreed with my boss a couple of times about a technical issue and was the odd one out on the team - everybody else agreed with something that I felt was just wrong. I probably struggled to articulate myself effectively as well as I was new and had no support. I feel I burned my bridges and am now being punished/neutralised but I was just sticking to my principles.
So how should I go about repairing my career and avoiding these problems in the future, I am not a good fit for this role and the company is not giving me a soft landing out the door. I have not asked for an exit process either as this seems risky. Everybody here seems to agree not to challenge each other's ideas and just use their own methods, there is no technical leadership it seems.