Blocked Mirror for Repositories
Maven 3.8.1업데이트 되면서 발생하는 이슈

Maven은 이제 기본적으로 모든 안전하지 않은 http://* 미러를 비활성화한다고 함
공식문서 : http://maven.apache.org/docs/3.8.1/release-notes.html#cve-2021-26291
Maven – Release Notes – Maven 3.8.1
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apa
maven.apache.org
해결방법 >
사용자 Maven Wrapper 사용

settings.xml파일에 mirror관련 설정 추가
<settings xmlns="httpss://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="httpss://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>D:\workplace\setting\repository_0830</localRepository>
<interactiveMode>true</interactiveMode>
<offline>false</offline>
<mirrors>
<mirror>
<id>maven-default-http-blocker</id>
<url>http://127.0.0.1/dont-go-here</url>
<mirrorOf>dummy</mirrorOf>
<blocked>false</blocked>
</mirror>
</mirrors>
</settings>
정상 빌드 성공

/context관련 부분 확인하자... 그것 때문에 2시간 삽질....
jdk 버전확인 / tomcat버전확인 / properties 혹은 yml확인 / contextLoader관련 확인
+ ) Maven + Tomcat 실행 방법
- Server 탭에서 JDK등록(project structure)
- Application server에서 Tomcat등록
- JRE에서 JDK등록
- HTTP port입력
- Before launch에서 Build Project등록(war & war(exploded))
- Deployment 탭에서 war 및 war exploded 추가
- Application context 수정(특별히 설정되지 않았다면 빈칸으로 해야 한다.)
++ ) 실행 에러들
'cannot run program '/path/to/tomcat/bin/catalina.sh' error=13 permission
권한이 없어서 발생
chmod a+x /path/to/tomcat/bin/catalina.sh
로 권한 추가
com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException
war이 war과 war(exploded), 총 2개가 되어야 실행이 된다.
'Backend > IDE' 카테고리의 다른 글
[Gradle] Could not resolve all files for configuration ':classpath'. (0) | 2024.06.25 |
---|---|
[STS4] MacOS STS4설치 (0) | 2024.05.23 |
[STS] Updating Maven Dependencies 에러 & Git Merge Conflict 수행 (0) | 2024.04.08 |
[STS] import시 에러 (0) | 2024.03.27 |
[IntelliJ] IntelliJ 복구기능 (0) | 2024.03.13 |