Importing jBPM examples in Eclipse

55 views
Skip to first unread message

Alok Jain

unread,
Sep 29, 2020, 5:27:02 AM9/29/20
to jBPM Setup
Hi Experts,

I want to import jBPM examples into eclipse to run the source and put some jUNIT annotations.

Please advise. Also suggest some reference site or video.

Regards
Alok

Nitin Sharma

unread,
Oct 1, 2020, 9:17:33 AM10/1/20
to jBPM Setup
Hi Alok,

Pls find the jbpm video reference.

Alok Jain

unread,
Oct 1, 2020, 10:01:18 AM10/1/20
to Nitin Sharma, jBPM Setup
Thanks.

I will surely go through these.

I am stuck at how to get the source code for all the samples provided in jBPM.

After getting the source code how to import that in eclipse and run the code?

With Regards,

Aalok Jain|PRINCE2® CSM®
Senior Project Manager
Newgen Software Technologies Ltd.
TOWER-E, Oxygen SEZ, Sector-144, Noida SEZ, Uttar Pradesh - 201301
Office : +91-0120-6761000 | Ext. : 3054 | Mob. : +91 9313901463
Sent from mobile device please excuse brevity, typos and any formatting errors.

From: jbpm-...@googlegroups.com <jbpm-...@googlegroups.com> on behalf of Nitin Sharma <nitinsh...@gmail.com>
Sent: Thursday, October 1, 2020 6:47:32 PM
To: jBPM Setup <jbpm-...@googlegroups.com>
Subject: Re: Importing jBPM examples in Eclipse
 
--
You received this message because you are subscribed to a topic in the Google Groups "jBPM Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jbpm-setup/y7QwPIgDqIw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jbpm-setup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/2d8463a4-64cc-4a8f-81e3-fe4486903d85n%40googlegroups.com.

Pravin Barate

unread,
Oct 1, 2020, 10:59:54 AM10/1/20
to Alok Jain, Nitin Sharma, jBPM Setup
Hi Alok,
    You can refer to below GitHub links fo the jbpm examples and playground.


You received this message because you are subscribed to the Google Groups "jBPM Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-setup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/DM5PR0701MB37032403CB7D98917438E377AC300%40DM5PR0701MB3703.namprd07.prod.outlook.com.


--




Thanks & Regards,
 Pravin Barate,

Alok Jain

unread,
Oct 1, 2020, 11:01:08 AM10/1/20
to Pravin Barate, Nitin Sharma, jBPM Setup
Thanks

With Regards,

Aalok Jain|PRINCE2® CSM®
Senior Project Manager
Newgen Software Technologies Ltd.
TOWER-E, Oxygen SEZ, Sector-144, Noida SEZ, Uttar Pradesh - 201301
Office : +91-0120-6761000 | Ext. : 3054 | Mob. : +91 9313901463
Sent from mobile device please excuse brevity, typos and any formatting errors.

From: Pravin Barate <pravin...@gmail.com>
Sent: Thursday, October 1, 2020 8:29:14 PM
To: Alok Jain <alokj...@gmail.com>
Cc: Nitin Sharma <nitinsh...@gmail.com>; jBPM Setup <jbpm-...@googlegroups.com>

alokj...@gmail.com

unread,
Oct 1, 2020, 2:14:44 PM10/1/20
to Pravin Barate, Nitin Sharma, jBPM Setup

Thanks I have imported project into Eclipse, now there are problems in Maven versions and JRE versions being referenced in the workspace.

 

Due to this Maven repositories are not getting downloaded, have you faced any such issue

 

Also can someone help me in guiding how to execute and run the jBPM projects in eclipse as I am new to jBPM

 

Thanks in Advance

 

Error is below;

 

Could not download sources or javadoc

Could not read maven project

Some problems were encountered while processing the POMs:

[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file D:\Users\Alok\eclipse\jee-latest-released\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ org.jboss:jboss-parent:11, D:\CI-CD\Maven_Repo\org\jboss\jboss-parent\11\jboss-parent-11.pom, line 171, column 21

[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file D:\Users\Alok\eclipse\jee-latest-released\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ org.jboss:jboss-parent:11, D:\CI-CD\Maven_Repo\org\jboss\jboss-parent\11\jboss-parent-11.pom, line 171, column 21

[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file D:\Users\Alok\eclipse\jee-latest-released\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ org.jboss:jboss-parent:11, D:\CI-CD\Maven_Repo\org\jboss\jboss-parent\11\jboss-parent-11.pom, line 171, column 21

[ERROR] 'dependencies.dependency.version' for org.jbpm:jbpm-shared-services:jar:btm is missing. @ line 127, column 21

[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file D:\Users\Alok\eclipse\jee-latest-released\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ org.jboss:jboss-parent:11, D:\CI-CD\Maven_Repo\org\jboss\jboss-parent\11\jboss-parent-11.pom, line 171, column 21

 

Some problems were encountered while processing the POMs:

[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file D:\Users\Alok\eclipse\jee-latest-released\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ org.jboss:jboss-parent:11, D:\CI-CD\Maven_Repo\org\jboss\jboss-parent\11\jboss-parent-11.pom, line 171, column 21

[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file D:\Users\Alok\eclipse\jee-latest-released\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ org.jboss:jboss-parent:11, D:\CI-CD\Maven_Repo\org\jboss\jboss-parent\11\jboss-parent-11.pom, line 171, column 21

[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file D:\Users\Alok\eclipse\jee-latest-released\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ org.jboss:jboss-parent:11, D:\CI-CD\Maven_Repo\org\jboss\jboss-parent\11\jboss-parent-11.pom, line 171, column 21

[ERROR] 'dependencies.dependency.version' for org.jbpm:jbpm-shared-services:jar:btm is missing. @ line 127, column 21

[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file D:\Users\Alok\eclipse\jee-latest-released\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ org.jboss:jboss-parent:11, D:\CI-CD\Maven_Repo\org\jboss\jboss-parent\11\jboss-parent-11.pom, line 171, column 21

 

 

Regards

Alok

 

From: Pravin Barate <pravin...@gmail.com>

Sent: 01 October 2020 20:29
To: Alok Jain <alokj...@gmail.com>

Mohamed OUMAST

unread,
Mar 1, 2021, 8:46:12 AM3/1/21
to jBPM Setup
Can you find any track for your problem ?, I encountered the same problem, tell me?

Abhijit Humbe

unread,
Mar 1, 2021, 10:39:36 AM3/1/21
to Mohamed OUMAST, jBPM Setup
Can you share exception and jbpm version you are using? if possible share project pom.xml

Abhijit Humbe


--
You received this message because you are subscribed to the Google Groups "jBPM Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-setup+...@googlegroups.com.

Mohamed OUMAST

unread,
Mar 3, 2021, 10:04:27 AM3/3/21
to jBPM Setup
Yes, this is my pom.xml
<?xml version="1.0" encoding="UTF-8"?>

    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.kie</groupId>
        <artifactId>kie-parent</artifactId>
        <version>7.51.0-SNAPSHOT</version>
        <!-- relativePath causes out-of-date problems on hudson slaves -->
        <!--<relativePath>../droolsjbpm-build-bootstrap/pom.xml</relativePath>-->
    </parent>

    <groupId>org.jbpm</groupId>
    <artifactId>jbpm</artifactId>
    <packaging>pom</packaging>

    <name>jBPM :: Multiproject</name>
    <description>jBPM: a Business Process Management (BPM) Suite</description>

    <properties>
        <!--
         These properties are used in the database profiles. Some of them must be initialized as empty strings
         so that Maven applies them via filtering.
         -->
        <maven.hibernate.dialect>org.hibernate.dialect.H2Dialect</maven.hibernate.dialect>
        <maven.datasource.classname>org.h2.jdbcx.JdbcDataSource</maven.datasource.classname>
        <maven.jdbc.driver.class>org.h2.Driver</maven.jdbc.driver.class>
        <maven.jdbc.db.name/>
        <maven.jdbc.db.port/>
        <maven.jdbc.db.server/>
        <maven.jdbc.driver.jar/>
        <maven.jdbc.username>sa</maven.jdbc.username>
        <maven.jdbc.password>sasa</maven.jdbc.password>
        <maven.jdbc.url>jdbc:h2:mem:jbpm-db;MVCC=true</maven.jdbc.url>
        <maven.jdbc.schema>public</maven.jdbc.schema>

        <checkstyle.failOnViolation>true</checkstyle.failOnViolation>
        <checkstyle.logViolationsToConsole>true</checkstyle.logViolationsToConsole>
        <spotbugs.failOnViolation>true</spotbugs.failOnViolation>
        <checkstyle.header.template><![CDATA[
^\/\*$\n^
\* Copyright \d\d\d\d Red Hat, Inc\. and\/or its affiliates\.$\n^
\*$\n^
\* Licensed under the Apache License, Version 2\.0 \(the &quot;License&quot;\);$\n^
\* you may not use this file except in compliance with the License\.$\n^
\* You may obtain a copy of the License at$\n^
\*$\n^
\*     http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0$\n^
\*$\n^
\* Unless required by applicable law or agreed to in writing, software$\n^
\* distributed under the License is distributed on an &quot;AS IS&quot; BASIS,$\n^
\* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$\n^
\* See the License for the specific language governing permissions and$\n^
\* limitations under the License\.$\n^
\*\/$
]]>
        </checkstyle.header.template>
        <jacoco.agent.line/>
    </properties>

    <repositories>
        <!-- Bootstrap repository to locate the parent pom when the parent pom has not been build locally. -->
        <repository>
            <id>jboss-public-repository-group</id>
            <name>JBoss Public Repository Group</name>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
        </repository>
    </repositories>

    <scm>
        <connection>scm:git:https://github.com:kiegroup/jbpm.git</connection>
        <developerConnection>scm:git:g...@github.com:kiegroup/jbpm.git</developerConnection>
        <url>https://github.com/kiegroup/jbpm</url>
    </scm>
    <issueManagement>
        <system>jira</system>
    </issueManagement>

    <modules>
        <module>jbpm-db-scripts</module>
        <module>jbpm-test-util</module>
        <module>jbpm-flow</module>
        <module>jbpm-flow-builder</module>
        <module>jbpm-persistence</module>
        <module>jbpm-query-jpa</module>
        <module>jbpm-audit</module>
        <module>jbpm-bpmn2</module>
        <module>jbpm-bpmn2-emfextmodel</module>
        <module>jbpm-workitems</module>
        <module>jbpm-human-task</module>
        <module>jbpm-runtime-manager</module>
        <module>jbpm-services</module>
        <module>jbpm-document</module>
        <module>jbpm-test</module>
        <module>jbpm-case-mgmt</module>
        <module>jbpm-test-coverage</module>
        <module>jbpm-examples</module>
        <module>jbpm-container-test</module>
        <module>jbpm-event-emitters</module>
        <module>jbpm-xes</module>
    </modules>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <additionalClasspathElements>
                            <additionalClasspathElement>${maven.jdbc.driver.jar}</additionalClasspathElement>
                        </additionalClasspathElements>
                    </configuration>
                </plugin>
                <!-- checkstyle plugin should only do header(copyright) check -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>validate</id>
                            <phase>validate</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                            <configuration>
                                <checkstyleRules>
                                    <module name="Checker">
                                        <module name="RegexpHeader">
                                            <property name="header" value="${checkstyle.header.template}"/>
                                            <property name="fileExtensions" value="${checkstyle.header.extensions}"/>
                                        </module>
                                    </module>
                                </checkstyleRules>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.jbpm</groupId>
                <artifactId>jbpm-test-util</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>simple-jndi</groupId>
                <artifactId>simple-jndi</artifactId>
                <version>0.11.4.1</version>
            </dependency>
            <dependency>
                <groupId>org.drools</groupId>
                <artifactId>drools-bom</artifactId>
                <version>${version.org.kie}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.jbpm</groupId>
                <artifactId>jbpm-bom</artifactId>
                <version>${version.org.kie}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.kie.soup</groupId>
                <artifactId>kie-soup-bom</artifactId>
                <version>${version.org.kie}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.kie</groupId>
                <artifactId>kie-dmn-bom</artifactId>
                <type>pom</type>
                <version>${version.org.kie}</version>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <profiles>
        <profile>
            <id>fullProfile</id>
            <activation>
                <property>
                    <name>full</name>
                </property>
            </activation>
            <modules>
                <module>jbpm-distribution</module>
            </modules>
        </profile>

        <profile>
            <id>mariadb</id>
            <!-- Important: one still needs to specify the MariaDB JDBC driver jar!

                 Following are the default values for MariaDB started via Docker:
                 "docker run &#x002d;&#x002d;name mariadb-jbpm -e MYSQL_ROOT_PASSWORD="admin1234" -d -p 3306:3306 mariadb:latest"
                 (replace the "&#x002d;&#x002d;" with two "-"
                 More info at https://hub.docker.com/_/mariadb/-->
            <properties>
                <maven.hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</maven.hibernate.dialect>
                <maven.datasource.classname>org.mariadb.jdbc.MySQLDataSource</maven.datasource.classname>
                <maven.jdbc.driver.class>org.mariadb.jdbc.Driver</maven.jdbc.driver.class>
                <maven.jdbc.db.name>mysql</maven.jdbc.db.name>
                <maven.jdbc.db.port>3306</maven.jdbc.db.port>
                <maven.jdbc.driver.jar/>
                <maven.jdbc.username>root</maven.jdbc.username>
                <maven.jdbc.password>admin1234</maven.jdbc.password>
                <maven.jdbc.url>jdbc:mariadb://localhost:3306/mysql?pinGlobalTxToPhysicalConnection=true
                </maven.jdbc.url>
                <maven.jdbc.schema>mysql</maven.jdbc.schema>
            </properties>
        </profile>

        <profile>
            <id>run-code-coverage</id>
            <properties>
                <jacoco.excludes>*Lexer</jacoco.excludes>

                <!-- jacoco.exec.file is defined in kie-parent -->
                <!--suppress UnresolvedMavenProperty -->
                <jacoco.agent.line>
                    -javaagent:${settings.localRepository}/org/jacoco/org.jacoco.agent/${version.jacoco.plugin}/org.jacoco.agent-${version.jacoco.plugin}-runtime.jar=destfile=${jacoco.exec.file},append=true,excludes=${jacoco.excludes}
                </jacoco.agent.line>
                <surefire.argLine>
                    -Dfile.encoding=${project.build.sourceEncoding}
                    ${jacoco.agent.line}
                </surefire.argLine>
            </properties>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.codehaus.cargo</groupId>
                            <artifactId>cargo-maven2-plugin</artifactId>
                            <configuration>
                                <configuration>
                                    <properties>
                                        <cargo.start.jvmargs>${jacoco.agent.line}</cargo.start.jvmargs>
                                    </properties>
                                </configuration>
                            </configuration>
                        </plugin>
                        <plugin>
                            <artifactId>maven-surefire-plugin</artifactId>
                            <configuration>
                                <argLine>${surefire.argLine}</argLine>
                            </configuration>
                            <dependencies>
                                <dependency>
                                    <groupId>org.jacoco</groupId>
                                    <artifactId>org.jacoco.agent</artifactId>
                                    <version>${version.jacoco.plugin}</version>
                                    <classifier>runtime</classifier>
                                </dependency>
                            </dependencies>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
        <profile>
            <id>community-only</id>
            <activation>
                <property>
                    <name>productized</name>
                    <value>!true</value>
                </property>
            </activation>
            <modules>
                <module>jbpm-installer</module>
            </modules>
        </profile>
    </profiles>

</project>

Mohamed OUMAST

unread,
Mar 3, 2021, 10:06:35 AM3/3/21
to jBPM Setup
Please find attached my pom.xml file
pom.xml
Reply all
Reply to author
Forward
0 new messages