0.请先修改maven 的setting.xml文件配置,配置如下:
<profile>
<!-- the profile id is arbitrary 这个id是任意填的-->
<id>public</id>
<repositories>
<repository>
<!-- the repository id has to be named: archetype 这repository Id必须是archetype -->
<id>archetype</id>
<name>nexus-public</name>
<url>http://10.110.18.79:8081/repository/maven-public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
public
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201229111242539.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM0Nzg3ODMw,size_16,color_FFFFFF,t_70)
1、新建项目
2、选择如下图3、 com.threeclear
template-archetype
0.0.1
4、步骤2中填入步骤3的坐标信息如下图:
5.
6.
7.maven请选择idea自带的,(我用3.1.1的版本不行)
8.选择finish,搞定