Skip to main content

Maven local proxy.

Installation

pip install mvnproxy

Configuration

To configure mvnproxy you need to at least specify some mirrors to be used. The full list of configurable parameters is visible here:

host: 0.0.0.0
port: 6990
cache_folder: /home/raptor/tmp/mvnproxy
mirrors:
- url: https://repo.maven.apache.org/maven2
- url: http://repo1.sample.net/artifactory/cool-artifacts/
- url: https://secure-repo2.sample.net/nexus3/also-cool/
  auth:
    user: myuser
    pass: {USER_PASS}

Each mirror in turn supports auth configuration where the user and pass can be specified. If no auth is specified, it simply does unauthenticated requests.

Environment variables such as the USER_PASS can be interpolated in the configuration using the curly bracket notation.

Maven Configuration

Maven also needs to be configured in oredr to use the mvnproxy. To see the required configuration you can either open the http://localhost:6990/ or just use in the .m2/settings.xml:

<settings>
  <mirrors>
    <mirror>
      <id>central</id>
      <name>central</name>
      <url>http://localhost:6990/repo</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>central</id>
          <name>central</name>
          <url>http://localhost:6990/repo</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>
</settings>

Metadata

Release files for mvnproxy 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mvnproxy 1.2.0
File Size Uploaded Provenance Actions
mvnproxy-1.2.0.tar.gz 9.3 kB Without provenance Details for mvnproxy-1.2.0.tar.gz

Release files / mvnproxy-1.2.0.tar.gz

Download URL mvnproxy-1.2.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
96c64a020dbb777ea1004c3519ca2fcc845551c5bc7c45b914d2bae43651bb45
BLAKE2b-256 checksum
How to use checksums
fb9d1f69be76bf3d94931f0ad433c62368080944181f2985790b88ca41091763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Security for mvnproxy 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page