Minimum pom.xml Datei für neue Maven / Spring MVC Projekt

Ich bin völlig neu auf Maven und Spring MVC. Was ich Suche zu tun, ist die Einrichtung eines neuen Spring-MVC-Projekt mithilfe von Maven (hoffentlich wird dieser Satz macht Sinn), und führen Sie meine web-Anwendung auf Tomcat mit Eclipse.

Ich bin nach dem tutorial unter diesem link und ich habe ein problem mit der pom.xml Datei:

Dem tutorial fordert Sie zum erstellen der Ordner-Struktur, und erstellen Sie eine pom.xml Datei. Für Vorspeisen Sie zu bitten, setzen Sie diese Zeile in pom.xml:

xml 4.0.0org.springsource.greenbeans.mavenexample11.0-SNAPSHOTOur Simple Project

Aber wenn ich das Tue, ist meine Eclipse gibt eine Fehlermeldung aus:

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project  (D:\projectName\pom.xml) has 1 error
[ERROR]     Non-parseable POM D:\projectName\pom.xml: only whitespace content allowed before start tag and not ` (position: START_DOCUMENT seen `... @1:1)  @ line 1, column 1 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException

Irgendeine Idee, was der richtige minimum pom.xml könnte das sein? Ich habe versucht, viele Dinge, aber es funktionierte nicht für mich...

InformationsquelleAutor Myna | 2013-12-20

Schreibe einen Kommentar