업로드되지 않은 스냅 샷 아티팩트에 문제가 있습니다.Nexus 스냅 샷 Repo의 모듈을 변경하지 않았습니다.
스냅 샷 버전을 사용하고 있습니다. Atrifact는 명시 적으로 changing: true
으로 표시되고 cacheChangingModulesFor
은 0 초로 설정됩니다.
--refresh-dependecies
을 실행하면 이슈가 올바르게 다운로드됩니다.
그래 플 2.9를 사용하는 동안 문제가 발견되었습니다. 그러나 2.14.1로 업그레이드 한 후에도 문제는 남아 있습니다. 난 당신이 어쩌면 약간 잘못 변경 의존성에 대한 구문이 있다고 생각
buildscript {
ext {
springBootVersion = '1.3.5.RELEASE'
}
repositories {
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release' }
}
// dependencies for plugins
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
jar {
baseName = 'someproject'
version = '0.0.1-SNAPSHOT'
}
war {
baseName = "someproject"
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url 'http://nexus.example.com:8081/nexus/content/repositories/java-libs-snapshots/'
credentials {
username "someuser"
password "somepassword"
}
}
}
// enables to run with dev profile: $ gradle local bootRun
task local << {
bootRun.systemProperty 'spring.profiles.active', 'local'
}
bootRun {
jvmArgs = ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"]
}
dependencies {
compile 'mysql:mysql-connector-java'
compile 'org.springframework.boot:spring-boot-starter-web'
compile group: "pl.example", name: "name", version: "0.7.6.1-SNAPSHOT", changing: true
compile 'org.jadira.usertype:usertype.core:5.0.0.GA'
compile group: 'com.rometools', name: 'rome', version: '1.6.0'
compile group: 'org.jsoup', name: 'jsoup', version: '1.9.2'
compile 'org.hibernate:hibernate-search:5.5.3.Final'
compile 'org.projectlombok:lombok:1.16.6'
}
을 :
당신은 또한 다음과 같이 cacheDynamicVersionsFor의 resolutionStrategy에 줄을 추가하려고 할 수
당신은 대체하려고 할 수 당신은 넥서스에 업로드하려고 할 때 실행 중입니까? 다른 유물을 넥서스에 업로드 할 수 있습니까? – robjwilkins
@robjwilkins 업로드하는 데 문제가되지 않습니다. 업로드가 정상적으로 작동합니다. 문제는 새로운 버전의 스냅 샷 종속성을 다운로드하는 것입니다. –