Skip to content

Read timed out exception #7

@DarthMech

Description

@DarthMech

Hello. I try to use maven-proxy locally. I made simple build.gradle for test:

buildscript {
    repositories {
        maven {
            url "http://localhost:5956/"
        }
//        mavenCentral()
//        maven {
//            url "https://plugins.gradle.org/m2/"
//        }
    }

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"
        classpath "gradle.plugin.io.gitlab.arturbosch:detekt-gradle-plugin:1.0.0.RC7-2"
    }
}

apply plugin: 'kotlin'
//apply plugin: "io.gitlab.arturbosch.detekt"

group 'testId'
version '1.0-SNAPSHOT'

repositories {
    maven {
        url "http://localhost:5956/"
    }
//    mavenCentral()
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}

compileKotlin {
    kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
    kotlinOptions.jvmTarget = "1.8"
}

When I do gradle build, I have exception in build log:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'test'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve gradle.plugin.io.gitlab.arturbosch:detekt-gradle-plugin:1.0.0.RC7-2.
     Required by:
         project :
      > Could not resolve gradle.plugin.io.gitlab.arturbosch:detekt-gradle-plugin:1.0.0.RC7-2.
         > Could not get resource 'http://localhost:5956/gradle/plugin/io/gitlab/arturbosch/detekt-gradle-plugin/1.0.0.RC7-2/detekt-gradle-plugin-1.0.0.RC7-2.pom'.
            > Could not HEAD 'http://localhost:5956/gradle/plugin/io/gitlab/arturbosch/detekt-gradle-plugin/1.0.0.RC7-2/detekt-gradle-plugin-1.0.0.RC7-2.pom'.
               > Read timed out

My tiny-maven-proxy.properties

maven.dir=./var/lib/maven
mirror=https://repo.maven.apache.org/maven2,https://plugins.gradle.org/m2/
log.file=./tmp/tmproxy.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions