Nexus can't find artifact that is in Maven Central(SNAPSHOT)

Nexus can't find artifact that is in Maven Central(SNAPSHOT)

 

 

        Because SNAPSHOT is used, it is necessary to open the automatic download profile, so that for the newly generated SNAPSHOT version, maven will automatically download it, and there will be no problem that SNAPSHOT cannot be automatically downloaded.

 

        <snapshots><enabled>true</enabled></snapshots> 

 

<settings>
  <mirrors>
    <mirror>
      <!--This sends everything else to /public -->
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>http://THE_URL:8080/nexus/content/groups/public</url>
    </mirror>
  </mirrors>
  <servers>
    <server>
      <id>admin</id>
      <username>user</username>
      <password>password</password>
    </server>
  </servers>
  <profiles>
    <profile>
      <id>nexus</id>
      <!--Enable snapshots for the built in central repo to direct -->
      <!--all requests to nexus via the mirror -->
      <repositories>

        <repository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>

      </repositories>
     <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>nexus</activeProfile>
  </activeProfiles>

</settings>

 

refer to:

http://stackoverflow.com/questions/17389085/nexus-could-not-find-artifact

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326944212&siteId=291194637