美文网首页
默认Maven的Settings.xml

默认Maven的Settings.xml

作者: BIGrey | 来源:发表于2017-12-10 23:48 被阅读0次

恢复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>

相关文章

网友评论

      本文标题:默认Maven的Settings.xml

      本文链接:https://www.haomeiwen.com/subject/casbixtx.html