You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Patrick Wright <th...@pdoubleya.com> on 2003/05/14 01:54:04 UTC

Maven and JavaDoc

Hi

I've just started using Maven with another developer. We have the basic
build process for our project working.

When using the javadoc:generate goal, the JavaDoc generates correctly, but
reference to JDK classes are not resolved in the generated HTML. For
example, a String referenced is shown as a java.lang.String with no
hyperlink.

I can't find any reference to a property controlling this in the Maven
properties for JavaDoc. Is there a default it's using? Not sure if I need
the JDK docs or the JDK sources available in a specific location, or if
there is a special property that needs to be set.

TIA
Patrick


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven and JavaDoc

Posted by "michal.maczka" <mi...@cqs.ch>.

> -----Original Message-----
> From: dion@multitask.com.au [mailto:dion@multitask.com.au]
> Sent: Thursday, May 15, 2003 8:01 AM
> To: Maven Users List
> Subject: Re: Maven and JavaDoc
>
>
> Please help me get POMs up in the repos :-)
> --

We will... ;)


[OT] Just stupid idea:

Was somebody was ever thinking about using eXist or Xicdice
for a database of POM (still reporietory will be needed).
For many things such tools (if used) will be bring simplicity..
Example (related to this thread in the mailing list):
Query for determining javadoc location of the given project will be
simple...


Michal


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven and JavaDoc

Posted by di...@multitask.com.au.
Please help me get POMs up in the repos :-)
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


Rafal Krzewski <Ra...@caltha.pl> wrote on 14/05/2003 04:02:43 PM:

> Aslak Hellesøy wrote:
> > Alternatively, it would be even nicer if each project's pom could 
declare
> > the location of the javadocs, e.g:
> > 
> > <project>
> >   <apidoc>http://foo.com/${pom.id}/javadoc/</apidoc>
> > <project>
> > 
> > Then maven could look at the poms in the repository to figure out 
where the
> > javadocs are.
> 
> I think that this second option gives the real advantage. Lot's of
> things will become possible when the POMs are up in the repos.
> 
> R.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven and JavaDoc

Posted by Rafal Krzewski <Ra...@caltha.pl>.
Aslak Hellesøy wrote:
> Alternatively, it would be even nicer if each project's pom could declare
> the location of the javadocs, e.g:
> 
> <project>
>   <apidoc>http://foo.com/${pom.id}/javadoc/</apidoc>
> <project>
> 
> Then maven could look at the poms in the repository to figure out where the
> javadocs are.

I think that this second option gives the real advantage. Lot's of
things will become possible when the POMs are up in the repos.

R.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven and JavaDoc

Posted by Oto tapik Buchta <ta...@systinet.com>.
Aslak Helles?y wrote:
>>I dont't think this is reallly "alternativly". It is not either/either
>>
>>I supppose that for Mavenized project api docs can be even kept in
>>expoloded form in repositories like IBIBLIO.
> 
> 
> I don't think that is a good idea. Many javadocs have (relative) links to
> other docs (like xref). Where do you put them? The worst case scenario would
> be Ibiblio ending up a hosting service for complete project documentation.
> 
> I'm sure Ibiblio doesn't want that, and I'm sure most projects want to host
> their documentation in their own space. At least I do.

I think that ibiblio may provide apidoc archive for an appropriate package.
-- 
Oto 'tapik' Buchta, tapik@systinet.com
R&D team, Systinet Corp. (formerly Idoox)
http://www.systinet.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven and JavaDoc

Posted by Aslak Hellesøy <as...@netcom.no>.

> -----Original Message-----
> From: Michal Maczka [mailto:mmaczka@interia.pl]
> Sent: 14. mai 2003 10:23
> To: Maven Users List
> Subject: Re: Maven and JavaDoc
>
>
> Aslak Hellesøy wrote:
>
> >Add this to your project.properties:
> >
> >maven.javadoc.links = http://java.sun.com/j2se/1.4.1/docs/api/,\
> >
> http://jakarta.apache.org/commons/collections/api/,\
> >
> >etc.
> >
> >To the developers:
> >
> >It would be nice if the pom's dependency element could be
> augmented with the
> >following syntax:
> >
> ><dependency>
> >  <id>foo</id>
> >  <version>1.2.3</version>
> >  <url>http://foo.com/</url>
> >  <apidoc>http://foo.com/1.2.3/javadoc/</apidoc>
> ></dependency>
> >
> >-and that the javadoc plugin could pick this up rather than
> looking at the
> >maven.javadoc.links property.
> >
> >Alternatively, it would be even nicer if each project's pom could declare
> >the location of the javadocs, e.g:
> >
> ><project>
> >  <apidoc>http://foo.com/${pom.id}/javadoc/</apidoc>
> ><project>
> >
> >Then maven could look at the poms in the repository to figure
> out where the
> >javadocs are.
> >
> >Aslak
> >
> >
> >
> >>-----O
> >>
> I dont't think this is reallly "alternativly". It is not either/either
>
> I supppose that for Mavenized project api docs can be even kept in
> expoloded form in repositories like IBIBLIO.

I don't think that is a good idea. Many javadocs have (relative) links to
other docs (like xref). Where do you put them? The worst case scenario would
be Ibiblio ending up a hosting service for complete project documentation.

I'm sure Ibiblio doesn't want that, and I'm sure most projects want to host
their documentation in their own space. At least I do.

> BTW: I hope that javadoc apis and project sources will become also
> "usual" artifacts, and can be downloaded
> and used for example by plugins like maven-eclipse-plugin so you can use
> them  in your favourite IDE...
>
> But for commercial products you will  need to probably make an explict
> link to javadoc location
> as lookup in project POM won't be possible becouse there simply will be
> no POM.
> Wait! Maybe there even could  be POM created and kept in repsostories
> for commercial or no free license products (like JTA, Orcale JDBC driver
> etc..)
> As it is generally better to keep such informations centralized then to
> repeat in every project like this:
>
> (
>
> <dependency>
>   <id>foo</id>
>   <version>1.2.3</version>
>   <url>http://foo.com/</url>
>   <apidoc>http://foo.com/1.2.3/javadoc/</apidoc>
> </dependency>
>
> )
>

Agree. putting apidoc in the dependency is a half-assed solution (as is the
url). I shouldn't have proposed that.

> So I suppose that it will be nice to kick out of the POM
>
>   <url>http://foo.com/</url>
>   <apidoc>http://foo.com/1.2.3/javadoc/</apidoc>
>
>
> If such information is needed and not accessible in IBIBIIO or in any
> of  your private repositiries..you can simply create POM (6-7
> lines of code)
> which will contain such information. so it will be shared among all your
> projects.
>

I like that idea. Force people to write a descriptor if it doesn't exist.
Maybe even with automatic upload to ibiblio? This is the model XDDB is using
(for those of you who have ever ripped a CD). This model is certainly
interesting for Maven too.

Aslak

>
> Michal
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven and JavaDoc

Posted by Michal Maczka <mm...@interia.pl>.
Aslak Hellesøy wrote:

>Add this to your project.properties:
>
>maven.javadoc.links = http://java.sun.com/j2se/1.4.1/docs/api/,\
>                      http://jakarta.apache.org/commons/collections/api/,\
>
>etc.
>
>To the developers:
>
>It would be nice if the pom's dependency element could be augmented with the
>following syntax:
>
><dependency>
>  <id>foo</id>
>  <version>1.2.3</version>
>  <url>http://foo.com/</url>
>  <apidoc>http://foo.com/1.2.3/javadoc/</apidoc>
></dependency>
>
>-and that the javadoc plugin could pick this up rather than looking at the
>maven.javadoc.links property.
>
>Alternatively, it would be even nicer if each project's pom could declare
>the location of the javadocs, e.g:
>
><project>
>  <apidoc>http://foo.com/${pom.id}/javadoc/</apidoc>
><project>
>
>Then maven could look at the poms in the repository to figure out where the
>javadocs are.
>
>Aslak
>
>  
>
>>-----O
>>
I dont't think this is reallly "alternativly". It is not either/either

I supppose that for Mavenized project api docs can be even kept in 
expoloded form in repositories like IBIBLIO.
BTW: I hope that javadoc apis and project sources will become also 
"usual" artifacts, and can be downloaded
and used for example by plugins like maven-eclipse-plugin so you can use 
them  in your favourite IDE...

But for commercial products you will  need to probably make an explict 
link to javadoc location
as lookup in project POM won't be possible becouse there simply will be 
no POM.
Wait! Maybe there even could  be POM created and kept in repsostories 
for commercial or no free license products (like JTA, Orcale JDBC driver 
etc..)
As it is generally better to keep such informations centralized then to 
repeat in every project like this:

(

<dependency>
  <id>foo</id>
  <version>1.2.3</version>
  <url>http://foo.com/</url>
  <apidoc>http://foo.com/1.2.3/javadoc/</apidoc>
</dependency>

)

So I suppose that it will be nice to kick out of the POM

  <url>http://foo.com/</url>
  <apidoc>http://foo.com/1.2.3/javadoc/</apidoc>


If such information is needed and not accessible in IBIBIIO or in any 
of  your private repositiries..you can simply create POM (6-7 lines of code)
which will contain such information. so it will be shared among all your 
projects.


Michal




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven and JavaDoc

Posted by Aslak Hellesøy <as...@netcom.no>.
Add this to your project.properties:

maven.javadoc.links = http://java.sun.com/j2se/1.4.1/docs/api/,\
                      http://jakarta.apache.org/commons/collections/api/,\

etc.

To the developers:

It would be nice if the pom's dependency element could be augmented with the
following syntax:

<dependency>
  <id>foo</id>
  <version>1.2.3</version>
  <url>http://foo.com/</url>
  <apidoc>http://foo.com/1.2.3/javadoc/</apidoc>
</dependency>

-and that the javadoc plugin could pick this up rather than looking at the
maven.javadoc.links property.

Alternatively, it would be even nicer if each project's pom could declare
the location of the javadocs, e.g:

<project>
  <apidoc>http://foo.com/${pom.id}/javadoc/</apidoc>
<project>

Then maven could look at the poms in the repository to figure out where the
javadocs are.

Aslak

> -----Original Message-----
> From: Patrick Wright [mailto:the_man@pdoubleya.com]
> Sent: 14. mai 2003 01:54
> To: users@maven.apache.org
> Subject: Maven and JavaDoc
>
>
> Hi
>
> I've just started using Maven with another developer. We have the basic
> build process for our project working.
>
> When using the javadoc:generate goal, the JavaDoc generates correctly, but
> reference to JDK classes are not resolved in the generated HTML. For
> example, a String referenced is shown as a java.lang.String with no
> hyperlink.
>
> I can't find any reference to a property controlling this in the Maven
> properties for JavaDoc. Is there a default it's using? Not sure if I need
> the JDK docs or the JDK sources available in a specific location, or if
> there is a special property that needs to be set.
>
> TIA
> Patrick
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org