Hi again Milos,

I tried your suggestion, created a JAR file of the Javadoc, and placed it in
our company repo as

jamod-1.2-javadoc.jar 

Then rightclicked the dependencynode in the Netbeans project, and selected
"Download javadoc and source".
A small green indicator appeared next to the jar, indicating that the
javadoc had been downloaded and set up.

However, when i rightclick the jamod-node now, and select "View Javadoc", IE
opens up with the following URL:

jar:file:/C:/Documents%20and%20Settings/asty/.m2/repository/jamod/jamod/1.2/
jamod-1.2-javadoc.jar!/apidocs/index.html

With the message: "This page cannot be shown".........

I don't get the javadoc integrated with the editor either. Notice that
Netbeans seams to expect the javadoc to start at /apidocs/...

Any ideas ?

Regards
Arne


-----Original Message-----
From: Milos Kleint [mailto:[EMAIL PROTECTED] 
Sent: 18. april 2007 11:36
To: Maven Users List; [EMAIL PROTECTED]
Subject: Re: Javadoc for dependent libraries in Netbeans...

On 4/18/07, Arne Styve <[EMAIL PROTECTED]> wrote:
> Hi Milos,
>
> Thanks for your answer. It did help some, but it would be nice if you 
> could give me an example.
>
> Say I have a library called jamod.jar v1.2. It is installed in our 
> company
> maven2 repo as groupId="jamod", artifactId="jamod", Version="1.2" as 
> type="jar". In the directorystructure of my local repository .m2, this 
> will then appear as
>
> .m2\repository\jamod\jamod\1.2\jamod-1.2.jar


the sources jar/zip (as jar is technically a zip) will be placed at
.m2\repository\jamod\jamod\1.2\jamod-1.2-sources.jar

and javadoc at
.m2\repository\jamod\jamod\1.2\jamod-1.2-javadoc.jar


>
> What should the respective source and doc-files be called ? And should 
> they be .JAR or .ZIP-files ? And for the javadoc jar/zip-file, should 
> the index.html be on the root of the zipped file, or should there be a 
> directory called api under which the index.html file should be (inside 
> the
> zip/jar-file) ?

the maven javadoc plugin creates one with api folder inside, the maven repo
however has many that have the index.html right in the root. The netbeans
integrationshould survive both options.

Milos

>
> As you might have understood by know, I am a bit new to Maven2, so 
> please bear with me if my questions are a bit newbie.
>
> Kind regards
> Arne
>
> -----Original Message-----
> From: Milos Kleint [mailto:[EMAIL PROTECTED]
> Sent: 17. april 2007 16:07
> To: Maven Users List
> Subject: Re: Javadoc for dependent libraries in Netbeans...
>
> hello,
>
> download javadoc&sources checks the remote repos for artifacts with 
> -source or -javadoc classifiers and downloads them. The IDE then 
> designates them as containing source/javadoc and they are sued for 
> hyperlinking the sources or for code completion.
> However unfortunatelly most artifacts in the central repo don't have 
> javadoc or sources on display.
>
> I'm not sure about the 2.3 version of mevenide (that one works with
> 5.5 and later builds) but the 3.0.2 version (that works only with the 
> 6.0
> M8+ netbeans builds) has also actions "install local sources" and 
> M8+ "install
> local javadoc" that takes a local zip of sources/javadoc and puts them 
> in the correct place in local repo for you.
>
> Does it help? or is the problem somewhere else?
>
> Regards
>
> Milos
>
> On 4/17/07, Styve Arne <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm using the mevenide plugin to Netbeans from codehause. This works 
> > fine in most cases. However, when having added a dependency (by 
> > right-clicking on the Dependencies node of the project tree (in 
> > Projects view)), I can then right-click on the JAR I've included and 
> > get a menue saying "Download Javadoc & Source". But this has never 
> > worked. I've tried placing both sourcefiles (as JAR or ZIP) and 
> > API-doc in my local repository, but it still dont want to be 
> > integrated
> with Netbeans.
> >
> > I was hoping that the "Download Javadoc and Source" would enable the 
> > direct access to the API doc of the included JAR from within the editor.
> > Am I wrong ? If not, how do I set up the repository (locally, and 
> > our company repo), and how do I write my POM to get this working ?
> >
> > Thanks!
> > Arne Styve
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to