我正在研究由幾個模塊組成的maven netbeans平臺項目。我需要依賴一些模塊(比如說java.source模塊),但是當我嘗試運行應用程序時,它會報告所需模塊未安裝。和事件,儘管我依賴java.source在我的pom.xml中聲明如何在maven項目中包含預定義的netbeans平臺模塊集?
我認爲,我必須告訴maven以某種方式,在我的模塊加載之前在最終組裝的應用程序中安裝(並打開)這些模塊。
我怎麼能這樣做?
UPDATE:
當我試圖從Maven構件創建完整的NetBeans應用程序項目,並添加Java源代碼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)...你可以指定>平臺<模塊包含在最終的應用程序。 Maven如何做到這一點? – 2011-04-16 09:53:42