pluginExecutionFilter eclipse jpbm 7.12项目缺少参数

时间:2018-10-17 15:00:33

标签: eclipse maven eclipse-plugin jbpm

我已经安装了jbpm 7.12服务器。我在MySpace中创建了一个空项目。

我在jbpm-console中克隆了建议的存储库(MySpace>项目名称>设置,并从“全局设置”中的建议URL克隆了)。

我在Eclipse中导入了项目,但是当我进行项目更新(Maven>更新项目)时,出现以下错误

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'approvals'.
Missing parameter for pluginExecutionFilter. groupId, artifactId, versionRange and goals must be specificed, but found: groupId = 'org.kie'
artifactId = 'kie-maven-plugin'
versionRange = '7.12.0.Final'
goals = '[]'

这是我的pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.alfasistemi.bpm</groupId>
  <artifactId>approvals</artifactId>
  <version>1.0.0</version>
  <packaging>kjar</packaging>
  <name>approvals</name>
  <description></description>
  <dependencies>
    <dependency>
      <groupId>com.thoughtworks.xstream</groupId>
      <artifactId>xstream</artifactId>
      <version>1.4.10</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.kie</groupId>
      <artifactId>kie-internal</artifactId>
      <version>7.12.0.Final</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.optaplanner</groupId>
      <artifactId>optaplanner-core</artifactId>
      <version>7.12.0.Final</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.optaplanner</groupId>
      <artifactId>optaplanner-persistence-jaxb</artifactId>
      <version>7.12.0.Final</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.kie</groupId>
      <artifactId>kie-api</artifactId>
      <version>7.12.0.Final</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.kie</groupId>
        <artifactId>kie-maven-plugin</artifactId>
        <version>7.12.0.Final</version>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>
</project>

如何解决此问题?

2 个答案:

答案 0 :(得分:0)

我在Eclipse中有同样的问题。我已经回到了7.9.0-Final,仅使用了kjar构建插件:kie-maven-plugin。您仍然可以在其余依赖项中使用7.12.0-Final。

答案 1 :(得分:0)

在pom.xml的build部分中添加以下插件管理

<pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.kie</groupId>
                                    <artifactId>kie-maven-plugin</artifactId>
                                    <versionRange>[7.12.0,)</versionRange>
                                    <goals>
                                        <goal>build</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore />
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>