注意更新maven的jetty plugin,解决eclipse中编辑静态文件时的死锁问题!
解决方法参考:Maven+Jetty免静态文件 死锁的处理 和 解决Jetty运行时锁定静态文件(css, js, image)的问题
使用Maven2加入Jetty的插件,初步运行成功后,发现在Jetty服务启动后无法修改js/css等静态文件,那可是极不爽的事情,总不能修改一个js/css就要重启下Jetty吧!就算只有几个按钮,累积起来也很浪费时间!
由于我既使用maven-jetty-plugin插件,作为Maven下Web快速应用开发的工具,而在Eclipse中Debug项目时采用的是Run-jetty-run插件,通过查看Maven+Jetty免静态文件 死锁的处理 链接解决了控制台下启动后修改报错的问题后,进入Eclipse通过Run-jetty-run启动后问题依然存在,发现Run-jetty-run插件的Jetty版本为Eclipse中的老版本,遵照“解决Jetty运行时锁定静态文件(css, js, image)的问题“链接,将Jetty升级到6.1.24版本,并修改相关设置后,问题解决.
这几天用到的Wordpress插件,记录!
1. 失效链接检查器
Checks your blog for broken links and missing images and notifies you on the dashboard if any are found.
http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/
2.NextGEN Gallery
A NextGENeration Photo gallery for the Web 2.0.
http://alexrabe.de/?page_id=80
3.Simple Tags
Extended Tagging for WordPress 2.8 and 2.9 ! Suggested Tags, Mass edit tags, Autocompletion, Tag Cloud Widgets, Related Posts, Related Tags, etc!
http://redmine.beapi.fr/projects/show/simple-tags
4.StatPressCN
shows you real time statistics about your blog, also support for Chinese perfectly
http://heart5.com/?page_id=629
5.WordPress Related Posts
Generate a related posts list via tags of WordPress
http://fairyfish.net/2007/09/12/wordpress-23-related-posts-plugin/
6.WP-PageNavi
Adds a more advanced paging navigation to your WordPress blog
http://wordpress.org/extend/plugins/wp-pagenavi/
7.wp-utf8-excerpt
This plugin generates a better excerpt for multibyte language users (Chinese, for example). Besides, it keeps the html tags in the excerpt. 为使用多字节语言(如中文)的Wordpress用户提供更好的摘要算法,以解决Wordpress默认摘要算法只考虑西方语言的不足。此外,此插件产生的摘要可保留原文中的格式。
Web.xml 中 CompressingFilter 定义的位置也会导致文件加载异常
如果碰到加载js / css / images 等文件出现莫名奇妙问题(如:类加载错误、$符号未定义、图片显示不了、css引用有的行有的不行等等等等)的时候,在你检查过文件引用路径,审视过相关文件的引用顺序,吐着鲜血在google hk 上挠头皮的时候,不要忘记检查下你的Filter的解析顺序,尤其是在你引用了 SpringSecurity 并想通过 UrlRewrite 实现简化路径的目的时,切记,谨记,铭记在心。
片段:
<filter-mapping>
<filter-name>CompressingFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
一定要放在
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>rewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
之后,btw springSecurityFilterChain 要在 rewriteFilter 之前解析。
Maven2 的 WARN Messages
[WARN] Failed to……………….
1 required artifact is missing. for artifact: org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1
Note about 0.9.8 Workspace Incompatibility: If you are using m2eclipse 0.10.0 with a workspace that contains projects created under m2eclipse 0.9.8, you must remove the workspaceState.ser file. The workspaceState.ser file is located within the workspace directory in $workspacedir/.metadata/.plugins/org.maven.ide.eclipse/workspaceState.ser. If you remove this file, m2eclipse 0.10.0 will regenerate it as needed.
不过如果不是0.9.8生成的Project那就只能下载缺失的jar文件,比如这里是 maven-resources-plugin-2.4.1.jar。
Then, install it using the command:
mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-interactivity-api -Dversion=1.0-alpha-4 -Dpackaging=jar -Dfile=/path/to/fileAlternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-interactivity-api -Dversion=1.0-alpha-4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
我选择的前者。
