Skip to content

Commit

Permalink
Add "snapshots" profile to .mvn/settings.xml
Browse files Browse the repository at this point in the history
It can be enabled in cases where you want to pull snapshot artifacts
from the OSS Sonatype snapshots repo.
  • Loading branch information
bertfrees committed Sep 21, 2023
1 parent 559b084 commit 6769bad
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .mvn/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,30 @@
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>snapshots</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<name>OSS Sonatype repo (snapshots)</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>central-https</activeProfile>
<!-- <activeProfile>snapshots</activeProfile> -->
</activeProfiles>
</settings>

0 comments on commit 6769bad

Please sign in to comment.