小编Din*_*esh的帖子

Sonatype Nexus:如何在maven的settings.xml中为多个存储库设置单个服务器凭据?

我们在Nexus中有多个存储库(即版本,快照和站点).所有3个存储库都在公共组下,用户使用相同的凭据访问所有这些存储库.在settings.xml中为每个存储库提供相同的用户名和密码会使其变得多余且难以维护.

您能否建议一种优雅的方式来描述所有3个存储库的一个服务器凭据?

任何帮助是极大的赞赏.

我们使用的是maven 2.2.1和Nexus OSS 2.7.1

这是我的settings.xml

<settings>    
<servers>   
<server>   
    <id>snapshot</id>   
    <username>deployment</username>   
    <password>deployment123</password>      
</server>  
<server>   
       <id>release</id>   
       <username>deployment</username>  
       <password>deployment123</password>      
</server>  
<server>  
      <id>site</id>  
      <username>deployment</username>  
      <password>deployment123</password>   
</server>  
 </servers>  
  <mirrors>  
    <mirror>  
      <!--This sends everything else to /public -->  
      <id>nexus</id>  
      <mirrorOf>*</mirrorOf>  
      <url>http://localhost:8081/nexus/content/groups/public</url>  
    </mirror>  
  </mirrors>  
  <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> …
Run Code Online (Sandbox Code Playgroud)

nexus sonatype maven

8
推荐指数
1
解决办法
1万
查看次数

选择2加载远程数据示例不起作用

这个例子根本不起作用..有人可以在jfiddle中创建这个????

这是示例站点. https://select2.github.io/examples.html非常 感谢您的帮助!

在此输入图像描述

jquery-select2

5
推荐指数
1
解决办法
1万
查看次数

Dart/Flutter:build_value 与 json_serializable

想知道 dart 库build_valuejson_serializable之间有什么不同?

两者似乎都在做同样的事情。

serialization json dart flutter

5
推荐指数
1
解决办法
430
查看次数

标签 统计

dart ×1

flutter ×1

jquery-select2 ×1

json ×1

maven ×1

nexus ×1

serialization ×1

sonatype ×1