恢復(fù)Maven默認(rèn)的Settings.xml
最近在編譯最新的Hive代碼的時候凫海,總是報不能找到j(luò)avax.el這個jar包冰沙,最后定位到問題是我本地配置了公司的Maven私服透罢,但是私服中找不到對應(yīng)版本的jar導(dǎo)致刨啸。因此获茬,用默認(rèn)的Settings.xml覆蓋原有的配置履恩。記錄下來锰茉,以備不時之需。
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<profiles>
<profile>
<repositories>
<repository>
<id> central</id>
<name> Maven Repository Switchboard</name>
<layout> default</layout>
<url> http://repo1.maven.org/maven2</url>
<snapshots>
<enabled> false</enabled>
</snapshots>
</repository>
</repositories>
<id>offical</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>offical</activeProfile>
</activeProfiles>
</settings>