Attach Source to Alfresco Dependency in Maven

With the recent developments in Alfresco SDK since Alfresco 4.2 community version they have mavenized complete SDK and ANT is no longer being used. So, now all our repository and share related alfresco projects will also be managed by maven. During development we often needs to look in to the source of alfresco to get idea on various APIs of Alfresco hence it is required to set dependency properly and attach source to those alfresco dependency jar files.

Ways to attach source and Java Doc for maven based project.

Download and attach

If you search for this you will get to know about few ways provided by eclipse maven plugin which allow us to download that dependencies and source.

Different Options

Through POM.xml entry














Through Setting.xml entry of maven



Through these commands

mvn eclipse:eclipse-DdownloadJavadocs=true


mvn eclipse:eclipse-DdownloadSources-DdownloadJavadocs


You can directly select option from Eclipse as well as follow.

Alfresco Source Download

How to use Downloaded Alfresco SDK Source

  1. Download and Extract SDK in particular folder within your file system
  2. Right click on jar> Properties>Java Source AttachmentAlfresco Source Attach1
  3. You will see variable and extension options there
  4. Create New Variable SDK_PATH and point to src folder which you will find under the folder where you have extracted your SDK source.Alfresco Source Attach2




  1. Your Then in extension you need to select particular jar file source


.Alfresco Source Attach3

You will be able to see source of all services and alfresco classes. This is very useful for developers which are new to maven and used to of ANT developments.

Looking for quality Alfresco Web Hosting? Look no further than Arvixe Web Hosting!



Tags: , , , , | Posted under Alfresco | RSS 2.0

Author Spotlight


I love opensource technologies working with those technologies from the time I have stepped in to the Software Industry. Alfresco CMS is my area of expertise. I have worked on various complex implementations which involved integration of Alfresco with other technologies, extensively worked with JBPM workflows and Webscripts.

Leave a Reply

Your email address will not be published. Required fields are marked *