如何获取MavenProjectsManager实例?
plugin.xml中是否有服务,组件或其他内容来实例化MavenProjectsManager实例?
MavenProjectsManager manager = MavenProjectsManager.getInstance(project);
到目前为止我的plugin.xml文件:
<idea-plugin version="2">
<id>com.arcbees.plugin.idea</id>
<name>GWT-Platform (GWTP) IntelliJ IDEA Plugin</name>
<version>1.0.0</version>
<vendor email="support@arcbees.com" url="http://www.arcbees.com">ArcBees</vendor>
<description><![CDATA[
The GWTP IDEA plugin provides tools for GWT-Platform framework in IntelliJ IDEA.<br>
]]></description>
<change-notes><![CDATA[
Project Creation by Archetype added (8/30/2013).<br>
]]>
</change-notes>
<!-- please see http://confluence.jetbrains.net/display/IDEADEV/Build+Number+Ranges for description -->
<idea-version since-build="107.105"/>
<depends>org.jetbrains.idea.maven</depends>
<application-components>
</application-components>
<project-components>
</project-components>
<actions>
</actions>
<extensions defaultExtensionNs="com.intellij">
<moduleType id="GWTP_CREATE_PROJECT_MODULE"
implementationClass="com.arcbees.plugin.idea.moduletypes.CreateProjectModuleType"
classpathProvider="true"/>
<wizardMode implementation="com.arcbees.plugin.idea.wizards.createproject.CreateProjectWizard"/>
</extensions>
</idea-plugin>
答案 0 :(得分:2)