Skip to content
Snippets Groups Projects

Adding Maven-supported javadoc deployment

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Christos Christodoulopoulos
    Edited
    reporting.xml 1011 B
    <!-- Add the following to your pom.xml under the main node -->
       <reporting>
            <excludeDefaults>true</excludeDefaults>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.10.3</version>
                </plugin>
            </plugins>
        </reporting>
    
    <!-- Replace the current <distributionManagement> with this (change artifactId) -->
        <distributionManagement>
            <repository>
                <id>CogcompSoftware</id>
                <name>CogcompSoftware</name>
                <url>scp://bilbo.cs.illinois.edu:/mounts/bilbo/disks/0/www/cogcomp/html/m2repo</url>
            </repository>
            <site>
                <id>CogcompSoftwareDoc</id>
                <url>scp://bilbo.cs.illinois.edu:/mounts/bilbo/disks/0/www/cogcomp/html/software/doc/${project.artifactId}</url>
            </site>
        </distributionManagement>
        
    <!-- You can now deploy the javadoc using mvn site-deploy -->
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment