exoplatformからこのリンクからカレンダーをダウンロードしました:https://github.com/exoplatform/calendarと私はコマンドmvn 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
常に返すエラーを返す1:により、スタックオーバーフローのcharにhttps://drive.google.com/file/d/0BwWIlGx_c4cXWlptTkp0VF95YlU/view?usp=sharing
私はGoogleドライブでそれらを配置します制限する。
mvnのクリーンインストールを行う依存関係をチェックするのと同じように、スタックオーバーフローのソリューションを試しましたが、warを追加するたびに:warはこれらのエラーを返します。
誰でも手伝ってもらえますか?
WARをビルドする正しい方法は、 'mvn install'または' mvn package'を使うことです。なぜあなたは 'mvn war:war'を別々に実行する必要があると思いますか? –
Ok @SteveCあなたが言ったことを試してみましたが、昨日試していても動作していないのに、今日は戦争が起こり、それに応じて動作します。ありがとう – user2934164
あなたはどの支店をチェックアウトしましたか?あるいは 'maven-war-plugin'の設定を自分で追加しましたか? 'calendar-webservice'モジュールは' calendar-webapp'に含まれる 'jar'を意図しています。これはWARとしてビルドされた実際のWebアプリケーションです。 –