【发布时间】:2011-04-16 09:28:46
【问题描述】:
我正在开发由几个模块组成的 maven netbeans 平台项目。我需要依赖一些模块(比如 java.source 模块),但是当我尝试运行应用程序时,它报告说没有安装所需的模块。尽管我依赖于 pom.xml 中声明的 java.source,但事件
我认为,我必须以某种方式告诉 maven,在我的模块加载之前在最终组装的应用程序中安装(并打开)这些模块。
我怎么能做这样的事情?
更新:
当我尝试从 maven 工件创建完整的 netbeans 应用程序项目并将 Java Source API 作为依赖项添加到 pom.xml 中时...当我运行应用程序时,会出现带有以下消息的窗口:
Warning - could not install some modules: Editor Library 2 - None of the modules providing the capability org.netbeans.modules.editor.actions could be installed. Editor Indentation for Projects - The module named org.netbeans.modules.editor.settings.storage/1 was needed and not found. Editor Indentation for Projects - The module named org.netbeans.modules.options.editor/1 was needed and not found. Project UI API - No module providing the capability org.netbeans.modules.project.uiapi.ActionsFactory could be found. Project UI API - No module providing the capability org.netbeans.modules.project.uiapi.OpenProjectsTrampoline could be found. Project UI API - No module providing the capability org.netbeans.modules.project.uiapi.ProjectChooserFactory could be found. Editor Error Stripe Impl - The module named org.netbeans.modules.editor.errorstripe.api/1 was needed and not found. Java Source - The module named org.netbeans.libs.javacimpl/1 was needed and not found. Java Source - The module named org.netbeans.modules.editor.indent.project/0-1 was needed and not found. Java Source - The module named org.netbeans.modules.java.preprocessorbridge was needed and not found. Java Source - The module named org.netbeans.modules.options.editor/1 was needed and not found. Java Source - The module named org.netbeans.modules.parsing.api/1 was needed and not found. Editor Settings - No module providing the capability org.netbeans.api.editor.settings.implementation could be found. Diff - The module named org.netbeans.modules.options.editor/1 was needed and not found. 11 further modules could not be installed due to the above problems.
【问题讨论】:
-
我的意思是,如果您正在创建 netbeans 平台应用程序(没有 maven)......您可以指定 >platform