-
Notifications
You must be signed in to change notification settings - Fork 0
Working With SNAPSHOTS
Tom Lipkis edited this page Nov 5, 2022
·
5 revisions
Development snapshots of LOCKSS components and tools are created as new features mature or at other significant development milestones. They have SNAPSHOT version numbers which change only when official releases are created, but they're typically updated many times between official releases, reusing the same version numbers. They're stored in a Sonatype Maven repository, which Maven doesn't know about by default.
runcluster runs these versions by default, and some wiki pages may contain instructions to run SNAPSHOT versions of tools. runcluster knows where to find them, but some one-time setup is needed before they can be used to build plugins, or in order to work with LOCKSS development branches.
Either:
- Run laaws-dev-scripts/bin/bootstrap-snapshots to install the common parent POM which defines the Sonatype repository, or
- Add the following to your
~/.m2/setting.xml
:
<profiles>
<profile>
<id>ossrh-snapshots</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>ossrh-snapshots</id>
<name>Sonatype OSSRH Snapshots</name>
<url>https://oss.sonatype.org/service/local/repositories/snapshots/content</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>ossrh-snapshots</id>
<name>Sonatype OSSRH Snapshots</name>
<url>https://oss.sonatype.org/service/local/repositories/snapshots/content</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>