Tuesday, September 13, 2011

mvn eclipse:eclipse Request to merge when 'filtering' is not identical

To setup the eclipse IDE environment for a Maven project, I would typically use the following command:

mvn eclipse:eclipse

However, I received the following error:


[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Request to merge when 'filtering' is not identical. Original=resource src/main/resources: output=target/classes, include=[atlassian-plugin.xml], exclude=[**/*.java], test=false, filtering=true, merging with=resource src/main/resources: output=target/classes, include=[], exclude=[atlassian-plugin.xml|**/*.java], test=false, filtering=false
[INFO] ------------------------------------------------------------------------

It turns out there's bug with the latest version of the eclipse plugin for maven.
The workaround was to use:

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
References:
http://forums.atlassian.com/thread.jspa?threadID=34952

Wednesday, September 7, 2011

IE likes to cache ajax responses

To disable caching of ajax responses in IE when using jQuery use the following:

$.ajax({
  url: "./chat.php?type=json",
  cache: false,
  dataType: "json",
  success: function(data) {
    // Go do this, go do that…
}});


References:

http://i.justrealized.com/2008/jquerys-getjson-failing-randomly-in-internet-explorer