问题:当我们配置maven之后,创建maven工程没有模板文件的产生
解决方法:
第一步:在maven仓库repository中添加archetype-catalog.xml
<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0 http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd">
<archetypes>
<archetype>
<groupId>com.fr</groupId>
<artifactId>fr-server</artifactId>
<version>7.0</version>
<repository>
http://git.oschina.net/thinkgem/repos/raw/master
</repository>
</archetype>
<archetype>
<groupId>com.fr</groupId>
<artifactId>fr-third</artifactId>
<version>7.0</version>
<repository>
http://git.oschina.net/thinkgem/repos/raw/master
</repository>
</archetype>
</archetypes>
</archetype-catalog>
第二步:在IDEA File–>settings中设置archetype的使用方式为local