2017-12-27 5 views
0

저는 maven을 처음 사용합니다. 그러나 자동화 된 테스트 및 구축/배포에 Gitlab CI Runner를 사용하려고합니다.SpringBoot Maven 빌드가 실패합니다.

나는 내 동료와 나의 현재 maven 구성을 얻었다. 여기

Downloaded: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-bom/4.2.3.RELEASE/spring-security-bom-4.2.3.RELEASE.pom (5 KB at 101.0 KB/sec) 
[ERROR] [ERROR] Some problems were encountered while processing the POMs: 
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-processor:jar is missing. @ line 20, column 21 
@ 
[ERROR] The build could not read 1 project -> [Help 1] 
[ERROR] 
[ERROR] The project de.demo:Rest:2.0 (/builds/Dev/Demo/Restv2/pom.xml) has 1 error 
[ERROR]  'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-processor:jar is missing. @ line 20, column 21 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 
ERROR: Job failed: exit code 1 

내 스프링 의존성은 다음과 같습니다 : 작업이 실행되는 지금, 그것은 다음과 같은 오류 메시지가 몇 초 후 실패하면

내가 어떤 도움을 주셔서 감사합니다

<parent> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-parent</artifactId> 
    <version>1.5.9.RELEASE</version> 
</parent> 

<dependencies> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-processor</artifactId> 
     <exclusions> 
      <exclusion> 
       <groupId>com.vaadin.external.google</groupId> 
       <artifactId>android.json</artifactId> 
      </exclusion> 
     </exclusions> 
    </dependency> 

    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-web</artifactId> 
    </dependency> 

    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-test</artifactId> 
    </dependency> 

    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-data-jpa</artifactId> 
    </dependency> 
</dependencies> 

, 나는 '나오지 않았어 내 오류에 대한 해결책 찾기 :/

고마워요!

+0

이것이 "spring-boot-starter-processor"의 올바른 이슈 이름입니까? mvn 저장소에서 가장 가까운 일치 항목은 "spring-boot-configuration-processor"(https://mvnrepository.com/search?q=spring-boot-starter-processor)입니다. 이 이름이 올바른 경우 - 오류에 모두 표시됨 -이 종속성에 대한 태그가 누락되어 사용하려는 이슈의 버전을 결정할 수 없습니다. –

답변

1

는 여기를 체크 아웃, 당신은

<!-- 
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot 
-configuration-processor --> 
<dependency> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-configuration-processor</artifactId> 
</dependency> 

하지 spring-boot-starter-processor 의미 생각 : https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-configuration-processor/1.5.9.RELEASE 그것은 당신이에서 존재하지 않는 의존성 (spring-boot-starter-processor를 사용하는 시도가 발생하는 근본 문제처럼 보인다

+0

고맙습니다. 대단히 감사합니다. 동료로부터 얻은 종속성이라고 말했듯이, 기존의 의존성이 아니라고 생각했습니다./ – PaddaelsM

1

org.springframework.boot). 의존성 이름을 부모에 실제로 정의 된 이름으로 고정하면 (spring-boot-starter-parent) "버전"문제가 수정됩니다.

표시되는 오류는 각 maven 종속성이 버전을 직접 정의하거나 종속성 관리에 정의해야하므로 다른 것을 말합니다 (버전이 정의되어 있지 않음). 부모로 spring-boot-starter-parent을 설정 했으므로 여기에서 종속성이있는 모두 에 대한 종속성 버전을 사용합니다.

어떤 이유로이 (매우 이상한 것) 올바른 의존성 이름 인 경우, 제대로처럼 버전을 정의하여 오류를 수정합니다

<dependency> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-processor</artifactId> 
    <version>(insert version here)</version> 
</dependency> 

또는 의존성 관리를 통해 : https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management

+0

대단히 고마워요! 위의 내 코멘트에서 말했듯이, 나는 그것이 존재하지 않는 의존성 때문에 존재하지 않을 것이라고 생각하지 않았습니다 ... :/어쨌든, 이제 작동합니다! – PaddaelsM

관련 문제