<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by kl on Medium]]></title>
        <description><![CDATA[Stories by kl on Medium]]></description>
        <link>https://medium.com/@g632104866?source=rss-60252b8c8e97------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*iKSBirtZjPJzQ963.jpg</url>
            <title>Stories by kl on Medium</title>
            <link>https://medium.com/@g632104866?source=rss-60252b8c8e97------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:52:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@g632104866/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[kkRepo 1.0.0 Is Here: The First Stable Release of an Open-Source Nexus Alternative]]></title>
            <link>https://medium.com/@g632104866/kkrepo-1-0-0-is-here-the-first-stable-release-of-an-open-source-nexus-alternative-47b8083f8574?source=rss-60252b8c8e97------2</link>
            <guid isPermaLink="false">https://medium.com/p/47b8083f8574</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[kl]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 08:39:28 GMT</pubDate>
            <atom:updated>2026-08-27T08:39:28.446Z</atom:updated>
            <content:encoded><![CDATA[<p><em>R/CRAN repositories, Go hosted modules, database-backed UI themes, and an in-place upgrade path from 0.9.0.</em></p><p>After a long 0.x release series, kkRepo has reached an important milestone: <strong>kkRepo 1.0.0</strong> is now available as the project’s first stable release.</p><p>This is more than a version-number change. Version 1.0.0 establishes a stable release line for the repository, security, storage, migration, search, multi-replica coordination, and JVM/Native deployment foundations. It also adds R/CRAN repositories, completes the Go repository story with hosted modules, introduces selectable UI themes, and delivers several compatibility fixes requested by real users.</p><ul><li><strong>GitHub:</strong> <a href="https://github.com/klboke/kkRepo">github.com/klboke/kkRepo</a></li><li><strong>Release:</strong> <a href="https://github.com/klboke/kkRepo/releases/tag/v1.0.0">kkRepo 1.0.0</a></li><li><strong>Full changelog:</strong> <a href="https://github.com/klboke/kkRepo/compare/v0.9.0...v1.0.0">v0.9.0…v1.0.0</a></li></ul><h3>What is kkRepo?</h3><p>kkRepo is a community-driven, fully open-source, self-hosted artifact repository. It is designed as an open alternative for teams running into limitations or operational pain points with Sonatype Nexus Community Edition.</p><p>The project follows Nexus-compatible client protocols, permission concepts, and the familiar /repository/&lt;repo&gt;/... URL layout. It also provides migration tooling for repositories, artifacts, users, roles, and permissions, so existing client configuration and CI workflows can remain as unchanged as possible.</p><p>kkRepo now supports more than 20 repository formats and proxy types, including Maven, npm, PyPI, Go, Helm, Cargo/Rust, Dart/Pub, Composer/PHP, Terraform, Swift Package Registry, Ansible Galaxy, Conda, APT/Debian, Conan 2, Alpine/APK, R/CRAN, Hugging Face Models, Docker/OCI, NuGet, RubyGems, Yum, and Raw.</p><p>Each format supports hosted, proxy, or group repositories according to the boundaries of its official protocol.</p><h3>Why 1.0.0 matters</h3><p>Version 1.0.0 is kkRepo’s first stable release. It does not mean development is finished. It means the project now has a stable release process with explicit documentation for:</p><ul><li>database migration impact;</li><li>protocol compatibility changes;</li><li>upgrade and operational notes;</li><li>known behavior changes;</li><li>JVM and Native images and distribution archives.</li></ul><p>Existing 0.9.0 deployments can upgrade in place, while new installations can continue choosing between MySQL and PostgreSQL, JVM and GraalVM Native, and File, OSS, or S3-compatible blob storage.</p><h3>1. R/CRAN hosted, proxy, and group repositories</h3><p>Version 1.0.0 introduces complete R/CRAN-style hosted, proxy, and group repository support.</p><ul><li><strong>Hosted</strong> stores immutable private R source packages and generates deterministic PACKAGES.gz indexes.</li><li><strong>Proxy</strong> caches public CRAN-style mirrors, package indexes, source or binary packages, and archive paths.</li><li><strong>Group</strong> gives R clients one endpoint for private and public packages, with ordered members and snapshot-bound package resolution.</li></ul><p>Package coordinates are immutable. Retrying the same bytes is idempotent, while attempting to replace the same package and version with different bytes is rejected. Group indexes bind each package path to a specific member revision and checksum, preventing a later download from silently switching to a different source.</p><p>R repositories also integrate with cleanup policies, artifact scanning, multi-replica publication coordination, recovery, and shape-gated Nexus 3.94 migration. Compatibility coverage includes real R 4.5 and 4.6 clients, both supported databases, and large-data query-plan validation.</p><p>An R client can point directly to a kkRepo group:</p><pre>local({<br>  repos &lt;- getOption(&quot;repos&quot;)<br>  repos[&quot;KKRepo&quot;] &lt;- &quot;https://repo.example.com/repository/r-group&quot;<br>  options(repos = repos)<br>})</pre><p>Packages can then be installed normally:</p><pre>install.packages(<br>  &quot;acmepkg&quot;,<br>  repos = &quot;https://repo.example.com/repository/r-group&quot;,<br>  type = &quot;source&quot;<br>)</pre><p>The current hosted and group implementation is intentionally source-only and publishes .tar.gz packages plus PACKAGES.gz. Windows and macOS binary packages can still be cached transparently through an R proxy.</p><h3>2. Go hosted repositories complete the Go module workflow</h3><p>Previous kkRepo releases focused on Go proxy and group behavior. Version 1.0.0 adds full Go hosted repository support for private modules.</p><p>A trusted build can upload a validated module ZIP through the repository endpoint, Admin UI, or Components API. kkRepo publishes the canonical .mod, .info, and .zip assets in one database transaction, so another replica can never observe a partially published module version.</p><p>The hosted implementation validates module paths, versions, path-major suffixes, ZIP roots, case-folding conflicts, size limits, unsafe paths, and the module directive in go.mod. Repository write policies support deny, publish-once, and replace behavior for complete module versions.</p><p>Hosted modules work with existing Go proxy members through a unified group. The merged version list follows Go’s version rules, while @latest selection prefers releases, then prereleases, then pseudo-versions.</p><p>Clients only need to point GOPROXY to the group:</p><pre>go env -w GOPROXY=https://repo.example.com/repository/go-group/,direct</pre><p>Normal Go tooling continues to work:</p><pre>go list -m git.example.com/acme/payments@latest<br>go mod download git.example.com/acme/payments@v1.2.3<br>go mod verify</pre><p>Go hosted repositories also support cleanup, artifact scanning, optional download blocking, migration, and multi-replica-safe publication.</p><h3>3. Database-backed UI themes</h3><p>Admin, Browse, and sign-in pages can now share one selectable theme. Version 1.0.0 includes:</p><ul><li>kkRepo Original;</li><li>Indigo;</li><li>Ocean;</li><li>Sunset;</li><li>JFrog-inspired;</li><li>Nexus-inspired.</li></ul><p>The selected theme is stored in the shared database, keeping multiple application replicas consistent. Administrators can preview a theme before saving it, and invalid settings safely fall back to the default design.</p><p>Upgraded installations retain the existing kkRepo appearance unless an administrator explicitly chooses another theme.</p><h3>4. Configurable PyPI proxy index paths</h3><p>Many Python package indexes expose their PEP 503 index under /simple, but some upstreams use another path or place the index directly at the remote root. PyTorch package indexes are a common example.</p><p>PyPI proxy repositories now expose a configurable <strong>Remote Index Path</strong>:</p><ul><li>use /simple for PyPI and conventional indexes;</li><li>leave it empty when the configured Remote URL is already the index root;</li><li>use a custom path such as /api/simple when required by the upstream.</li></ul><p>For example, a PyTorch CPU proxy can use https://download.pytorch.org/whl/cpu/ as the Remote URL with an empty Remote Index Path. Client-facing URLs remain unchanged under /repository/&lt;repo&gt;/simple.</p><p>Existing PyPI proxies keep the previous /simple default after upgrading.</p><h3>5. Compatibility, upload, search, and UI fixes</h3><p>The release also includes several practical fixes:</p><ul><li>Maven release, snapshot, timestamped-snapshot, and version-level deletion from Browse now rebuilds the correct metadata coordinates.</li><li>PyPI hosted repositories accept metadata-heavy Twine multipart uploads through a bounded, configurable part-count limit.</li><li>MySQL component search no longer loses valid coordinates containing InnoDB stopwords such as com.</li><li>Browse upload forms are driven by repository capabilities, including Raw directories, per-file names, and multi-file controls where the format permits them.</li><li>NuGet and RubyGems retain strict single-file upload behavior.</li><li>Browse search navigation, format selection, side-panel scrolling, package-detail layout, and shared Admin/Browse scrollbar styling were refined.</li><li>Repository request routing now uses a deterministic, fail-closed protocol-handler SPI while preserving existing protocol behavior.</li></ul><h3>Core platform capabilities</h3><p>Beyond repository formats, kkRepo provides:</p><ul><li>Nexus repository, artifact, user, role, and permission migration;</li><li>Local, LDAP, and OIDC authentication;</li><li>anonymous access policies and fine-grained authorization;</li><li>permission-aware global component search;</li><li>CycloneDX SBOM generation and vulnerability scanning;</li><li>security policies, waivers, and optional download blocking;</li><li>cleanup policies across every supported repository format;</li><li>Prometheus metrics and Grafana dashboards;</li><li>MySQL or PostgreSQL metadata storage;</li><li>OSS, S3-compatible, or File blob storage;</li><li>JVM and GraalVM Native runtimes;</li><li>multi-replica deployment and shared coordination;</li><li>per-repository HTTP or SOCKS5 outbound proxies.</li></ul><p>The Native build typically becomes ready in about one second and uses less than 200 MB of memory.</p><h3>Try kkRepo 1.0.0</h3><p>With Docker and Docker Compose installed, start a local JVM and MySQL trial environment with:</p><pre>curl -fsSL https://raw.githubusercontent.com/klboke/kkrepo/main/scripts/quickstart.sh | bash</pre><p>Use PostgreSQL instead:</p><pre>curl -fsSL https://raw.githubusercontent.com/klboke/kkrepo/main/scripts/quickstart.sh | KKREPO_DATABASE_TYPE=postgresql bash</pre><p>Or switch to the multi-architecture Native image:</p><pre>curl -fsSL https://raw.githubusercontent.com/klboke/kkrepo/main/scripts/quickstart.sh | KKREPO_RUNTIME=native bash</pre><p>After startup, open:</p><ul><li><strong>Admin console:</strong> <a href="http://127.0.0.1:19090/admin/">http://127.0.0.1:19090/admin/</a></li><li><strong>User browser:</strong> <a href="http://127.0.0.1:19090/browse/">http://127.0.0.1:19090/browse/</a></li><li><strong>Health endpoint:</strong> <a href="http://127.0.0.1:19091/actuator/health">http://127.0.0.1:19091/actuator/health</a></li></ul><p>Create the initial Local/admin password in the UI on the first visit.</p><p>The quickstart environment uses File blob storage and is intended for local evaluation. Production deployments should use an independently managed MySQL or PostgreSQL database, OSS or S3-compatible blob storage, and deployment-specific encryption secrets.</p><h3>Container images and downloads</h3><p>JVM images:</p><pre>ghcr.io/klboke/kkrepo:1.0.0<br>ghcr.io/klboke/kkrepo:latest</pre><p>Native images:</p><pre>ghcr.io/klboke/kkrepo:1.0.0-native<br>ghcr.io/klboke/kkrepo:native-latest</pre><p>Security scanner:</p><pre>ghcr.io/klboke/kkrepo-scanner:1.0.0</pre><p>All release images support Linux AMD64 and ARM64. The GitHub Release also includes JVM archives, Native Linux archives for both architectures, and a combined SHA-256 manifest.</p><h3>Upgrading from 0.9.0</h3><p>Existing 0.9.0 MySQL and PostgreSQL deployments can upgrade in place through Flyway V49 and V50.</p><ol><li>Back up the relational database and blob store together.</li><li>Allow Flyway migrations to finish before serving application traffic.</li><li>Do not run mixed 0.9.0 and 1.0.0 application versions after applying the new schema.</li><li>Create new R/CRAN repositories explicitly; they are not created automatically.</li><li>Existing PyPI proxies continue using /simple unless a Remote Index Path is configured.</li><li>Existing Go proxy and group behavior remains unchanged until a hosted repository is explicitly created or added as a member.</li></ol><h3>What comes next</h3><p>From Maven, npm, and PyPI to Docker, Conda, APT, Conan, Alpine, R/CRAN, and Hugging Face Models, kkRepo is steadily building a genuinely open artifact repository that supports migration, object storage, and multi-replica deployment without depending on OrientDB or an embedded Elasticsearch instance.</p><p>If your team currently runs Nexus, the best way to help is to test kkRepo with real repositories, real package clients, and real CI workflows.</p><p>Compatibility reports and feature requests are welcome in <a href="https://github.com/klboke/kkRepo/issues">GitHub Issues</a>. If the project is useful to you, consider starring the repository, sharing feedback, or contributing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47b8083f8574" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nexus OSS Alternatives: Meet kkRepo, a Modern Open-Source Artifact Repository]]></title>
            <link>https://medium.com/@g632104866/nexus-oss-alternatives-meet-kkrepo-a-modern-open-source-artifact-repository-493834d8fa8e?source=rss-60252b8c8e97------2</link>
            <guid isPermaLink="false">https://medium.com/p/493834d8fa8e</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[self-hosted]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artifact-repositories]]></category>
            <dc:creator><![CDATA[kl]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 09:06:32 GMT</pubDate>
            <atom:updated>2026-08-24T09:06:32.411Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A Nexus-compatible path for teams that want relational metadata, object storage, multi-replica deployment, and migration without changing every build.</em></p><p>Artifact repositories are quiet infrastructure — until a release cannot resolve a dependency, a cache disappears, or an upgrade turns into downtime. Then every CI pipeline discovers the same dependency at once.</p><p>That is why a search for “Nexus OSS alternatives” is rarely about finding a longer feature checklist. Most teams already have years of repository names, package coordinates, permissions, CI credentials, and client configuration built around Nexus Repository. The real question is whether they can move without rebuilding that entire contract.</p><p>Nexus Repository remains a mature and capable product. At the time of writing, <a href="https://help.sonatype.com/en/usage-center.html">Sonatype’s Community Edition documentation</a> lists limits of 40,000 total components or 100,000 requests per day; when a deployment exceeds either limit, it cannot add new components until it returns below both. Sonatype also documents <a href="https://help.sonatype.com/en/high-availability-deployment.html">active-active high availability as a Pro capability</a>.</p><p>For teams that want a fully open-source, self-hosted path with a multi-replica architecture, those constraints create a useful design question: what would a Nexus-compatible repository look like if it were built around a relational database and object storage from the beginning?</p><p>Our answer is <a href="https://github.com/klboke/kkrepo">kkRepo</a>.</p><h3>What kkRepo is — and is not</h3><p>kkRepo is a community-driven artifact repository released under the Apache License 2.0. It is an independent implementation, not a fork of Nexus Repository, and it is not affiliated with or endorsed by Sonatype.</p><p>We use Nexus as a compatibility reference for client-visible behavior: paths, HTTP status and headers, metadata, checksums, permissions, and real client workflows. The goal is interoperability, not a reproduction of Nexus internals.</p><p>For supported non-Docker repositories, the primary client URL keeps the familiar /repository/&lt;repo&gt;/... shape. Docker and OCI use the standard Registry HTTP API V2 /v2/... entrypoint. Keeping the original hostname and repository names during cutover can therefore let many clients and CI jobs continue without a coordinated configuration rewrite.</p><p>kkRepo currently supports 16 mainstream format families: Maven, npm, PyPI, Go, Helm, Cargo/Rust, Dart/Pub, Composer/PHP, Terraform modules and providers, Swift Package Registry, Ansible Galaxy, Docker/OCI, NuGet, RubyGems, Yum, and Raw.</p><p>Not every format exposes every repository type or operation. Go support, for example, is read-oriented and currently covers proxy and group repositories, while Helm currently covers hosted and proxy. The <a href="https://github.com/klboke/kkrepo/blob/main/docs/en/compatibility-matrix.md">compatibility matrix</a> is the source of truth for hosted, proxy, group, publishing, browsing, and migration boundaries.</p><h3>The architectural bet: shared truth, replaceable nodes</h3><p>A repository replacement is not only a protocol question. It is also an operational question — especially at 2 a.m. kkRepo makes four deliberate choices.</p><ul><li><strong>Relational metadata.</strong> MySQL is the default, and PostgreSQL is supported. Repositories, components, assets, identities, permissions, sessions, tokens, audit records, migration state, locks, and coordination watermarks live in the shared database.</li><li><strong>Object storage for artifact bytes.</strong> Large blobs belong in OSS/S3-compatible storage. File storage remains available for local trials and tests, but it is not the recommended production default.</li><li><strong>Multi-replica correctness.</strong> A process-local cache may make a node faster, but it is never the only source of truth. Sessions and short-lived coordination state are shared; local caches are bounded and rebuildable.</li><li><strong>Protocol modules with black-box compatibility tests.</strong> Maven, npm, PyPI, Docker, and the other formats are separate protocol implementations. Client-visible behavior is compared against official specifications, real clients, and — in migration-sensitive areas — a Nexus reference instance.</li></ul><p>The result is an architecture in which application nodes are intended to be replaceable, while the relational database and blob store hold durable shared state.</p><h3>Migration is a product feature, not a one-off script</h3><p>The riskiest part of adopting an alternative is not starting an empty repository. It is moving the repository you already have.</p><p>kkRepo treats migration as a staged, inspectable workflow:</p><ol><li>Run a preflight against the source Nexus deployment and surface blocking incompatibilities.</li><li>Migrate security and configuration metadata, including users, roles, privileges, blob stores, and repository definitions where the source exposes enough information.</li><li>Sync repository metadata and artifact blobs. Hosted repositories are scanned by default; proxy cache migration is explicit because many teams prefer to refill caches from upstream.</li><li>Repeat incremental syncs before cutover. Completed work is skipped, and interrupted migration jobs can resume.</li><li>Move the original repository hostname to kkRepo while preserving repository names wherever the compatibility plan allows it.</li></ol><p>This is designed for a low-disruption cutover, not a magical guarantee. Password hashes, protocol tokens, masked proxy credentials, source-version differences, and unknown datastore shapes may require manual action. kkRepo intentionally fails closed when it cannot prove that migration is safe; it does not fabricate missing metadata or silently skip an incompatible source.</p><p>The <a href="https://github.com/klboke/kkrepo/blob/main/docs/en/nexus-migration-guide.md">Nexus migration guide</a> and <a href="https://github.com/klboke/kkrepo/blob/main/docs/en/migration-playbook.md">migration playbook</a> describe the current workflow and cutover checks.</p><h3>Is kkRepo the right Nexus OSS alternative for you?</h3><p>kkRepo may be a strong fit when:</p><ul><li>the formats and client operations you need are marked supported in the compatibility matrix;</li><li>you want an Apache-licensed, self-hosted repository without Community Edition-style usage limits;</li><li>you prefer relational metadata, object storage, and a multi-replica-friendly deployment model;</li><li>keeping Nexus-style paths and rehearsing an incremental migration matter more than reproducing every internal Nexus subsystem.</li></ul><p>It may not be the right fit when:</p><ul><li>you depend on a format, plugin, scheduled task, UI endpoint, or management API that kkRepo does not implement;</li><li>you need a vendor-backed enterprise support contract today;</li><li>you cannot run client compatibility, migration, backup/restore, security, and load tests before production cutover.</li></ul><p>That caveat is important: kkRepo is early-stage open-source software. It already contains production-oriented architecture and broad protocol coverage, but “alternative” does not mean “drop-in replacement for every Nexus installation.” Your own package mix and workflows are the acceptance test.</p><h3>A practical way to evaluate kkRepo</h3><p>Start with a local trial. The public quick-start launches the JVM image with MySQL and File blob storage:</p><pre>curl -fsSL https://raw.githubusercontent.com/klboke/kkrepo/main/scripts/quickstart.sh | bash</pre><p>For production, use your own secrets and OSS/S3-compatible storage, and review the <a href="https://github.com/klboke/kkrepo/blob/main/docs/en/production-hardening.md">production hardening guide</a>.</p><p>Then test the contract that matters to you:</p><ol><li>Create representative hosted, proxy, and group repositories.</li><li>Publish and resolve real packages with the exact client versions used in CI.</li><li>Compare status codes, headers, checksums, metadata, and authentication behavior against your current repository.</li><li>Run migration preflight on a copy or test instance before syncing any data.</li><li>Rehearse incremental sync, DNS or load-balancer cutover, rollback, backup, and restore.</li></ol><p>If you find a compatibility difference, open an issue with the client command and both HTTP behaviors. That evidence is more valuable than a generic feature request — and it is how compatibility gets sharper.</p><h3>Open infrastructure should leave room to evolve</h3><p>The best repository alternative is not the one that copies the most historical internals. It is the one that preserves the client contracts your teams rely on while giving operators a simpler, observable, and recoverable system.</p><p>That is the direction of kkRepo: Nexus-compatible at the edges, relational and object-storage-first at the core, migration-aware from day one, and open to the community.</p><p>Explore the <a href="https://github.com/klboke/kkrepo">source and documentation on GitHub</a>, try the compatibility matrix against your own workload, and tell us where the behavior differs. Contributions, migration reports, and real client traces are welcome.</p><p><em>Sonatype, Nexus, and Nexus Repository are trademarks of Sonatype, Inc. kkRepo is an independent open-source project and is not affiliated with, endorsed by, sponsored by, or connected to Sonatype, Inc.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=493834d8fa8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set Up a Maven Private Repository with kkRepo]]></title>
            <link>https://medium.com/@g632104866/set-up-a-maven-private-repository-with-kkrepo-6fb92b40ecd3?source=rss-60252b8c8e97------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fb92b40ecd3</guid>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[repositories]]></category>
            <category><![CDATA[nexus]]></category>
            <category><![CDATA[maven-central]]></category>
            <dc:creator><![CDATA[kl]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 02:19:45 GMT</pubDate>
            <atom:updated>2026-06-26T02:19:45.353Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxQg73n4aMclLwGWrLdu4w.png" /></figure><h3>Introduction</h3><p>In team development, a Maven private repository is almost a standard piece of Java infrastructure. It can cache dependencies from central repositories, host internal company components, provide a unified CI/CD publishing endpoint, and reduce the impact of public network instability on builds.</p><p>kkRepo is a self-hosted artifact repository that follows Nexus-style client access patterns. It supports Maven, npm, PyPI, Go, Helm, Docker/OCI, and other artifact formats. For Maven usage, it keeps the familiar `/repository/&lt;repo&gt;/…` URL layout, which lowers the client-side configuration cost when migrating from or replacing Nexus.</p><h4>kkRepo Project</h4><blockquote><a href="https://github.com/klboke/kkrepo">https://github.com/klboke/kkrepo</a><br> <a href="https://gitee.com/kailing/kkRepo">https://gitee.com/kailing/kkRepo</a></blockquote><h3>1. Start kkRepo Quickly</h3><p>For a local trial, you can use the official quickstart script. It starts kkRepo and MySQL:</p><p>```bash<br>curl -fsSL <a href="https://raw.githubusercontent.com/klboke/kkrepo/main/scripts/quickstart.sh">https://raw.githubusercontent.com/klboke/kkrepo/main/scripts/quickstart.sh</a> | bash<br>```</p><p>After startup, open:</p><p>```text<br>Admin console: <a href="http://127.0.0.1:19090/admin/">http://127.0.0.1:19090/admin/</a><br>User browser: <a href="http://127.0.0.1:19090/browse/">http://127.0.0.1:19090/browse/</a><br>Health check: <a href="http://127.0.0.1:19091/actuator/health">http://127.0.0.1:19091/actuator/health</a><br>```</p><p>On the first visit to the admin console, create the initial `Local/admin` administrator password.</p><p>The local quickstart uses File blob storage by default, which is suitable for trials and development verification. For production, use a dedicated MySQL instance and switch blob storage to OSS/S3.</p><h3>2. Create Maven Repositories</h3><p>After opening `/admin/`, create the common Maven repository layout:</p><blockquote>maven-releases hosted, for publishing release versions<br>maven-snapshots hosted, for publishing SNAPSHOT versions<br>maven-central proxy, for proxying Maven Central<br>maven-public group, as the dependency resolution entrypoint</blockquote><p>When creating the `maven-central` proxy repository, use the official Maven Central repository URL as the upstream:</p><p>```text<br><a href="https://repo.maven.apache.org/maven2/">https://repo.maven.apache.org/maven2/</a><br>```</p><p>If your company already has an internal Maven mirror, you can use that internal mirror URL as the proxy upstream instead.</p><p>When creating the `maven-public` group repository, add these member repositories:</p><p>```text<br>maven-releases<br>maven-snapshots<br>maven-central<br>```</p><p>With this setup, clients only need to resolve dependencies from the single `maven-public` URL. Internal packages published to the private repository are served from `maven-releases` or `maven-snapshots`, while third-party open source dependencies are fetched and cached through the `maven-central` proxy. Publishing still goes directly to `maven-releases` or `maven-snapshots`.</p><h3>3. Configure Maven Dependency Resolution</h3><p>Edit `~/.m2/settings.xml` on your local machine or CI environment:</p><p>```xml<br>&lt;settings&gt;<br> &lt;mirrors&gt;<br> &lt;mirror&gt;<br> &lt;id&gt;kkrepo&lt;/id&gt;<br> &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;<br> &lt;url&gt;<a href="http://127.0.0.1:19090/repository/maven-public/">http://127.0.0.1:19090/repository/maven-public/</a>&lt;/url&gt;<br> &lt;/mirror&gt;<br> &lt;/mirrors&gt;<br>&lt;/settings&gt;<br>```</p><p>For production, use HTTPS, for example:</p><p>```text<br><a href="https://repo.example.com/repository/maven-public/">https://repo.example.com/repository/maven-public/</a><br>```</p><p>After this configuration, normal Maven builds automatically go through kkRepo:</p><p>```bash<br>mvn clean package<br>```</p><h3>4. Configure Maven Publishing</h3><p>If your project needs to publish internal jars, add this to the project `pom.xml`:</p><p>```xml<br>&lt;distributionManagement&gt;<br> &lt;repository&gt;<br> &lt;id&gt;maven-releases&lt;/id&gt;<br> &lt;url&gt;<a href="http://127.0.0.1:19090/repository/maven-releases/">http://127.0.0.1:19090/repository/maven-releases/</a>&lt;/url&gt;<br> &lt;/repository&gt;<br> &lt;snapshotRepository&gt;<br> &lt;id&gt;maven-snapshots&lt;/id&gt;<br> &lt;url&gt;<a href="http://127.0.0.1:19090/repository/maven-snapshots/">http://127.0.0.1:19090/repository/maven-snapshots/</a>&lt;/url&gt;<br> &lt;/snapshotRepository&gt;<br>&lt;/distributionManagement&gt;<br>```</p><p>Then configure the publishing account in `~/.m2/settings.xml`:</p><p>```xml<br>&lt;settings&gt;<br> &lt;servers&gt;<br> &lt;server&gt;<br> &lt;id&gt;maven-releases&lt;/id&gt;<br> &lt;username&gt;alice&lt;/username&gt;<br> &lt;password&gt;${env.KKREPO_PASSWORD}&lt;/password&gt;<br> &lt;/server&gt;<br> &lt;server&gt;<br> &lt;id&gt;maven-snapshots&lt;/id&gt;<br> &lt;username&gt;alice&lt;/username&gt;<br> &lt;password&gt;${env.KKREPO_PASSWORD}&lt;/password&gt;<br> &lt;/server&gt;<br> &lt;/servers&gt;<br>&lt;/settings&gt;<br>```</p><p>Note: each `server.id` must match the corresponding `id` in `distributionManagement`.</p><p>Set the environment variable and publish:</p><p>```bash<br>export KKREPO_PASSWORD=’your-password-or-token’<br>mvn deploy<br>```</p><h3>5. Upload Artifacts Manually</h3><p>Besides `mvn deploy`, kkRepo also supports PUT uploads to Maven hosted repositories. For example:</p><p>```bash<br>curl -u alice:”$KKREPO_PASSWORD” \<br> — upload-file app-1.0.0.jar \<br> <a href="http://127.0.0.1:19090/repository/maven-releases/com/acme/app/1.0.0/app-1.0.0.jar">http://127.0.0.1:19090/repository/maven-releases/com/acme/app/1.0.0/app-1.0.0.jar</a><br>```</p><p>The path must follow the Maven repository layout:</p><p>```text<br>groupId/artifactId/version/artifactId-version.jar<br>```</p><p>For example:</p><p>```text<br>com/acme/app/1.0.0/app-1.0.0.jar<br>```</p><h3>6. Production Recommendations</h3><p>The local quickstart helps you validate the flow quickly, but production deployments should pay attention to these points:</p><p>1. Use a dedicated MySQL 8.0 instance to store metadata, users, permissions, tokens, and runtime state.<br>2. Use OSS/S3 as the blob store. Avoid storing large files on a single local disk for long-term production use.<br>3. Enable HTTPS to avoid transmitting Maven passwords or tokens in plaintext.<br>4. Use user tokens or CI tokens instead of writing administrator passwords into pipelines.<br>5. Replace `KKREPO_CREDENTIAL_SECRET` and `KKREPO_API_KEY_PAYLOAD_SECRET` with stable strong random strings.<br>6. Expose a stable domain, such as `<a href="https://repo.example.com`/">https://repo.example.com`</a>, to make future migration and scaling easier.</p><p>One important kkRepo design point is multi-replica deployment: sessions, permissions, tokens, migration state, and other shared state are stored in MySQL, while in-process cache is only a rebuildable local hot cache. This is helpful for rolling upgrades and horizontal scaling in production.</p><h3>7. Summary</h3><p>The core flow for setting up a Maven private repository with kkRepo is straightforward:</p><p>```text<br>Start kkRepo<br>Create a blob store<br>Create maven-releases / maven-snapshots / maven-central / maven-public<br>Add hosted and proxy repositories to the maven-public group<br>Configure Maven settings.xml<br>Configure project distributionManagement<br>Run mvn deploy<br>```</p><p>If your team is already familiar with Nexus, kkRepo’s `/repository/&lt;repo&gt;/…` URL layout also helps reduce migration cost. For artifact repository deployments that want MySQL, OSS/S3, and a design that is better suited to multi-replica operation, kkRepo is worth trying.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fb92b40ecd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>