You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christophe DENEUX (JIRA)" <ji...@codehaus.org> on 2006/12/01 12:51:41 UTC

[jira] Created: (MJAVADOC-106) Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath

Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath
-------------------------------------------------------------------------------------

                 Key: MJAVADOC-106
                 URL: http://jira.codehaus.org/browse/MJAVADOC-106
             Project: Maven 2.x Javadoc Plugin
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Christophe DENEUX


Hi,

I have a class inherited from an hibernate class. So my project contains a dependency onto Hibernate with the default scope, and an other dependencies needed by Hibernate with scope=runtime and/or provided.

My javadoc plugin is configured to use the doclet Umlgraph.

At the report generation I have an error telling that classes are not found. These classes are contained in dependencies with scope=runtime/provided. If I change the scope to compile, that works fine.

After investigation in the source code, it seems to me that only dependencies with scope=compile are used.

Can you take into account dependencies with scope=runtime/provided, or propose configuration parameters to set these artifacts.

Christophe DENEUX
Capgemini Sud - France - Nice

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAVADOC-106) Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_95777 ] 

Vincent Siveton commented on MJAVADOC-106:
------------------------------------------

Christophe,

Could you provide us a test case for this? I need to investigate...
Thanks!

> Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath
> -------------------------------------------------------------------------------------
>
>                 Key: MJAVADOC-106
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-106
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Christophe DENEUX
>
> Hi,
> I have a class inherited from an hibernate class. So my project contains a dependency onto Hibernate with the default scope, and an other dependencies needed by Hibernate with scope=runtime and/or provided.
> My javadoc plugin is configured to use the doclet Umlgraph.
> At the report generation I have an error telling that classes are not found. These classes are contained in dependencies with scope=runtime/provided. If I change the scope to compile, that works fine.
> After investigation in the source code, it seems to me that only dependencies with scope=compile are used.
> Can you take into account dependencies with scope=runtime/provided, or propose configuration parameters to set these artifacts.
> Christophe DENEUX
> Capgemini Sud - France - Nice

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MJAVADOC-106) Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Siveton closed MJAVADOC-106.
------------------------------------

    Resolution: Cannot Reproduce

I tried the test zip and changed the scope of junit to provided. The build is successful with 2.4 and 2.5-SNAPSHOT.

> Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath
> -------------------------------------------------------------------------------------
>
>                 Key: MJAVADOC-106
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-106
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Christophe DENEUX
>         Attachments: javadocBug.zip
>
>
> Hi,
> I have a class inherited from an hibernate class. So my project contains a dependency onto Hibernate with the default scope, and an other dependencies needed by Hibernate with scope=runtime and/or provided.
> My javadoc plugin is configured to use the doclet Umlgraph.
> At the report generation I have an error telling that classes are not found. These classes are contained in dependencies with scope=runtime/provided. If I change the scope to compile, that works fine.
> After investigation in the source code, it seems to me that only dependencies with scope=compile are used.
> Can you take into account dependencies with scope=runtime/provided, or propose configuration parameters to set these artifacts.
> Christophe DENEUX
> Capgemini Sud - France - Nice

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MJAVADOC-106) Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath

Posted by "Adam Hardy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Hardy updated MJAVADOC-106:
--------------------------------

    Attachment: javadocBug.zip

This zip contains a maven project with the bare necessities to run javadoc. 

I have added the test directory to the sourcepath so that its test files are included. 

The work-around is to set the dependency scope to 'provided' which then means that mvn puts it in the classpath for javadoc. 

> Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath
> -------------------------------------------------------------------------------------
>
>                 Key: MJAVADOC-106
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-106
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Christophe DENEUX
>         Attachments: javadocBug.zip
>
>
> Hi,
> I have a class inherited from an hibernate class. So my project contains a dependency onto Hibernate with the default scope, and an other dependencies needed by Hibernate with scope=runtime and/or provided.
> My javadoc plugin is configured to use the doclet Umlgraph.
> At the report generation I have an error telling that classes are not found. These classes are contained in dependencies with scope=runtime/provided. If I change the scope to compile, that works fine.
> After investigation in the source code, it seems to me that only dependencies with scope=compile are used.
> Can you take into account dependencies with scope=runtime/provided, or propose configuration parameters to set these artifacts.
> Christophe DENEUX
> Capgemini Sud - France - Nice

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAVADOC-106) Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath

Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_119983 ] 

Michael Osipov commented on MJAVADOC-106:
-----------------------------------------

I suffer from a very similar problem:

http://www.mail-archive.com/users@maven.apache.org/msg78769.html

this is my problem

> Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath
> -------------------------------------------------------------------------------------
>
>                 Key: MJAVADOC-106
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-106
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Christophe DENEUX
>         Attachments: javadocBug.zip
>
>
> Hi,
> I have a class inherited from an hibernate class. So my project contains a dependency onto Hibernate with the default scope, and an other dependencies needed by Hibernate with scope=runtime and/or provided.
> My javadoc plugin is configured to use the doclet Umlgraph.
> At the report generation I have an error telling that classes are not found. These classes are contained in dependencies with scope=runtime/provided. If I change the scope to compile, that works fine.
> After investigation in the source code, it seems to me that only dependencies with scope=compile are used.
> Can you take into account dependencies with scope=runtime/provided, or propose configuration parameters to set these artifacts.
> Christophe DENEUX
> Capgemini Sud - France - Nice

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAVADOC-106) Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath

Posted by "Adam Hardy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99699 ] 

Adam Hardy commented on MJAVADOC-106:
-------------------------------------

I am trying to run javadoc on the tests in my src/test/java directory, and I find that maven-javadoc-plugin is excluding the dependencies with scope 'test'.

This unleashes a whole stream of nasty exceptions such as: java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl

These nasty exceptions seem to stem from a bug in javadoc itself:

[http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6442982]

so the exceptions will not appear for everyone. Javadoc may complete, but I suspect it will leave unsatisfied links to 'test' dependencies.

I then changed the scope on the required dependencies to 'provided' and maven-javadoc-plugin now does include the dependency in the classpath passed to javadoc - contrary to what Christophe is experiencing. 

I am using JDK 1.5.0_12, mvn 2.0.6, maven-javadoc-plugin 2.3-20070314.204553-2 

It seems that maven-javadoc-plugin is currently suitable only for running javadoc on the main code, rather than any other source folders such as test. I can of course include the src/test/java directory in the config with <sourcepath> tags, but the javadoc will not be correct, if it completes at all. As a work-around I can specify scope 'provided'. 

I am currently looking into another issue I have with the plugin, so when I am convinced that it too is a bug, I would be happy to put together a quick test project. 

Best regards


> Dependencies with scope "runtime" or "provided" are not used in the javadoc classpath
> -------------------------------------------------------------------------------------
>
>                 Key: MJAVADOC-106
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-106
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Christophe DENEUX
>
> Hi,
> I have a class inherited from an hibernate class. So my project contains a dependency onto Hibernate with the default scope, and an other dependencies needed by Hibernate with scope=runtime and/or provided.
> My javadoc plugin is configured to use the doclet Umlgraph.
> At the report generation I have an error telling that classes are not found. These classes are contained in dependencies with scope=runtime/provided. If I change the scope to compile, that works fine.
> After investigation in the source code, it seems to me that only dependencies with scope=compile are used.
> Can you take into account dependencies with scope=runtime/provided, or propose configuration parameters to set these artifacts.
> Christophe DENEUX
> Capgemini Sud - France - Nice

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira