Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In your pom.xml file, do something like the following:

Code Block
<reporting>
          <plugins>
               ...
               <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-changelog-plugin</artifactId>
               </plugin>
               ...
          </plugins>
     </reporting>

You must have a SCM portion in your pom.xml so the plugin knows where to find your code and comments:

Code Block
<scm>
          <connection>scm:svn:https://domain/path/to/project</connection>
          <developerConnection>scm:svn:https://domain/path/to/project</developerConnection>
          <url>https://domain/path/to/project</url>
     </scm>

If your source control server requires authentication before the user is able to browse the repository you'll need to add some configuration parameters:

Code Block
<reporting>
          <plugins>
               ...
               <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-changelog-plugin</artifactId>
                    <configuration>
                         <username>uname</username>
                         <password>pass</password>
                    </configuration>
               </plugin>
               ...
          </plugins>
     </reporting>

Other configuration parameters can be found here.