|
From: Mª®k <mc....@gm...> - 2010-07-30 07:56:38
|
2010/7/29 Jody Garnett <jod...@gm...>:
>> * Project POM has the following elements.
>> ** <modelVersion>
....
>> **<developers>
> check.
>
>> ** If the project packaging is jar, and the jar file contains java classes, there must be a -javadoc.jar for main artifact.
>
> Not sure how we would turn this on?
>
maven will do this for you when including the following as part of the build
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<configuration>
<!-- config options-->
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
ie. run the javadoc plugin as part of the package phase to create a jar
|