0

Maven ベースの open-ide アプリケーションを構築しようとしているときに、次のメッセージが表示されました。

Some tokens required by included modules are not provided by included modules. The application will fail starting up. The missing tokens are:
   org.netbeans.modules.java.source.queries.spi.QueriesController          ref: [org.netbeans.modules.java.source.queries]
   org.netbeans.api.editor.guards.Java          ref: [org.netbeans.modules.form]
   org.netbeans.modules.editor.actions          ref: [org.netbeans.modules.editor.lib2]

そこに答えが見つかるかどうかを確認するために最初の行でグーグルを試しましたが、得られたのはエラーが発生しているソースコードだけでした。誰でもこのエラーを明確に解釈したり、修正方法を教えたりできますか?

注:どのモジュールが原因であるかは特定されていませんが、「アプリ」プロジェクトで死んでいます。

4

2 に答える 2

2

トークンは、maven 依存関係では表現できないタイプの netbeans 依存関係です。通常、API モジュールにはそのような実装が必要ですが、実装モジュールには通常のコンパイル依存関係があります。モジュールのシステム デフォルトについては、http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/api.html#how-versを参照してください。

通常、モジュール jar のマニフェストを調べて、どのモジュールがどのトークンを提供しているかを調べる必要があります。

Maven ベースのアプリケーションをセットアップする最も簡単な方法は、nbm-application パッケージ プロジェクトに十分なクラスター依存関係を含めることです。(org.netbeans.cluster グループ ID)。次に、一部の機能が必要ない場合は、ゆっくりとモジュールの除外を開始して、何も壊れていないかどうかを確認します。

デフォルトでは、nbm-application プロジェクトは 'platform' クラスターに依存します。明らかに 'ide' と 'java' も必要です。

于 2013-12-20T06:21:00.120 に答える
0

It appears that it means that certain tokens (on the left) are not provided to the, modules that need them (on the right). I found the needed modules by grep-ing the NetBeans source for the token and looked for a line that started with OpenIDE-Module-Provides: and then adding that module to the project that had issues.

I found the project that had issues by cleaning everything and then building the projects from the least dependent to the most until I got the error again.

于 2013-12-21T00:06:48.000 に答える