Skip to content

Commit

Permalink
发布到maven仓库需要生成javadoc的jar包
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-yuan committed Nov 17, 2019
1 parent 5483ddb commit 82a1826
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,22 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
<goal>sign</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
Expand All @@ -108,7 +111,6 @@
</goals>
</execution>
</executions>

<configuration>
<attach>true</attach>
<includes>
Expand All @@ -121,16 +123,19 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<configuration>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 82a1826

Please sign in to comment.