달력

52024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
AppFuse 의 메이븐 저장소에서 소스를 받아 가장 먼저 실행하는게 아마도 mvn 명령을 통한 빌드및 테스트 실행이라고 생각됩니다.

# 에러내용
최신버전인 2.1.0-M2 에서 실제로 mvn 을 통해 실행해보면 아래와 같은 에러가 발생합니다.
[INFO] [talledLocalContainer] Tomcat 6.x started on port [8081]
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
Trying to override old definition of task retry
     [echo] Testing 'newspaper-service-1.0-SNAPSHOT' with locale 'ko'
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while executing this line:
D:\MyLucy\workspace\NEWSPAPER\newspaper-service\src\test\resources\web-tests.xml:7: Property copyright.year was circularly defined.

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37 seconds
[INFO] Finished at: Wed Jun 23 15:06:23 KST 2010
[INFO] Final Memory: 39M/95M
[INFO] ------------------------------------------------------------------------

# 해결방법
src/main/resources/ApplicationResources_ko.properties 파일을 열어서, 9번 라인에 보면. 아래와 같은 설정이 있습니다.
copyright.year=${copyright.year}

다음처럼 수정해주세요.
copyright.year=2009




Posted by fromm0
|