默认Maven的Settings.xml

恢复Maven默认的Settings.xml

最近在编译最新的Hive代码的时候,总是报不能找到javax.el这个jar包,最后定位到问题是我本地配置了公司的Maven私服,但是私服中找不到对应版本的jar导致。因此,用默认的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>
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容