Fresh Eclipse/optaplanner 7.12 示例 "new project via Maven" 失败
Fresh Eclipse / optaplanner 7.12 examples "new project via Maven" fails
全新安装 Eclipse 4.9.0 (2018-09),并在 Eclipse 中安装 m2e,我下载了 Optaplanner 7.12.0 版,解压了 zip,然后按照文档说明的第一步构建示例 ("Open the file examples/sources/pom.xml as a new project, the maven integration will take care of the rest.") 通过:
1) File / Open Projects from File System... / Show other specialized import wizards / Maven / 现有的 Maven 项目
2)选择optaplanner-distribution-7.12.0.Final/examples/sources作为根目录
(pom.xml for 7.12.0.final 作为一个可选择的项目按预期出现)
但是,选择POM并单击完成时,发生错误:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.8:run (execution: create-default-i18n-resource, phase: process-resources)
这似乎与祖先 pom org.kie:kie-parent:7.12.0.Final.pom 有关,其中有
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<!-- Temporary workaround for https://issues.jboss.org/browse/ERRAI-1101. Needs to stay here until
we find a general solution (e.g. moving all localized code to Errai TranslationService. -->
<id>create-default-i18n-resource</id>
<phase>process-resources</phase>
<configuration>
<target>
<copy todir="${project.build.directory}/classes"
includeemptydirs="false" failonerror="false" quiet="true">
<fileset dir="${project.build.directory}/classes"/>
<globmapper from="*Constants.properties" to="*Constants_default.properties"/>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
但是,我不知道如何解决 "discover m2e connectors" 报告的错误 "No marketplace entries"。
我的目标是扩展一个示例,以创建一个使用 Optaplanner 报告的问题的可重现示例。由于第一步是最新版本的开箱即用构建,我认为它应该可以工作 - 请问我缺少什么?
这是一个"feature"(不足?)的M2Eclipse插件。在最新版本的 m2e 中,可以使用 Eclipse 工作区中存储的 lifecycle mapping 忽略 Antrun 插件。为此,打开问题选项卡,右键单击 maven-antrun-plugin 执行错误和 select 快速修复。然后select"Mark goal run as ignored in eclipse preferences"点击完成。错误将消失,并且可以使用该项目。
以下视频说明了该过程:https://youtu.be/TVRAtMx2XyE。
全新安装 Eclipse 4.9.0 (2018-09),并在 Eclipse 中安装 m2e,我下载了 Optaplanner 7.12.0 版,解压了 zip,然后按照文档说明的第一步构建示例 ("Open the file examples/sources/pom.xml as a new project, the maven integration will take care of the rest.") 通过: 1) File / Open Projects from File System... / Show other specialized import wizards / Maven / 现有的 Maven 项目 2)选择optaplanner-distribution-7.12.0.Final/examples/sources作为根目录 (pom.xml for 7.12.0.final 作为一个可选择的项目按预期出现)
但是,选择POM并单击完成时,发生错误:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.8:run (execution: create-default-i18n-resource, phase: process-resources)
这似乎与祖先 pom org.kie:kie-parent:7.12.0.Final.pom 有关,其中有
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<!-- Temporary workaround for https://issues.jboss.org/browse/ERRAI-1101. Needs to stay here until
we find a general solution (e.g. moving all localized code to Errai TranslationService. -->
<id>create-default-i18n-resource</id>
<phase>process-resources</phase>
<configuration>
<target>
<copy todir="${project.build.directory}/classes"
includeemptydirs="false" failonerror="false" quiet="true">
<fileset dir="${project.build.directory}/classes"/>
<globmapper from="*Constants.properties" to="*Constants_default.properties"/>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
但是,我不知道如何解决 "discover m2e connectors" 报告的错误 "No marketplace entries"。
我的目标是扩展一个示例,以创建一个使用 Optaplanner 报告的问题的可重现示例。由于第一步是最新版本的开箱即用构建,我认为它应该可以工作 - 请问我缺少什么?
这是一个"feature"(不足?)的M2Eclipse插件。在最新版本的 m2e 中,可以使用 Eclipse 工作区中存储的 lifecycle mapping 忽略 Antrun 插件。为此,打开问题选项卡,右键单击 maven-antrun-plugin 执行错误和 select 快速修复。然后select"Mark goal run as ignored in eclipse preferences"点击完成。错误将消失,并且可以使用该项目。
以下视频说明了该过程:https://youtu.be/TVRAtMx2XyE。