如何使用源代码和JavaDoc部署SNAPSHOT?

如何使用源代码和JavaDoc部署SNAPSHOT?,第1张

如何使用源代码和JavaDoc部署SNAPSHOT?
<build>  <plugins>     <plugin>      <artifactId>maven-source-plugin</artifactId>      <executions>        <execution>          <id>attach-sources</id>          <phase>deploy</phase>          <goals><goal>jar-no-fork</goal></goals>         </execution>      </executions>    </plugin>    <plugin>       <artifactId>maven-javadoc-plugin</artifactId>       <executions>         <execution><id>attach-javadocs</id>          <phase>deploy</phase>          <goals><goal>jar</goal></goals>         </execution>       </executions>     </plugin>    <plugin>       <!-- explicitly define maven-deploy-plugin after other to force exec order -->      <artifactId>maven-deploy-plugin</artifactId>       <executions>         <execution><id>deploy</id>          <phase>deploy</phase>          <goals><goal>deploy</goal></goals>         </execution>       </executions>     </plugin>  </plugins> </build>

有关完整示例,请参见Sonatype的OSS父POM。



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5020757.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-15
下一篇 2022-11-15

发表评论

登录后才能评论

评论列表(0条)

保存