Intellij導入插件工程,不能運行(須要EditConfiguration)

https://blog.csdn.net/wjskeepmaking/article/details/78815896 能夠做爲參考ide

 

這裏要說的一點是,若是項目被識別爲plugin,那麼就應該在項目設置的模塊設置中有"Plugin Deployment"這個選項卡。url

而這個選項卡實際上也是由.iml文件中module 節點的type屬性決定。若是type的屬性值不是PLUGIN_MODULE,那麼能夠看下工程中是否有其餘的.iml文件。我在導入項目時,idea自動在.idea目錄下建立了一個.iml文件,致使原有的.iml文件沒有生效,沒法運行。idea

<?xml version="1.0" encoding="UTF-8"?>
<module type="PLUGIN_MODULE" version="4">
  <component name="NewModuleRootManager" inherit-compiler-output="true">
    <exclude-output />
    <content url="file://$MODULE_DIR$">
      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
    </content>
    <orderEntry type="inheritedJdk" />
    <orderEntry type="sourceFolder" forTests="false" />
  </component>
</module>
相關文章
相關標籤/搜索