Home > Back-end >  Springboot created helloworld packaging error
Springboot created helloworld packaging error

Time:09-25

[the INFO] Scanning for the projects...
[ERROR] [ERROR] Some of the problems were encountered while processing the POMs just:
[ERROR] Invalid packaging for the parent POM org. Springframework. The boot: spring - the boot - starter - web: 2.1.2. RELEASE, must be "POM" but is "is the jar" @ org. Springframework. The boot: spring - the boot - starter - web: 2.1.2. RELEASE
@
[ERROR] The build could not read 1 project - & gt; [1] Help
[ERROR]
[ERROR] The project com. Ats: springboot - 01 - The helloworld: 1.0 The SNAPSHOT (G: \ ideacode \ springboot01helloworld \ pom XML) from 1 ERROR
[ERROR] Invalid packaging for the parent POM org. Springframework. The boot: spring - the boot - starter - web: 2.1.2. RELEASE, must be "POM" but is "is the jar" @ org. Springframework. The boot: spring - the boot - starter - web: 2.1.2. RELEASE
[ERROR]
[ERROR] To see the full stack trace of the errors, re - run Maven have 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, both please read the following articles:
[ERROR] [1] Help http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException


Found on the web & lt; Packaging> Pom

CodePudding user response:

 
[ERROR] Invalid packaging for the parent POM org. Springframework. The boot: spring - the boot - starter - web: 2.1.2. RELEASE, must be "POM" but is "is the jar" @ org. Springframework. The boot: spring - the boot - starter - web: 2.1.2. RELEASE

Problem said clearly, project need is pom packaging of spring - the boot - starter - web, rather than the jar package

So you are not inherited the father of the error when building project engineering? Father engineering should be spring - the boot - starter - the parent

CodePudding user response:

<? The XML version="1.0" encoding="utf-8"?>
XMLNS: xsi="http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" & gt;

4.0.0 & lt;/modelVersion>
Com. At
Springboot - 01 - helloworld
1.0 - SNAPSHOT


org.springframework.boot
Spring - the boot - starter - web
2.1.2. RELEASE




org.springframework.boot
Spring - the boot - starter - web







org.springframework.boot
Spring - the boot - maven - plugin





Would you look at this is my pom. The inside of the XML I don't know much just learning bother advice thank you

CodePudding user response:


org.springframework.boot
Spring - the boot - starter - parent
2.1.3. RELEASE







?? Try??
  • Related