IDEA 警告 No archetype found in remote catalog. Defaulting to internal catalog
新建Maven項目,遇到警告:
No archetype found in remote catalog. Defaulting to internal catalog
Archetype not found in any catalog. Falling back to central repository.
Add a repository with id ‘archetype’ in your settings.xml if archetype’s repository is elsewhere.
報錯原因:從2020年1月15日開始,中央存儲庫不再支持通過純HTTP進行的不安全通信,並且要求對存儲庫的所有請求都通過HTTPS進行加密。
解決辦法:
將http轉換為https即可訪問,https://repo1.maven.org/maven2/archetype-catalog.xml
等待頁面加載完 另存為archetype-catalog.xml放到maven倉庫
打開Idea,點擊Configure --> Settings,在Runner頁面的VM Options添加:-DarchetypeCatalog=local,點擊Apply,點擊OK。

