Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Labels:
      None

      Description

      stylesheetfile can only be loaded from a file path. To allow common stylesheet definition it would be nice to load stylesheetfile from classpath.

      Such a feature could be provided by extending the stylesheet type "maven" by allowing to provide your own stylesheet.css and not only the default maven one.

        Activity

        Julien Eluard created issue -
        Show
        Siveton Vincent added a comment - Are you sure? Could you provide us a test case? http://maven.apache.org/plugins/maven-javadoc-plugin/examples/stylesheet-configuration.html http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#stylesheetfile http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#resourcesArtifacts
        Hide
        Julien Eluard added a comment -

        Test case

        Show
        Julien Eluard added a comment - Test case
        Julien Eluard made changes -
        Field Original Value New Value
        Attachment custom-stylesheet.zip [ 36973 ]
        Hide
        Julien Eluard added a comment -

        I was not aware of the resourcesArtifacts feature.
        What is the behaviour? Will all files from artifacts' src/resources be copied under reportOutputDirectory?

        Show
        Julien Eluard added a comment - I was not aware of the resourcesArtifacts feature. What is the behaviour? Will all files from artifacts' src/resources be copied under reportOutputDirectory?
        Hide
        Siveton Vincent added a comment -

        According your test case, you need to call:

        mvn javadoc:javadoc -Dstylesheetfile=${basedir}\src\resources\org\apache\maven\pugin\javadoc\css\stylesheet.css
        

        See MJAVADOC-126 about resourcesArtifacts

        Could you confirm that I could close this issue as not bug?

        Show
        Siveton Vincent added a comment - According your test case, you need to call: mvn javadoc:javadoc -Dstylesheetfile=${basedir}\src\resources\org\apache\maven\pugin\javadoc\css\stylesheet.css See MJAVADOC-126 about resourcesArtifacts Could you confirm that I could close this issue as not bug?
        Hide
        Julien Eluard added a comment -

        The thing is I don't want to rely on file path to load the stylesheet because ultimately my stylesheet will be stored in a parent dependency.
        When using 'maven' as stylesheet property (http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#stylesheet) maven-javadoc-plugin loads from classpath org/apache/maven/plugin/javadoc/css/stylesheet.css but I can't provide my own stylesheet.css file.

        Show
        Julien Eluard added a comment - The thing is I don't want to rely on file path to load the stylesheet because ultimately my stylesheet will be stored in a parent dependency. When using 'maven' as stylesheet property ( http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#stylesheet ) maven-javadoc-plugin loads from classpath org/apache/maven/plugin/javadoc/css/stylesheet.css but I can't provide my own stylesheet.css file.
        Hide
        Siveton Vincent added a comment -

        fixed in r794885, snapshot deployed

        Show
        Siveton Vincent added a comment - fixed in r794885 , snapshot deployed
        Siveton Vincent made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Assignee Vincent Siveton [ siveton ]
        Fix Version/s 2.6 [ 14525 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 11:56:47 UTC 2015 [ 1428235007093 ]
        Mark Thomas made changes -
        Workflow jira [ 12722454 ] Default workflow, editable Closed status [ 12762428 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:11:46 UTC 2015 [ 1428279106587 ]
        Mark Thomas made changes -
        Workflow jira [ 12959795 ] Default workflow, editable Closed status [ 12996575 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        309d 13h 41m 1 Siveton Vincent 16/Jul/09 18:03

          People

          • Assignee:
            Siveton Vincent
            Reporter:
            Julien Eluard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development