用idea建立maven项目时用模板建立慢的解决方法
2017-05-21 16:36
447 查看
首先去maven的conf文件夹中找到setting.xml文件,然后在相应的位置加入以下配置,因为在国内还是aliyun快很多,如下所示:
setting.xml中添加这些配置:
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</profiles>
<profile>
<id>aliyun</id>
<repositories>
<repository>
<id>nexus</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>admin</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>aliyun</activeProfile>
</activeProfiles>
从网上下载一个archetype-catalog.xml文件
覆盖C:\Users\uds\.m2\repository\org\apache\maven\archetype\archetype-catalog\3.0.1中的xml文件
此路径为个人本地仓库位置
然后建立项目就贼快!贼快!
setting.xml中添加这些配置:
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</profiles>
<profile>
<id>aliyun</id>
<repositories>
<repository>
<id>nexus</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>admin</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>aliyun</activeProfile>
</activeProfiles>
从网上下载一个archetype-catalog.xml文件
覆盖C:\Users\uds\.m2\repository\org\apache\maven\archetype\archetype-catalog\3.0.1中的xml文件
此路径为个人本地仓库位置
然后建立项目就贼快!贼快!
相关文章推荐
- idea使用maven项目中断点不可用的解决方法
- IDEA引MAVEN项目jar包依赖导入问题解决方法
- eclipse 建立maven项目 显示红叉的解决方法
- IDEA maven项目src源代码下的资源文件不自动复制到classes文件夹的解决方法
- intellij-idea中maven编译项目出现内存溢出现象的解决方法intellij-idea中maven编译项目出现内存溢出现象的解决方法
- idea新建maven项目时速度缓慢的解决方法
- IDEA的maven项目出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误解决方法
- intellij-idea中maven编译项目出现内存溢出现象的解决方法
- Idea无法导入Maven项目的解决方法
- 安卓(android)建立项目时失败,出现Android Manifest.xml file missing几种解决方法?(总结中)
- 最近在导入师说cms这个maven项目时解决方法
- 解决Eclipse建立Maven项目后无法建立src/main/java资源文件夹的办法
- 用maven在eclipse中创建web项目时不能创建三个文件夹的解决方法
- maven项目找不到pom.xml配置的dependency jar中的类问题解决方法
- 在VS.NET 2003中建立项目时遇到的两个问题及解决方法 (转)
- maven项目使用SOLR时报 previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest" 错的解决方法
- 解决Eclipse建立Maven项目后无法建立src/main/java资源文件夹的办法
- myEclipse建立的web项目用eclipse check出来成java project的解决方法
- 解决Eclipse建立Maven项目后无法建立src/main/java资源文件夹的办法