1. 把log项目中无用的东西都剔除掉。
2. 运行命令mvn archetype:create-from-project,在log的targt\generated-sources下会生成archetype项目,要想真正的使用,还需要进行改造,修改步骤如下:
A. 添加私服地址(targt\generated-sources的pom文件)
注意url的类型要求是hosted,开始选的是group类型的私服地址一直报400错误
<distributionManagement>
<repository>
<id>rdcenter-releases</id>
<url>http://172.16.33.63:9090/nexus/content/repositories/rdcenter-releases/</url>
</repository>
<snapshotRepository>
<id>rdcenter-snapshots</id>
<url>http://172.16.33.63:9090/nexus/content/repositories/rdcenter-snapshots/</url>
</snapshotRepository>
</distributionManagement>
要注意id要与setting.xml中的保持一致,否则会报401的错误
B. 修改包名,打包测试发现类的包名生成错误,具体原因未知,可以手工修改包名
3. mvn deploy 打包到私服,即可使用