fommil
fommil

Reputation: 5885

writing a maven plugin that depends on javadocs

my maven plugin project depends on the javadocs of a dependency (I parse the javadocs in a generate-sources goal).

  1. how do I depend on the javadocs
  2. how do I get a reference to the File?

This is for an OSS project, current attempt to do this is GenerateJava.java.

Upvotes: 1

Views: 78

Answers (1)

eis
eis

Reputation: 53553

As a partial answer, to have a javadoc dependency you'd specify javadoc as a classifier in pom

<dependency>
  <groupId>test</groupId>
  <artifactId>module1</artifactId>
  <version>1.0-SNAPSHOT</version>
  <classifier>javadoc</classifier>
</dependency>

Upvotes: 1

Related Questions