Following the instruction and using properly the ANT command, i've created the JAR.
In order to get the addon working on Alfresco 4.2.d, the developers says: "you must deploy the Login page Reset Password Dialog module in Share's Module Deployment console in order to enable the capabilities."
Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.simontuffs.onejar.Boot.run(Boot.java:247) at com.simontuffs.onejar.Boot.main(Boot.java:105) Caused by: org.alfresco.repo.module.tool.ModuleManagementToolException: No module.properties file has been found in the installing .amp file '/Users/Fabrizio/Desktop/Recovery.amp'
Login page Reset Password Dialog module is an share extension module not an amp ,You should deploy it in Share's Module Deployment console instead of deploying it using mmt tool. 1.build the project you'll get a reset-password-dialog-<version>.jar file put it into the tomcat/shared/lib. 2.If You are using 4.2.c onwards,Open you browser and Navigate to page http://127.0.0.1:8080/share/service/modules/deploy ,in this page enable the module you deployed