At work, I dip my fingers into project dependency management with maven. We use Apache Archiva (1.2.1) as a local repository and proxy. I am adding an artifact for an open source project that is not published to any public repository. I found out that for publishing sources I have to use the classifier field on the Download artifact page . The sources are then listed next to the jar and pom when I browse the repository.
But when I update my maven dependencies, I only get the jar and pom from the repository. I noticed that the sources are also missing when the archiva proxy for me downloads from other public repositories. I did not find any configuration options on the Archiva administration pages to serve the sources ... What am I missing?
Update : I missed the fact that artifact sources needed to be loaded manually. That is, the maven client should request them, which is controlled by the command line option -DdownloadSources=true. Maven Integration for Eclipse has a preference setting that always loads them, as described in Resolving artifact sources . Archiva then serves as the source of local artifacts or proxies to request remote repositories and caches the sources for future requests.
source
share