JBPM5 Designer 2.3源码问题

最新本2.4发布,但是里面是使用Maven的module方式来管理,鉴于知识有限,不会这种方式,所以选择2.3版本的源码
[color=blue][b]2.4[/b][/color]
war:[url]http://sourceforge.net/projects/jbpm/files/designer/designer-2.4/[/url]
源码:[url]https://github.com/droolsjbpm/jbpm-designer[/url]
[color=blue][b]2.3[/b][/color]
war: [url]http://sourceforge.net/projects/jbpm/files/designer/designer-2.3/[/url]
源码:[url]https://github.com/tsurdilo/process-designer.git[/url] (我是怎么找到的?忘记了,我记得是登录到war下载的位置,然后下面一段话就是说源码地址是这个,可下午我再进去的时候,这个地址就变成了2.4版本的地址,到底是我记错,还是? 这两个地址都能在[url]https://github.com/tsurdilo[/url]找到, [u]其实我是根据它最后修改时间,来猜测是2.3版本[/u]。) 是在readme.txt里面找到的
[color=red][b]1.由于缺少许多包[/b][/color],所以要自动下载,并加入到本地Maven仓库里面,注意,这些包版本一定要对,否则出很多问题,[color=red][b]不要怕,我在附件里面增加了[/b][/color]。
[i][color=darkblue]mvn install:install-file -Dfile=/mnt/d/work_documents/jar2mvn/xmappr-0.9.3.jar -DgroupId=org.xmappr -DartifactId=xmappr -Dversion=0.9.3 -Dpackaging=jar
mvn install:install-file -Dfile=/mnt/d/work_documents/jar2mvn/jbpt-0.1.0.jar -DgroupId=jbpt -DartifactId=jbpt -Dversion=0.1.0 -Dpackaging=jar
mvn install:install-file -Dfile=/mnt/d/work_documents/jar2mvn/atlas-1.0.0.jar -DgroupId=de.hpi -DartifactId=atlas -Dversion=1.0.0 -Dpackaging=jar
mvn install:install-file -Dfile=/mnt/d/work_documents/jar2mvn/org.eclipse.bpmn2-0.7.0.010.jar -DgroupId=org.eclipse -DartifactId=org.eclipse.bpmn2 -Dversion=0.7.0.010 -Dpackaging=jar
mvn install:install-file -Dfile=/mnt/d/work_documents/jar2mvn/org.eclipse.emf.ecore-2.6.0.v20100614-1136.jar -DgroupId=org.eclipse.emf -DartifactId=org.eclipse.emf.ecore -Dversion=2.6.0.v20100614-1136 -Dpackaging=jar
mvn install:install-file -Dfile=/mnt/d/work_documents/jar2mvn/SuperCSV-1.52.jar -DgroupId=org.supercsv -DartifactId=SuperCSV -Dversion=1.52 -Dpackaging=jar[/color][/i]

[color=red][b]2.修改pom.xml[/b][/color],使用jetty发布:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<archive>
<manifest>
<!--<addClasspath>true</addClasspath> -->
</manifest>
<manifestEntries>
<Built-By>org-builder</Built-By>
<Build-Jdk>${java.version}</Build-Jdk>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.20</version>
<configuration>
<contextPath>/designer</contextPath>
<!--<webDefaultXml>webdefault.xml</webDefaultXml> -->
<scanIntervalSeconds>0</scanIntervalSeconds>
<scanTargetPatterns>
<scanTargetPattern>
<directory>src/main/webapp/WEB-INF</directory>
<excludes>
<exclude>**/*.jsp</exclude>
</excludes>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</scanTargetPattern>
</scanTargetPatterns>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>${buildNumber}</Implementation-Build>
</manifestEntries>
</archive>
<dependentWarExcludes>
**/jdbc.properties,**/web.xml,WEB-INF/classes/META-INF/**
</dependentWarExcludes>
</configuration>
</plugin>

[color=red][b]3.注意pom.xml里面[/b][/color],配置jetty插件的时候,存在[color=red][b]<contextPath>/designer</contextPath>[/b][/color],这个不能修改,否则html报异常,大概是文件找不到,因为源码的上下文是/designer。
[color=red][b]4. 修改src/main/webapp/WEB-INF/web.xml[/b][/color]
<servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>

<!-- <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class> -->
<!-- <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> -->
第一个是Maven发布方式的。
第二个是eclipse以jetty方式发布。
第三个是tomcat的war方式发布。
[color=red][b]5.main/webapp/META-INF这里缺少一个文件[/b][/color]:[color=red][b]MANIFEST.MF[/b][/color],这个文件我是在2.4(2.3版本也有)的war在tomcat下面部署后得到的。缺少这个文件,报异常,无法运行。

[color=red][b]设定多语言[/b][/color]:[url]https://community.jboss.org/thread/162276[/url]
<init-param>
<param-name>designer.locale</param-name>
<param-value>en_us</param-value>
</init-param>

[color=red][b]界面多语言[/b][/color]:src/main/webapp/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json 这个是实时生成的。从哪里生成呢?
src/main/webapp/stencilsets/stencilsets.json
src/main/webapp/stencilsets/extensions/extensions.json
src/main/webapp/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
src/main/webapp/stencilsets/bpmn2.0jbpm/stencildata/bpmn2.0jbpm.orig
应该是:[color=blue][b]src/main/webapp/stencilsets/bpmn2.0jbpm/stencildata/bpmn2.0jbpm.orig[/b][/color]


[color=red][b]6.启动jetty,然后进入[/b][/color]
访问地址: [url]http://localhost:8080/designer/editor?profile=jbpm[/url]
源码可以到官方下载,如要翻不了墙 ,就移步到:[url]http://download.csdn.net/detail/pyzheng/5440129[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值