On Thu, Oct 20, 2011 at 12:05 PM, Cody Zhang <codyzhang.w...@gmail.com> wrote: > Hi,All > Deploy source.jar to maven repository in Our company. > Maven repository is management by nexus of Sonatype. > We want that somebody access the source.jar when download binary jar? > Best Regards, > --Cody.Zhang >
When you use the release plugin to release your artifacts, by default the "useReleaseProfile" will be true. http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#useReleaseProfile This will "adds sources and javadocs to the released artifact, if appropriate." which will all be deployed with your main artifact into your company's Nexus repository. Then when other projects depend on your artifact they are able to download the source jar that belongs with that artifact. How you do that depends upon the ide, e.g. maven-eclipse-plugin (http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html) you specify -DdownloadSources=true m2e you would need to check their documentation - but it may do this automatically. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org