maven打包deploy指定module
打二方包
mvn deploy -pl moduleName -am
moduleName是需要替换成你项目中的子module的名字
-pl, —projects
Build specified reactor projects instead of all projects
-am, —also-make
If project list is specified, also build projects required by the list
打source包
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
还没有评论,来说两句吧...