[에러메시지]
schema_reference.4: Failed to read schema document 'https://maven.apache.org/xsd/maven-4.0.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
3시간동안 에러 해결하려고 구글링했는데
jre경로를 jdk로 변경해도 해결되지 않던게 pom.xml 에서 메이븐 plugin 소스
변경하니 해결되었다.
[해결방법]
해결 전 코드
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>4.0.0</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>
target/generated-sources/java
</outputDirectory>
<processor>
com.querydsl.apt.jpa.JPAAnnotationProcessor
</processor>
</configuration>
</execution>
</executions>
</plugin>
해결 후 코드
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven.source.plugin.version}</version>
<!--<executions>-->
<!--<execution>-->
<!--<id>attach-sources</id>-->
<!--<goals>-->
<!--<goal>jar</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
</plugin>
출처 : https://github.com/egineering-llc/gitflow-helper-maven-plugin/issues/99
pom.xml 앞에 있던 빨간 엑스아이콘이 사라짐!
'개발일기' 카테고리의 다른 글
JSP 쇼핑몰 수정사항 정리 (0) | 2020.02.28 |
---|