2017-05-03 5 views
0

이 링크에서 exoplatform에서 캘린더를 다운로드했습니다 : https://github.com/exoplatform/calendar 및 mvn compile war : war 명령을 사용하여 해당 war를 생성하려고했습니다. mvn 패키지를 실행하거나 mvn을 설치하면 제대로 작동하지만 war : war를 추가하면 컴파일이 실패합니다. 여기 Maven 오류 - 멀티 모듈 프로젝트에서 심볼을 찾을 수 없습니다.

는 오류입니다 :

[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[48,38] package org.exoplatform.calendar.model does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[49,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[50,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[51,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[52,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[53,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[54,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[55,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[56,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[57,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[58,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[59,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[115,18] cannot find symbol 
[ERROR] symbol: class CalendarService 
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[116,11] cannot find symbol 
[ERROR] symbol: class ExtendedCalendarService 
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[120,17] cannot find symbol 
[ERROR] symbol: class CalendarService 
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[134,29] cannot find symbol 
[ERROR] symbol: class ExtendedCalendarService 
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[330,49] cannot find symbol 
[ERROR] symbol: class CalendarEvent 
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[330,72] cannot find symbol 
[ERROR] symbol: class FeedData 
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[630,39] cannot find symbol 
[ERROR] symbol: class CalendarSetting 
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[630,67] cannot find symbol 
[ERROR] symbol: class CalendarEvent 
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[31,1] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[32,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[33,49] package org.exoplatform.calendar.service.Calendar does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[34,45] package org.exoplatform.calendar.service.impl does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/bean/CategoryResource.java:[22,40] package org.exoplatform.calendar.service does not exist 
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/bean/CategoryResource.java:[33,33] cannot find symbol 
[ERROR] symbol: class EventCategory 
[ERROR] location: class org.exoplatform.calendar.ws.bean.CategoryResource 

주요 치어 : https://drive.google.com/file/d/0BwWIlGx_c4cXM3puSVY2YTlDWE0/view?usp=sharing

항상 반환 오류를 반환하는 하나 인해 스택 오버플로 문자로 https://drive.google.com/file/d/0BwWIlGx_c4cXWlptTkp0VF95YlU/view?usp=sharing

내가 Google 드라이브에서 그들을 배치를 한도.

mvn 새로 설치를 수행하는 종속성을 검사하는 것처럼 스택 오버플로에서 솔루션을 시도했지만 war를 추가 할 때마다 : war 해당 오류를 반환합니다.

아무도 도와 줄 수 있습니까?

+1

WAR를 빌드하는 올바른 방법은'mvn install' 또는'mvn package'를 사용하는 것입니다. 왜'mvn war : war'를 따로 운영해야한다고 생각하니? –

+0

Ok @SteveC 나는 당신이 말한 것을 시도했다. 어제 시도 했음에도 불구하고 일하지 않았지만, 오늘은 전쟁을 일으켰고 그에 따라 행동한다. 감사합니다 – user2934164

+0

당신은 어떤 지점을 체크 아웃 했습니까? 아니면'maven-war-plugin' 설정을 직접 추가 했습니까? 'calendar-webservice' 모듈은 WAR로 빌드 된 실제 웹 어플리케이션 인'calendar-webapp'에 포함 된'jar '을위한 것입니다. –

답변

0

예. 전쟁 목표를 호출하는 적절한 방법은 다음과 같습니다 당신은 여전히 ​​오류를 참조로

mvn compile war:war 

지금, 다른 하나 개의 프로젝트의 의존성이있을 수 있다는 것을 나타납니다. 그리고 로컬 저장소에서 의존성을 찾을 수 없으므로 (로컬 저장소에 설치하지 않았으므로) 종속성을 클래스 경로에 추가 할 수 없으므로 오류가 발생합니다.

+0

이것은 WAR 파일을 빌드하는 방법이 아닙니다. Maven은 패키징이 pom.xml에서'war'로 설정되면 자동으로 WAR 파일을 빌드합니다. –

+0

예. 동의하다. 그러나 질문 주인이 물었을 때, 나는 그가 원했던 대답을했다. – Shinchan