메뉴 건너띄기
상단메뉴 바로가기
본문 바로가기

이 누리집은 대한민국 공식 전자정부 누리집입니다.

본문 영역

적용 지원, FAQ, Q&A 게시판을 통해 기술 문제 해결을 지원합니다.

묻고 답하기

hudson 빌드 질문 입니다
  • 작성자

    이*성

  • 작성일

    2009-07-28 18:18:13

  • 조회수

    5,207

  • 구분

    개발환경

  • 진행상태

    완료

질문

hudson에서 빌드옵션(Goals and options)으로 clean, install각각 하나씩
써주면 오류없이 빌드가 되는데 clean install 이렇게 동시에 써주면 아래와
같이 오류가 나는데 무슨 차이가 있나요?

[INFO] Building notice
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\hudson_home\jobs\portmis\workspace\portmis_dev\portmis.notice\target
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (MS949 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 303 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 244 source files to C:\hudson_home\jobs\portmis\workspace\portmis_dev\portmis.notice\target\classes
[HUDSON] Archiving C:\hudson_home\jobs\portmis\workspace\portmis_dev\portmis.notice\pom.xml to C:\hudson_home\jobs\portmis\modules\portmis$notice\builds\2009-07-28_17-38-02\archive\portmis\notice\0.0.1\pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

C:\hudson_home\jobs\portmis\workspace\portmis_dev\portmis.notice\src\main\java\egovframework\com\sec\ram\security\securedobject\ISecuredObjectService.java:[23,36] cannot find symbol
symbol : class ConfigAttributeDefinition
location: package org.springframework.security

C:\hudson_home\jobs\portmis\workspace\portmis_dev\portmis.notice\src\main\java\egovframework\com\sec\ram\security\securedobject\ISecuredObjectService.java:[76,11] cannot find symbol
symbol : class ConfigAttributeDefinition
location: interface egovframework.com.sec.ram.security.securedobject.ISecuredObjectService

C:\hudson_home\jobs\portmis\workspace\portmis_dev\portmis.notice\src\main\java\egovframework\com\sec\ram\security\userdetails\util\EgovUserDetailsHelper.java:[8,36] cannot find symbol
symbol : class Authentication
location: package org.springframework.security

C:\hudson_home\jobs\portmis\workspace\portmis_dev\portmis.notice\src\main\java\egovframework\com\sec\ram\security\userdetails\util\EgovUserDetailsHelper.java:[9,36] cannot find symbol
symbol : class GrantedAuthority
location: package org.springframework.security

답변

안녕하세요.

Maven의 경우 Goal을 clean, install 을 각각 수행하는 방식과 clean install로 수행하는 방식에는 Goal의 수행 순서가 다르다고 합니다.

만약 A, B, C, D의 멀티 모듈 프로젝트를 빌드한다면 수행 순서는 아래와 같습니다.
1. mvn clean, mvn install 을 각각 수행
: clean A --> clean B --> clean C --> clean D --> install A --> install B --> install C --> install D

2. mvn clean install 수행
: clean A --> install A --> clean B --> install B --> clean C --> install C --> clean D --> install D

2번의 경우 빌드시에 컴파일 오류가 발생할 가능성이 있습니다.

이 페이지의 구성

묻고 답하기