JBPM 3.2.3 示例项目与 MAVEN 的集成

发布于 2024-12-15 01:54:53 字数 1941 浏览 0 评论 0 原文

我在将 jbpm 3.2.3 与 Maven 集成时遇到了这个问题。 我在jbpm中编写了一些测试用例。运行 mvn clean install 时这些测试用例失败。

我发现在我的根目录中,无法下载jUnit和其他相关的jbpm jar文件。

以下依赖项,我在POM文件中提供了-->

<dependency>
  <groupId>org.jbpm</groupId>
  <artifactId>jbpm-jpdl</artifactId>
  <version>3.2.3</version>
</dependency>

<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>3.8.1</version>
  <scope>test</scope>
</dependency>

日志信息是-->

-------------------------------------------------------------------------------
Test set: com.sample.GetFriendListTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
testSimpleProcess(com.sample.GetFriendListTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: org/dom4j/Element
    at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:178)
    at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:160)
    at com.sample.GetFriendListTest.testSimpleProcess(GetFriendListTest.java:12)
Caused by: java.lang.ClassNotFoundException: org.dom4j.Element
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 29 more

请让我知道这个问题的解决方案..我很期待给你。

**谢谢 - - 乌彭德拉·瓦什诺

I am facing the problem while integrating the jbpm 3.2.3 with Maven.
I wrote some testcases in jbpm. These test cases are failed while running the mvn clean install.

I found that in my root directory, It is not able to download the jUnit and other related jbpm jar files.

The following dependency, I have provided in POM file-->

<dependency>
  <groupId>org.jbpm</groupId>
  <artifactId>jbpm-jpdl</artifactId>
  <version>3.2.3</version>
</dependency>

<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>3.8.1</version>
  <scope>test</scope>
</dependency>

The log information is-->

-------------------------------------------------------------------------------
Test set: com.sample.GetFriendListTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
testSimpleProcess(com.sample.GetFriendListTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: org/dom4j/Element
    at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:178)
    at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:160)
    at com.sample.GetFriendListTest.testSimpleProcess(GetFriendListTest.java:12)
Caused by: java.lang.ClassNotFoundException: org.dom4j.Element
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 29 more

Please let me know the solution of this.. I am looking forward to you.

**Thanks ----
Upendra vaishnow

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

恰似旧人归 2024-12-22 01:54:53

如果可能,至少升级到 3.2.4。 3.2.4 有一个 pom.xml,以便包含所有依赖项。 (顺便说一句,现在甚至有了 jBPM 5。)

如果您必须使用 3.2.3,那么看起来您必须包含此处找到的所有依赖关系:

http://anonsvn.jboss.org/repos/jbpm/jbpm3/tags/jpdl-3.2.3.GA/.classpath

If possible, upgrade to 3.2.4, at the very least. 3.2.4 has a pom.xml so that all dependencies will be included. (Btw, these days, there's even a jBPM 5.)

If you have to use 3.2.3, then it looks like you'll have to include all the depedendencies found here:

http://anonsvn.jboss.org/repos/jbpm/jbpm3/tags/jpdl-3.2.3.GA/.classpath

意犹 2024-12-22 01:54:53

在您的 pom.xml 中添加以下依赖行,也许这对您有用

<dependency>
  <groupId>dom4j</groupId>
  <artifactId>dom4j</artifactId>
  <version>1.6.1</version>
</dependency>

尝试一下。

请检查一次版本

Add following dependency lines in your pom.xml ,may this will work for you

<dependency>
  <groupId>dom4j</groupId>
  <artifactId>dom4j</artifactId>
  <version>1.6.1</version>
</dependency>

Try this.

Please do check for the version once

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文