The new MAVEN project, which always packs a failure at build time, prompts for fewer jar packs, as follows:
[ERROR] Failed Toexecute goal on Project Jyypt_tool:could not resolve dependencies for Projectcom.tgb:jyypt_tool:jar:0.0.1-snaps Hot:the following artifacts could not Beresolved:jboss.web:jbossweb:jar:2.1.7.ga, Xalan:xalan:jar:2.7.1,com.oracle:o Jdbc14:jar:10.2.0.4.0:failure to Findjboss.web:jbossweb:jar:2.1.7.ga Inhttp://repo.maven.apache.org/maven2was Cached in the local repository, resolution won't be reattempted untilthe update interval of the A-has elapsed or UPDA TES are forced-> [help 1]
The main reason is still unable to find the appropriate jar package, go to the local warehouse to see the corresponding jar, reconfigure MAVEN, or a problem, finally found the problem, the following figure:
Under normal circumstances, when we choose a good globalsettings path, the following user settings will automatically be located in the user directory, so there is no to control the user's profile is not a problem. Open the. M2 folder, found that not only there is no setting.xml, and there is no jar bag inside the warehouse, this is a problem. So we should copy the settings.xml file to the user directory and modify the file to customize Maven's behavior within the user's scope.
What is the difference between the two paths.
The first path is global and affects all users on this machine, which is user-scoped and only the current user is affected by the configuration. User-scoped settings.xml are recommended on the one hand to avoid unintended impact on other users on the system, and to facilitate MAVEN upgrades.
By default, the. M2 folder places the Maven local repository, and all the maven artifacts are stored in the warehouse for ease of reuse. By default, there are no more directories and files in the folder directory than the Repository warehouse, but most MAVEN users need to replicate m2_home/conf/ settings.xml files to the. M2 folder, or to the path to the current Setting.xml file.
Summarize:
Encounter such a problem, must not be anxious to go down, stop, ask a few more why. Check more relevant information, some knowledge is necessary, some knowledge is expanded, then now belongs to the necessary, need to know more about.