这个问题的发生是由于树状工程结构中某个工程中的pom.xml中定义的”project -> version”或者”parent project -> version”设置的不对导致的。解决的原则是:本层的parent project version一定要和上一层的project version完全对应,无论是固定的版本号还是变量,都必须完全保持一致。否则maven在build时找不到该version,就会去local/remote repository里面去找。如果能找到,你恰好可以编译过去。但是一般来说,即使能够找到,它也不是你想要的,所以会存在潜在的危险。
Shell实现“取得当前机器IP并用其替换配置文件中的IP属性”
我在工作中遇到这样一个需求:运行于glassfish中的某个ear需要一个system property(对应于domain.xml中的配置),该property的值是当前机器的ip地址。由于我的机器每次重新启动被分配的ip是不同的,而我不想每次都手动先ifconfig取得ip地址再手工替换配置文件的内容,所以就想用shell脚本来实现该功能。
Seam的Interceptor
以下是工作中看到的一个exception stack trace:
Rails学习日记之一
我昨天按照书上的例子,当做到修改css的时候,发现修改后第一次访问没有问题,但是之后再访问,server端就会报错。
WordPress数据字典
More Linux Commands - A practical reference
From: http://www.pixelbeat.org/cmdline_zh_CN.html
Xiaoming Mo and Chen HuaJiang have kindly translated this page.
这是一个linux常见命令的列表。
Linux命令行技巧
Migarated from here at ‘2012-06-04 17:16:25’.
Selenium problem resolved: hung at "Preparing Firefox profile..." in Ubuntu 10.04/Firefox 3.6
Today When I wanted to run Selenium server I found it hung at “Preparing Firefox profile…” and didn’t open a firefox window.
IXWebhosting使用workpress时,如何把子目录重定向到根目录
Migarated from here at ‘2012-06-04 17:16:25’.
Hello world, hello WordPress!
Today I took some time to setup my personal blog system based on WordPress.