2
I need to generate test javadoc using Maven.
I found this tutorial => https://maven.apache.org/plugins/maven-javadoc-plugin/examples/test-javadocs.html
It worked, however, I can only generate javadoc via terminal, using the command:
mvn javadoc:test-javadoc
Would anyone know a way to generate in Netbeans?
With Maven or Netbeans? Or want to generate automatically when generating a . jar or . War?
– dougg0k
In his
pom.xml
, right click -> Run Maven, in the window that appears, put something likecompile javadoc:test-javadoc
(is the Lifecycle that you actually need) in Goals, marque Remember as, put a name to this run will be saved to use later– Bruno César
Hello Bruno. I’d like to generate the test javadoc in Netbeans. Would you know if it is possible to create a profile to generate the test javadocs? That way, everyone who clones my project will be able to generate the test documentation.
– helciodasilva
Profile in netbeans or Maven profile? If from Maven, just create one and set the
javadoc:test-javadoc
asdefaultGoal
, if required enabled by default. To rotate,mvn -Ptest-javadoc
, or justmvn
if active by default. If you have anything else, update your question with more details that include an answer, rather than comments.– Bruno César
That’s just what I needed. Thanks for your help!
– helciodasilva