私の知る限り、次の例として、 NexusからダウンロードするようにMavenを構成a bogus URL
するで言及されているものです:-
<settings>
<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>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
はのnexus profile
からダウンロードするように設定されてcentral repository
いa bogus URL
ますhttp://central
。
この URLは、同じファイルのミラー設定によってオーバーライドされ、 . nexus グループは、activeProfiles 要素にアクティブなプロファイルとしてリストされます。settings.xml
single Nexus group
これが役立つことを願っています。