Re: must not access source of jar on maven repository

2011-10-19 Thread Barrie Treloar
On Thu, Oct 20, 2011 at 3:33 PM, Cody Zhang  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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: must not access source of jar on maven repository

2011-10-19 Thread Cody Zhang
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  wrote:

> On Thu, Oct 20, 2011 at 12:05 PM, Cody Zhang 
> 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
>
>


Re: must not access source of jar on maven repository

2011-10-19 Thread Barrie Treloar
On Thu, Oct 20, 2011 at 12:05 PM, Cody Zhang  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



must not access source of jar on maven repository

2011-10-19 Thread Cody Zhang
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