<dependency>
<groupId>org.projectdoc</groupId>
<artifactId>projectdoc-annotations</artifactId>
<version>2.5.0</version>
</dependency>
/**
* This is a sample class.
*
* @doc.name MySampleClass
* @doc.summary This class represents a sample class.
* @doc.description This class has some sample methods to demonstrate the usage of Projectdoc Annotations.
*/
public class MySampleClass {
/**
* This is a sample method.
*
* @doc.name mySampleMethod
* @doc.summary This method performs a sample operation.
* @doc.tags sample, operation
*
* @param input The input parameter.
* @return The result of the operation.
*/
public String mySampleMethod(String input) {
// Perform the sample operation
return "Result: " + input;
}
}
<build>
<plugins>
<plugin>
<groupId>org.projectdoc</groupId>
<artifactId>projectdoc-maven-plugin</artifactId>
<version>1.11.0</version>
<executions>
<execution>
<id>projectdoc-maven-plugin</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
mvn projectdoc:generate