Moved configuration outside of executions tag.
This will enable the config also if one runs mvn javadoc:javadoc.
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- For publishing to sonatype / central maven repo -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
<configuration>
<doctitle>${project.name} (${project.version}) documentation</doctitle>
<stylesheetfile>stylesheet.css</stylesheetfile>
</header>
<footer>
<![CDATA[
- <i>Copyright &copy; 2017 Christian&nbsp;P.&nbsp;Fries.</i>
+ <i>Copyright &copy; 2018 Christian&nbsp;P.&nbsp;Fries.</i>
]]>
</footer>
<tags>
<detectLinks>true</detectLinks>
<additionalparam>--allow-script-in-comments</additionalparam>
</configuration>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
</execution>
</executions>
</plugin>
