我是新手,正在尝试为已经在maven Central中发布的库更新javadoc。当我运行mvn站点时,可以看到本地生成的Java文档更改。但是我该如何将这些更改推送到github(gh-pages)并将这些javadocs发布到maven Central。
当前使用以下pom.xml中的设置
<Reporting>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<sourcepath>src/main/java:target/generated-sources</sourcepath>
</configuration>
<reportSets>
<reportSet>
<id>default</id>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</Reporting>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<sourcepath>src/main/java:target/generated-sources</sourcepath>
</links>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>