title: After importing an empty repo to IntelliJ, how to create a maven project under the branch?
body: <p>I'm new to Maven and Gitlab, been messing around all day with it now. So here's what I did:</p>
  
  <ul>
  <li>created a new project repo in Gitlab, pushed two files in master branch (Read.me and another json file), created dev branch for this repo;</li>
  <li>Went back to Intellij, Imported this repo via 'Project from version control', I wanted to do some testing for a Maven plugin in an existing pom file, so I copied that pom file in this project folder, but pom.xml appearing in red, and when I tried to create a Java class file, it also appearing in red, I really don't know what to do now. </li>
  </ul>
  
  <p>Is it because I didn't create a Maven project in this folder so IntelliJ don't recognize the pom file and java file? I tried to create a new project but this new one has nothing to do with my new-added repo in Gitlab. Can someone tell me what to do? Many thanks.</p>
  
  <p>If this is not the proper way to do this, what is the better way to do this in a more sensible and easier way?</p>