【问题标题】:Intellij Idea 2017.1.X can't read plugin.xml of maven pluginIntellij Idea 2017.1.X 无法读取 maven 插件的 plugin.xml
【发布时间】:2018-03-25 20:20:41
【问题描述】:

我正在尝试将一个新插件集成到我的项目中,即 spring-mvc-raml 插件。它就像一个魅力,但我的想法显然无法从 META-INF/maven 读取 plugin.xml:

            <plugin>
            <groupId>com.phoenixnap.oss</groupId>
            <artifactId>springmvc-raml-plugin</artifactId>
            <version>${springmvc-raml-plugin.version}</version>
            <configuration>
                <ramlPath>src/main/resources/api.raml</ramlPath>
                <outputRelativePath>target/generated-sources</outputRelativePath>
                <addTimestampFolder>false</addTimestampFolder>
                <basePackage>com.thomascook.digital.booking.amendment.web</basePackage>
                <baseUri>/api</baseUri>
                <seperateMethodsByContentType>false</seperateMethodsByContentType>
                <rule>com.phoenixnap.oss.ramlapisync.generation.rules.Spring4ControllerInterfaceRule</rule>
                <generationConfig>
                    <includeHashcodeAndEquals>false</includeHashcodeAndEquals>
                    <includeToString>false</includeToString>
                    <includeJsr303Annotations>true</includeJsr303Annotations>
                </generationConfig>
            </configuration>
            <executions>
                <execution>
                    <id>generate-springmvc-endpoints</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>generate-springmvc-endpoints</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

Idea 突出显示 &lt;configuration&gt; 内的所有标签

有趣的是,它不会抱怨其他刚开始研究它的人。我在 Windows 和 Ubuntu 上都试过了,使用 Idea 2017.1.4 和 2017.1.3。

有什么想法吗?缓存失效对我也没有帮助。

【问题讨论】:

    标签: java maven intellij-idea maven-plugin


    【解决方案1】:

    刚刚尝试了 Idea 2017.2.5,一切都很好。现在我很好奇 Idea 在 2017.2.X 中解析 plugin.xml 的方式发生了什么变化?有人来自 Intellij 吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多