Affects Version/s: 1.9
Fix Version/s: 1.9
Number of attachments :
Actually maven repository doesn't contain source artifacts, however it would be nice if eclipse users could have a way to handle source for jars and have them added to eclipse .classpath (needed for debug and javadocs).
The attached path let users store sources in the local maven repository in the same way other artifacts are managed. Through the modification of the jar path the plugin will look for the sources file and, if existing, it will add them to the .classpath file.
The position of src files is controlled by 2 plugin properties: maven.eclipse.src.dir (directory for source artifact type) and maven.eclipse.src.extension (extension for files). These are temporarely managed as eclipse plugin properties till there is a standard maven default for them.
As an example, using the default values for these properties:
will be mapped to
If the source zip is not available, it will not be added to the classpath file, so it will not cause any problem to users who don't have sources in their local repository.