You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by D D <c_...@yahoo.fr> on 2006/04/25 14:55:09 UTC

[m2] Javadoc configuration with dependencies in build-tools.jar (ala checkstyle)

I configured the javadoc report using <offlineLink> with a relative file path :

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <offlineLinks>
                        <offlineLink>
                            http://java.sun.com/j2se/1.5.0/docs/api/
                            <location>../aaa-build-tools/src/main/resources/aaa/javadoc/jdk-5.0/</location>
                        </offlineLink>
                    </offlineLinks>
                </configuration>
             </plugin>
         </plugins>
    </reporting>

That works fine but I am trying to put this kind of dependencies in a separate jar, following the checkstyle example, ie:

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <configuration>
                    <configLocation>aaa/checkstyle/checkstyle.xml</configLocation>
                    <headerLocation>aaa/LICENSE.txt</headerLocation>
                </configuration>
            </plugin>
         </plugins>
    </reporting>
    ...
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <dependencies>
                    <dependency>
                        <groupId>mygroup</groupId>
                        <artifactId>aaa-build-tools</artifactId>
                        <version>0.01-SNAPSHOT</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>

so it will look something like this:

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <offlineLinks>
                        <offlineLink>
                            http://java.sun.com/j2se/1.5.0/docs/api/
                            <location>aaa/javadoc/jdk-5.0/</location>
                        </offlineLink>
                    </offlineLinks>
                </configuration>
            </plugin>
         </plugins>
    </reporting>
    ...
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <dependencies>
                    <dependency>
                        <groupId>mygroup</groupId>
                        <artifactId>aaa-build-tools</artifactId>
                        <version>0.01-SNAPSHOT</version>
                    </dependency>
                </dependencies>
             </plugin>
         </plugins>
    </reporting>

Is it possible to do something like that ? If not, is it planned ?

Thanks

David DIDIER