将组件发布到中央仓库。
标签下根POM下添加
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojogroupId>
<artifactId>flatten-maven-pluginartifactId>
<version>1.5.0version>
<configuration>
<updatePomFile>trueupdatePomFile>
<flattenMode>ossflattenMode>
configuration>
<executions>
<execution>
<id>flattenid>
<goals>
<goal>flattengoal>
goals>
<phase>process-resourcesphase>
execution>