Hi Bob,

Thanks for the reply.I just checked, you are right, the compiled jar
contains the source code as well. I am using IntelliJ IDEA, and just figured
out that, its not picking the source from the compiled jar (weired, don't
know why). So, what I am doing now is, I made a separate jar with the
sources that I have build using the ant target "build-sources". and then
adding that jar into my local repo.

The javadoc is ok, IntelliJ IDEA is picking it from source code.

Thanks.

Jahid



On Tue, May 18, 2010 at 1:06 AM, Bob Schellink <[email protected]> wrote:

> Hi,
>
>
> On 18/05/2010 07:29, Md. Jahid Shohel wrote:
> > The maven repository contains only the compiled jar, but not the source
> > or javadoc.
>
>
> The compiled jar consists of both class and source files so the IDE should
> be able to pick up the
> source without issues. At least in Netbeans and Eclipse I haven't had any
> issues. What issues are
> you having without a separate source jar?
>
>
> Is there any way we can also upload the source and javadoc
> > jar as well into maven repo? Being a maven user it really help to get
> > the source from the repo as well. Otherwise of course I can get the
> > source from svn, but that is not as jar to install on local maven repo.
> > Getting the source on local m2 repo will help me browse the source from
> > the IDE.
>
>
> Out of interest, why is the javadoc.jar necessary? In Eclipse and Netbeans
> the JavaDoc is rendered
> directly from the source code.
>
> Btw I don't have an issue with uploading JavaDoc or source to maven, just
> don't understand why its
> necessary. Feel free to raise a JIRA if there is a valid case here.
>
> Kind regards
>
> Bob
>

Reply via email to