You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is really best-practice for an add-on to include source and javadoc, so the archetype should reflect that. Here's what works for me (additions to pom.xml):
<profiles>
<profile>
<id>directorypackage</id>
<build>
<plugins>
...
...
...
<!-- Generate Javadoc jar as well. (it will be included in the zip if it exists). Remove this section if you do not want to include Javadoc in the zip.-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Generate source jar as well. (it will be included in the zip if it exists). Remove this section if you do not want to include sources in the zip, for example for commercial closed-source add-ons.-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
</profile>
</profiles>
The text was updated successfully, but these errors were encountered:
It is really best-practice for an add-on to include source and javadoc, so the archetype should reflect that. Here's what works for me (additions to
pom.xml
):The text was updated successfully, but these errors were encountered: