title: new grails 3 intellij project "Content is not allowed in prolog"
body: <p>A brand new, empty grails 3.2.8 project.  Intellij does its gradle thing and comes up with an error "Content is not allowed in prolog".  What is going on? What content, what prolog?  There is nothing under the Gradle tab, the grails-app structure is there in the project, but no Grails under the Tools tab.  What is going on?  Why can't Intellij build an empty project? How do I get around this?</p>
  
  <p>Update - by running the cmd "grailsw --stacktrace compile" I see the following, does this provide a clue?  (Just the start of the stacktrace is shown).</p>
  
  <pre><code>Error initializing classpath: Content is not allowed in prolog. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
  org.xml.sax.SAXParseException; systemId: file:/C:/Users/Jay/.gradle/caches/modul
  es-2/files-2.1/org.springframework/spring-core/4.3.7.RELEASE/7beb5752c6d33f3d112
  6fba306d0554c24b735d7/spring-core-4.3.7.RELEASE.pom; lineNumber: 2; columnNumber
  : 1; Content is not allowed in prolog.
          at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
  java:257)
          at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
  umentBuilderImpl.java:339)
          at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomRea
  der.parseToDom(PomReader.java:249)
          at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomRea
  der.access$100(PomReader.java:59)
          at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomRea
  der$2.transform(PomReader.java:137)
          at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomRea
  der$2.transform(PomReader.java:134)
          at org.gradle.internal.resource.AbstractExternalResource.withContent(Abs
  tractExternalResource.java:96)
  </code></pre>