`
chembo
  • 浏览: 923455 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

jrebel 安装与使用

阅读更多
此文权属个人研究学习之用。资源皆来自网络。
1.安装插件:
eclipse marketplace 搜索 jrebel
或help-> install new software, update site: http://www.zeroturnaround.com/update-site/

2.安装完后,提示invalid license. 关闭eclipse, 下载这个文件,
http://pan.baidu.com/share/link?shareid=1494205938&uk=537696768解压覆盖至eclipse/plugins/org.zeroturnaround.eclipse.embedder_5.5.2.RELEASE-201403191032 下。

3.重启eclipse. license已经生效了。

4.在所需要项目中使用jrebel, 以下以maven项目作介绍:
pom.xml plugins添加:
plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>  
        <rebelXmlDirectory>${basedir}/src/main/webapp/WEB-INF/classes</rebelXmlDirectory>  
    </configuration>  
</plugin>


5.test/resources下添加rebel.xml,路径改为你自己项目对应的:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

	<classpath>
		<dir name="F:/studio/junows/jee/src/main/webapp/WEB-INF/classes">
		</dir>
	</classpath>

	<web>
		<link target="/">
			<dir name="F:/studio/junows/jee/target/m2e-wtp/web-resources">
				<exclude name="/"/>
			</dir>
		</link>
		<link target="/">
			<dir name="F:/studio/junows/jee/src/main/webapp">
			</dir>
		</link>
	</web>

</application>



添加jvm启动参数:
${jrebel_args}
-noverify -XX:PermSize=128M -XX:MaxPermSize=512M
-Drebel.log=d\:\\jrebel\\jrebel.log
-Xms512m -Xmx1024m
-Drebel.spring_plugin=true


PS: 改properties\xml无效,这是要手动重启的。

分享到:
评论
1 楼 liyf155 2016-01-26  
世界太小了,统一移动平台的jrebel插件是不是就是你搞的,今天偶然一搜居然就搜到你这了。  

相关推荐

Global site tag (gtag.js) - Google Analytics