2 Replies Latest reply on May 14, 2015 9:01 AM by Michael Awizen

    kJAR installation on the local maven repository - pom error

    Michael Awizen Novice

      Hi everybody,

       

      I have created a minimal maven project to install arbitrary bpmn process definitions on my local maven.

       

      Basically it works. Installation on maven works. The subsequent deployment of processes in separate jBPM project works fine.

       

      However the irritating thing is the error message eclipse is showing in the pom file:

       

      Plugin execution not covered by lifecycle configuration: org.kie:kie-maven-plugin:6.2.0.Final:build (execution:  default-build, phase: compile)

       

      Any ideas what is wrong in the pom?

       

      Is there a better way for installing of kjars?

       

      This is the pom:

       

      <?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>org.example</groupId>
        <artifactId>jbpm6_2</artifactId>
        <version>1.0</version>
        <packaging>kjar</packaging>
        <name>jbpm6_2</name>
        
        <build>
          <plugins>
            <plugin>
              <groupId>org.kie</groupId>
              <artifactId>kie-maven-plugin</artifactId>
              <version>6.2.0.Final</version>
              <extensions>true</extensions>
            </plugin>
          </plugins>
        </build>
        
        <dependencies>
          <dependency>
            <groupId>org.kie</groupId>
            <artifactId>kie-api</artifactId>
            <version>6.2.0.Final</version>
            <scope>provided</scope>
          </dependency>
          <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-bpmn2</artifactId>
            <version>6.2.0.Final</version>
            <scope>provided</scope>
          </dependency>
        </dependencies>
        <repositories>
          <repository>
            <id>guvnor-m2-repo</id>
            <name>Guvnor M2 Repo</name>
            <url>http://localhost:8080/business-central/maven2/</url>
          </repository>
          <repository>
            <id>jboss-community-public-repository</id>
            <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
          </repository>
          <repository>
            <id>rh-repository</id>
            <url>http://maven.repository.redhat.com/techpreview/all</url>
          </repository>
        </repositories>
      </project>
      

       

       

      Please see enclosed my kjar project.

        • 1. Re: kJAR installation on the local maven repository - pom error
          Maciej Swiderski Master

          looks like m2eclipse issue that was covered in this thread so it might get handy for you too.

           

          HTH

          • 2. Re: kJAR installation on the local maven repository - pom error
            Michael Awizen Novice

            Maciej, thank you so much for the hint!

             

            Adding the <pluginManagement> section fixes the pom:

             

            <?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>org.example</groupId>
                <artifactId>jbpm6_2</artifactId>
                <version>1.0</version>
                <packaging>kjar</packaging>
                <name>jbpm6_2</name>
            
                <properties>
                    <jbpm.version>6.2.0.Final</jbpm.version>
                </properties>
            
                <build>
                    <plugins>
                        <plugin>
                            <groupId>org.kie</groupId>
                            <artifactId>kie-maven-plugin</artifactId>
                            <version>${jbpm.version}</version>
                            <extensions>true</extensions>
                        </plugin>
                    </plugins>
            
                    <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>[6.0.0,)</versionRange>
                                                    <goals>
                                                        <goal>build</goal>
                                                    </goals>
                                                </pluginExecutionFilter>
                                                <action>
                                                    <ignore />
                                                </action>
                                            </pluginExecution>
                                        </pluginExecutions>
                                    </lifecycleMappingMetadata>
                                </configuration>
                            </plugin>
                        </plugins>
                    </pluginManagement>
            
                </build>
            
                <dependencies>
                    <dependency>
                        <groupId>org.jbpm</groupId>
                        <artifactId>jbpm-bpmn2</artifactId>
                        <version>${jbpm.version}</version>
                        <scope>provided</scope>
                    </dependency>
                </dependencies>
            
                <repositories>
                    <repository>
                        <id>jboss-community-public-repository</id>
                        <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
                    </repository>
                </repositories>
            </project>