mvn的pom.xml和osgi的.mf文件

来源:互联网 发布:自己建一个淘宝秒杀群 编辑:程序博客网 时间:2024/05/18 15:24
交谈中请勿轻信汇款、中奖信息、陌生电话,勿使用外挂软件。

冷空气的思维(41777717)  19:09:34
2012-09-04 19:08:40,134 [/// - ] ERROR impl.HuoredServiceImpl - 返回服务器端内容为responseXml<html><head><title>Apache Tomcat/5.5.20 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /third/service.htm</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/third/service.htm</u></p><p><b>description</b> <u>The requested resource (/third/service.htm) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.20</h3></body></html>,request=QueryPlayDataHuoredRequest[issueNo=20120905,subLottery=<null>,lottery=JCZQ,partnerId=0,timestamp=2012-09-04 19:08:40]


鹰眼(352508292)  19:31:14
bug
鹰眼(352508292)  19:35:52
测试环境drawcenter出现
鹰眼(352508292)  20:10:00
20:09:22,886 [main] ERROR EclipseDeployer : Unresolved Sub Deployments: 
com.bench.app.drawcenter.web.third : [com.bench.app.drawcenter.web.home, com.bench.runtime.web.smvc]
com.bench.app.drawcenter.web.client : [com.bench.app.drawcenter.web.home, com.bench.runtime.web.smvc]
com.bench.app.drawcenter.web.home : [com.bench.runtime.web.smvc]
com.bench.runtime.web.smvc : [com.bench.platform.cache]
com.bench.platform.cache : null



ZZzz......(24669379)  20:12:54
你是本地启不来吗?  
王佳亮(13792181)  20:13:14
是的
ZZzz......(24669379)  20:13:14
还是服务器航
没有cache的依赖
==
ZZzz......(24669379)  20:14:36
你再drawcenter的core model的pom.xml里,增加<dependency>
<groupId>com.bench.platform</groupId>
<artifactId>bench-platform-cache</artifactId>
</dependency>
重新mvn即可
==我已经加好了
我上传下
ZZzz......(24669379)  20:16:24
再在core shared的MANIFAST。MF文件里,required-bundle里增加com.bench.platform.rule
就可以了
好了,这2个文件我都修改了
你看下
mvn下
鹰眼(352508292)  20:16:57
com.bench.platform.rule
为什么要加这个?
ZZzz......(24669379)  20:16:58
看看本地能起来吗
错了
是com.bench.platform.cach
cache

加完后是职业
是这样
鹰眼(352508292)  20:18:12

ZZzz......(24669379)  20:18:13
core-model的pom.xml里增加,是让eclipse的。classpath里生成对bench-platform-cache的依赖,这样eclipse里就可以使用cache里的代码了
而mf文件里,增加,是说再core-shared启动前,必须先启动platform-cache
鹰眼(352508292)  20:18:41
线上 pom文件 不加也不行吧。
因为 jar包都没down下来
ZZzz......(24669379)  20:18:55

线上的drawcenter的总控pom.xml不用加
因为总控pom.xml是继承了<parent>
   <groupId>com.bench.lib</groupId>
   <artifactId>app-lib-parent</artifactId>
   <version>1.0-SNAPSHOT</version>
   </parent>
ZZzz......(24669379)  20:19:58
所有需要依赖的bench库版本和公用的如apache。xml的版本,都已经在<parent>
   <groupId>com.bench.lib</groupId>
   <artifactId>app-lib-parent</artifactId>
   <version>1.0-SNAPSHOT</version>
   </parent>
维护过了
鹰眼(352508292)  20:20:04
就是说 线上只要改.mf文件即可
ZZzz......(24669379)  20:20:25
修改MF文件,可以保证core-shared再启动前,必须会先启动bench-platform-cache
这个,无论是eclipse方式启动,还是测试服务器启动
都需要这个逻辑
但是,测试服务器启动的时候,它的jar包的依赖拷贝,是有ear里的pom.xml来完成的
ZZzz......(24669379)  20:21:30
其中需要拷贝bench的platform的库,再ear的pom.xml里的 <execution>
                        <id>copy-platform</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
这个部分
你可以看下
里面拷贝了很多bench platform的包
但是现在里面没有platform cache的包
所以你还需要加1个cache的包
ZZzz......(24669379)  20:22:30
这样才能保证,构造drawcenter.ear这个东西的时候,会把cache包也拷贝过去
理解了吗
core-shared的mf了,eclipse和linux服务器都需要
鹰眼(352508292)  20:22:55
20:20:52,343 ERROR [NuxeoDeployer] Unresolved Sub Deployments: 
com.bench.app.drawcenter.web.third : [com.bench.app.drawcenter.web.home, com.bench.runtime.web.smvc]
com.bench.app.drawcenter.web.client : [com.bench.app.drawcenter.web.home, com.bench.runtime.web.smvc]
com.bench.app.drawcenter.web.home : [com.bench.runtime.web.smvc, com.bench.app.drawcenter.biz.service.impl]
com.bench.app.drawcenter.biz.shared : [com.bench.app.drawcenter.core.service]
com.bench.app.drawcenter.core.service : [com.bench.app.drawcenter.core.shared]
com.bench.app.drawcenter.core.shared : [com.bench.platform.cache]
com.bench.app.drawcenter.biz.service.impl : [com.bench.app.drawcenter.biz.shared, com.bench.app.drawcenter.core.service]
com.bench.runtime.web.smvc : [com.bench.platform.cache]
com.bench.platform.cache : null
com.bench.drawcenter.ext.service.war : [com.bench.runtime.web.smvc]
ZZzz......(24669379)  20:23:00
而core-model的pom。xml里,是给eclipse生成用的
你mvn eclipse了吗
鹰眼(352508292)  20:23:13
JBOSS  还是报错了。

这是 测试环境
ZZzz......(24669379)  20:23:27
哥ear的pom.xml还没有修改呢
你慌什么
哥一直再给你打字
鹰眼(352508292)  20:23:58
那你先修改下 提交了。
ZZzz......(24669379)  20:24:03
好了
你更新编译发布
就好了
看懂了吗
理解没
不理解抽死你
pom.xml,可以生成eclipse的。classpath和。project文件
也可以用于ear的打包
ZZzz......(24669379)  20:25:10
这个是maven的插件来完成的
ZZzz......(24669379)  20:26:16
而测试服务器的jboss的启动
是用ant来完成的
ant完成了jboss运行环境的构建,oracle环境的初始化
最后通过/opt/software/jboss/bin下的run.sh,来启动jboss,加载ear
ZZzz......(24669379)  20:27:34
当然,maven里的pom.xml有ant插件,这样,就可以再pom.xm里,直接编写ant的脚本了
原创粉丝点击