차근차근/Spring

pom.xml 에 jackson 추가 중 에러

예쁜꽃이피었으면 2022. 1. 10. 16:07
<!-- jackson -->
		<dependency>
			<groupid>com.fasterxml.jackson.core</groupid>
			<artifactid>jackson-core</artifactid>
			<version>2.11.3</version>
		</dependency>
		<dependency>
			<groupid>com.fasterxml.jackson.core</groupid>
			<artifactid>jackson-databind</artifactid>
			<version>2.11.3</version>
		</dependency>
		<dependency>
			<groupid>com.fasterxml.jackson.core</groupid>
			<artifactid>jackson-annotations</artifactid>
			<version>2.11.3</version>
		</dependency>

에러1 ]

cvc-complex-type.2.4.a

: Invalid content was found starting with element '{"http://maven.apache.org/POM/4.0.0":groupid}'. 

One of '{

"http://maven.apache.org/POM/4.0.0":groupId, 

"http://maven.apache.org/POM/4.0.0":artifactId, 

"http://maven.apache.org/POM/4.0.0":version, 

"http://maven.apache.org/POM/4.0.0":type, 

"http://maven.apache.org/POM/4.0.0":classifier,

"http://maven.apache.org/POM/4.0.0":scope, 

"http://maven.apache.org/POM/4.0.0":systemPath,

"http://maven.apache.org/POM/4.0.0":exclusions, 

"http://maven.apache.org/POM/4.0.0":optional}' is  expected.

 

에러2 ]

Multiple annotations found at this line:
- Project build error: 'dependencies.dependency.groupId' for null:null:jar is 
 missing.
- Project build error: 'dependencies.dependency.artifactId' for null:null:jar is 
 missing.

 

-> 원인을 모르겠다 

https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core

여기에서 

jackson-core

jackson-databind

jackson-annotations

이거 검색해서 필요한 버전으로 붙여넣었다.. 그랬더니 에러 사라짐.

반응형