after the installation is configured with Maven and Nexus (refer to http://blog.csdn.net/kingzone_2008/article/details/39454873), use the MVN command line to create the engineering skeleton , but using eclipse has the following problems. questions such as 0:
Figure 0. Nexus Indexer is empty
since the catalog selection Nexus Indexer does not have a skeleton list available, try the internal skeleton first, select Maven-archetype-webapp and click Finish. The error message 1 shows. from the error can be seen is the file name inconsistency problem, Eclipse to find Maven-matadata.xml (1), and the. M2 directory is the file name Maven-matadata-central.xml (2). So, the first guess is that they are incompatible. After the toss of the configuration file, still can not solve. Constantly try to have a big half day, finally find the reason, please see the following solution.
Figure 1: Error message
Figure 2: Files in the repository in the M2 directorySolution: Open the Maven repositories window in eclipse (window--show View--maven--maven repositories), 3, right click on the Nexus Project, select Rebuild Index Then, right-click Local Repository and click Rebuild Index. Depending on the network situation, there may be a difference in wait times. Once the update is complete, you can use the Nexus indexer, 4
Figure 3. Maven repositories View
Figure 4. Nexus Indexer List
Nexus Indexer is empty when Eclipse creates a new MAVEN project