Maven Combat (i)---maven build--missing a jar pack __itoo

Source: Internet
Author: User
Tags pack

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.