Posts

Showing posts with the label Plugin

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:3.1 or one of its dependencies could not be resolved.

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:3.1 or one of its dependencies could not be resolved . First of all, check the maven repositiory server is up. 1. Check Proxy is set up and working First I thought it was a proxy problem, I made sure that maven settings.xml contained the proxy settings (settings.xml can exist in two places one in MAVEN_HOME. The other in %userprofile%.m2\ with the later having higher precedence): <proxy>   <id> optional </id>   <active> true </active>     <protocol> http </protocol>   <username> optional-proxyuser </username>   <password> optional-proxypass </password>   <host> proxy.host.net </host>   <port> 80 </port>   <nonProxyHosts> local.net|some.host.com </nonProxyHosts> </proxy> and checked that the proxy is working by trying...

How to Create a simple jQuery Plugin

A jQuery plugin is simply a new method that we use to extend jQuery's prototype object. Why should we create plugins? in simple meaning: For re-usability. By extending jQuery, we create reusable components that can be used on any web page. Our code is encapsulated and there is less risk that we will use the same function names elsewhere. How jQuery works: First we will understand a little about how jQuery works. Take a look at below code: // color all <div> tags blue $("div").css("color", "blue"); Note: The jQuery library is named ‘jQuery’, ‘$’ is a shortcut variable that references it. Whenever we use the $ function to select elements, it returns a jQuery object, which is an array-like collection of DOM elements. This object contains all of the methods we have been using (.css(), .click() etc.) and all of the DOM elements that fit the selector (in our example code shown above, all divs). The jQuery object gets these me...