私はEclipseでマルチモジュールSpringMvc Appfuseアプリケーションを設定しようとしていますが、私はEclipseでプロジェクトをインポートした後にEclipseのエラーがたくさん直面しているようです。このようなアプリケーションをEclipseで設定するのに理想的な方法を示す手順のガイドラインで、誰かが私を手伝ってください。
私はEclipseでマルチモジュールSpringMvc Appfuseアプリケーションを設定しようとしていますが、私はEclipseでプロジェクトをインポートした後にEclipseのエラーがたくさん直面しているようです。このようなアプリケーションをEclipseで設定するのに理想的な方法を示す手順のガイドラインで、誰かが私を手伝ってください。
I am trying to setup a multi module SpringMVC appfuse applicaiton in Eclipse but it seems that I'm facing lots of errors in Eclipse after I import the project in Eclipse. Can anyone please help me with a step by step guideline showing the ideal way to setup such application in Eclipse?
</divMaven Eclipse Pluginを使ってみましたか? プロジェクトルートフォルダ(POM.xmlファイルを含むもの)に移動し、コマンドラインから「MVN Eclipse:Eclipse」を実行できます。
これはあなたのモジュールごとにプロジェクトファイルを構築し、依存関係を生み出します。マルチモジュールプロジェクトを複数のプロジェクトでワークスペースのように扱うだけです。
MVN Eclipseの後にロード時に表示されるエラーのほとんどは、eclipseがリポジトリ変数のためです。 "mvn -declipse.workspace = eclipse:add-maven-repo"を使用して設定できます。
Maven Eclipseプラグインの詳細 http://maven.apache.org / Plugins / Maven-Eclipse-Plugin /
ボグダン
Have you tried using maven eclipse plugin? You can just go to the project root folder (the one that contains your pom.xml file) and run "mvn eclipse:eclipse" from the command line.
This will build project files for each of your modules and also create inter-dependencies. You can just treat your multi-module project like a workspace with multiple projects.
Most of the errors that appear at load time, after mvn eclipse:eclipse are because of the repository variable. You can configure this by using "mvn -Declipse.workspace= eclipse:add-maven-repo".
More info on maven eclipse plugin at http://maven.apache.org/plugins/maven-eclipse-plugin/.
Regards, Bogdan
</divエラーは何ですか?私が考えることができる最も一般的な問題はライブラリエラーです。その場合、ビルドパスを編集する必要があります。
What are the errors? The most common problem I can think of is library errors, in which case you have to edit the build path.
</divマルチモジュールプロジェクトを思い出すものから、Eclipseはちょうどこの順調に取り扱われません。それはあなたが得ている特定のエラーを見るのを助け、そこから始めるために。
From what I recall for multi-module projects, eclipse just does not handle this well. It would help to see the specific errors you're getting, and then to start from there.
</div私はこの問題を知っています、それはAppFuseとは関係なく、むしろそれ自体をマベートするのです。私は次のステップに従うことをお勧めします:
すべてのコンパイルとすべてのテストがパスを渡してください。これには
で確認できますMVNパッケージ
Eclipse Mavenプラグインを使用:
MVN Eclipse:Eclipse
このようにプロジェクトには、ClassPath:SpringとLog4jの設定ファイル、リソースなどに必要なものすべてが含まれます。
MVN Eclipseコマンドを既に実行した場合は、Eclipseからプロジェクトを削除するだけです(ファイルを削除しないでください)、ディレクトリからのEclipse固有のファイルを削除し、MVN Eclipse:Eclipse
私の2セント
I know this problem, it's not related to Appfuse but rather to Maven itself. I suggest to follow these steps:
make sure everything compiles and all tests pass. for this you can check with
mvn package
use the eclipse maven plugin:
mvn eclipse:eclipse
This way the project will include everything that's needed in the classpath: Spring and Log4j configuration files, resources, etc.
If you already executed the mvn eclipse:eclipse command, just delete the project from Eclipse (DON'T DELETE FILES!), remove Eclipse-specific files from directory, re-run mvn eclipse:eclipse
My 2 cents
</div© 2022 cndgn.com All Rights Reserved. Q&Aハウス 全著作権所有