你的项目的pom.xml文件中加入如下配置:

来源:互联网 发布:hive sql create 编辑:程序博客网 时间:2024/06/05 10:21
<!-- 生成javadoc文档包的插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-javadoc-plugin</artifactId><version>2.10.2</version><configuration><aggregate>true</aggregate></configuration><executions><execution><id>attach-javadocs</id><goals><goal>jar</goal></goals></execution></executions></plugin><!-- 生成sources源码包的插件 --><plugin><artifactId>maven-source-plugin</artifactId><version>2.4</version><configuration><attach>true</attach></configuration><executions><execution><phase>package</phase><goals><goal>jar-no-fork</goal></goals></execution></executions></plugin>