Maven 开启SNAPSHOT

2022-02-22  本文已影响0人  InGramViking

Maven默认不拉取快照包,需要添加以下配置:

  <profiles>
    <profile>
      <id>OpenSNAPSHOT</id>
      <repositories>
        <repository>
          <id>nexusshot</id>
          <name>Repository for Snapshot</name>
          <url>https://nexus.example.com/repository/maven-public/</url>
          <releases>
              <enabled>true</enabled>
          </releases>
          <snapshots>
              <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>OpenSNAPSHOT</activeProfile>
  </activeProfiles>
上一篇 下一篇

猜你喜欢

热点阅读