Skip to content

raymank26/mavenor

Repository files navigation

CI

About

This project provides a Maven proxy for GCP Cloud Storage or Amazon S3 compatible storage.

Run

Use the following command to build an image:

./gradlew dockerBuildImage # you can optionally pass a version using -Pversion=<version>
docker run mavenor:latest # or docker run mavenor:<version>. Also pass env variables listed below.

After the launch, the app will listen on 8080 port.

Environment variables:

  1. GOOGLE_SERVICE_ACCOUNT_KEY – This variable holds the JSON key file of a GCP service account.
  2. GOOGLE_APPLICATION_CREDENTIALS – This variable specifies the name of a file where the key is written.
  3. GOOGLE_CLOUD_STORAGE_BUCKET_NAME – This variable specifies the bucket name for Google Cloud Storage.
  4. USERNAME – This variable is used for the Maven username.
  5. PASSWORD – This variable is used for the Maven password.
  6. MAX_CACHE_SIZE_BYTES (optional) - This variables controls a max in-memory artifact cache size. It's 50MB by default.

Maven configuration

publishing {
    repositories {
        maven {
            url "http://localhost:8080/maven" // replace with real url
            allowInsecureProtocol true // <- only for HTTP testing
        }
    }
}

// and for consumption
repositories {
    mavenCentral()
    maven {
        url = uri("http://localhost:8080/maven") // replace with real url
        setAllowInsecureProtocol(true) // <- only for HTTP testing
        credentials {
            username = "<username>"
            password = "<password>"
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published