Figure 1: Add Archetype. |
Figure 2: Can't resolve Archetype. |
Solution: Set the repository in .m2/settings.xml.
pom.xml
<profiles>
<profile>
<repositories>
<repository>
<id>mvn-repository</id>
<name>MvnRepository.com</name>
<url>http://mvnrepository/</url>
</repository>
</repositories>
</profile>
</profiles>
No comments:
Post a Comment