You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Cody Zhang <co...@gmail.com> on 2011/10/20 03:35:11 UTC
must not access source of jar on maven repository
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
Re: must not access source of jar on maven repository
Posted by Barrie Treloar <ba...@gmail.com>.
On Thu, Oct 20, 2011 at 3:33 PM, Cody Zhang <co...@gmail.com> wrote:
> Thank's replay! So sorry!It's wrong!
> I mean,only somebody download source.jar ,but can't download by default!
> Best Regards,
> --Cody.Zhang
Cody, I appreciate that english is not a native language, but I can't
understand what you mean to give any advice.
Can you give some examples?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: must not access source of jar on maven repository
Posted by Cody Zhang <co...@gmail.com>.
Thank's replay! So sorry!It's wrong!
I mean,only somebody download source.jar ,but can't download by default!
Best Regards,
--Cody.Zhang
On Thu, Oct 20, 2011 at 11:41 AM, Barrie Treloar <ba...@gmail.com> wrote:
> On Thu, Oct 20, 2011 at 12:05 PM, Cody Zhang <co...@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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: must not access source of jar on maven repository
Posted by Barrie Treloar <ba...@gmail.com>.
On Thu, Oct 20, 2011 at 12:05 PM, Cody Zhang <co...@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org