Could not find artifact and could not resolve dependencies
文章推薦指數: 80 %
When running maven from maven tab in IntelliJ, you use the settings you find from Alt/Ctrl S -> Build, Execution, Deployment > Build Tools > ... Home Public Questions Tags Users Companies Collectives ExploreCollectives Teams StackOverflowforTeams –Startcollaboratingandsharingorganizationalknowledge. CreateafreeTeam WhyTeams? Teams CreatefreeTeam Collectives™onStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore Couldnotfindartifactandcouldnotresolvedependencies AskQuestion Asked 2years,11monthsago Modified 2years,11monthsago Viewed 3ktimes 1 I'mworkinginamavenprojectwhichcontainsmanydependencies,ihaveadependencyfromacentralizedremoteNEXUSrepository,soishouldhaveaspecificconfigurationinmysetting.xml.. soWhenilaunchcleaninstallfromthemaventabinintellijitdisplayserrors: ERROR]Failedtoexecutegoalonprojectcalender:Couldnotresolve dependenciesforprojectcom.orange:calender:war:1.0-SNAPSHOT:Could notfindartifactcom.francetelecom.clara.component:security:jar:3.0.0 incentral(https://repo.maven.apache.org/maven2)->[Help1] butwheniswitchtotheTerminaltabinintellijthebuildsucceedwithouterrorsandwhenitrytodeploythewarwithinTomcatitwon't. Tomcatlog: java.lang.NoSuchMethodError: org.apache.commons.collections.ArrayStack:method(I)Vnotfound atorg.apache.commons.digester.Digester.(Digester.java:150)at com.francetelecom.clara.security.config.SecurityConfig.parse(SecurityConfig.java:95) at com.francetelecom.clara.security.SecurityManager.initialize(SecurityManager.java:114) at com.francetelecom.clara.security.SecurityManager.(SecurityManager.java:99) at com.francetelecom.clara.security.SecurityManager.getContextInstance(SecurityManager.java:371) maventomcatintellij-ideawar Share Follow editedJun27,2019at16:12 HamzaKhadhri askedJun27,2019at15:30 HamzaKhadhriHamzaKhadhri 17711silverbadge1616bronzebadges Addacomment | 1Answer 1 Sortedby: Resettodefault Highestscore(default) Datemodified(newestfirst) Datecreated(oldestfirst) 1 WhenrunningmavenfrommaventabinIntelliJ,youusethesettingsyoufindfromAlt/CtrlS->Build,Execution,Deployment>BuildTools>Maven WhenrunningfromterminalinIntelliJitwillusefirstmvnyoufindonPATHanduseconfigurationfromwhatyougetthere."mvn-version"fromterminalwillshowyouyourMavenHomewhenrunningmvnfromterminal Share Follow answeredJun27,2019at15:58 atokleatokle 6144bronzebadges Addacomment | YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Nottheansweryou'relookingfor?Browseotherquestionstaggedmaventomcatintellij-ideawaroraskyourownquestion. TheOverflowBlog Privacyisamovingtarget.Here’showengineeringteamscanstayontrack... OurfavoritefeaturesandupdatesfromWWDC(Ep.454) FeaturedonMeta AnnouncingthearrivalofValuedAssociate#1214:Dalmarus Testingnewtrafficmanagementtool AskWizardTestResultsandNextSteps Related 976 DifferencesbetweendependencyManagementanddependenciesinMaven 3 Couldnotfindartifactorg.apache.maven.plugins:maven-resources-plugin 2 Couldnottransferartifactfrom/tocentralintellij 1 Spring-Boot-Maven-Pluginissue"couldnottransfer" 0 Couldnottransferartifactcom.squareup.okhttp3:mockwebserver:pom:4.9.1from/tocentral(https://repo.maven.apache.org/maven2) HotNetworkQuestions Is"AveDominusNox"thecorrecttranslationfor"HailtotheLordofNight"? What'sthenameofthisstyleofchartthatsplitsflows? WhointheMCUhasasecretidentity? Howcanyouputalotoftime-skipsassoonaspossibleinastory? NonlinearModelFitfornonlinearfunctions Can"minorconjuration"createa50ftrope? Whatisthepurposeofatreadpatternoncity/roadtyres? Cananyonehelpidentifythispassengersteamshipwithdoublefunnelsandtwomasts? Howtodeterminethebaseofstratusclouds? Shortstoryaboutawizardwhoduelshisdarkerhalf Whatdoes"wasgeht"meaninthissentence? WheredoesFirefox(Snap)storetheprofiles? Twodifferentpaperswithdifferentsubjectsbutsameexperimentaldata.Howshouldwebehave? StatisticalinterpretationofdiagonalofCholeskydecomposition? Areantennasspecifiedforacertainfrequency? IsKhanAcademywrongaboutinflation? Truncatewordsinasentence Whatisthemotivationbehindthedefinitionofthematrixsumofagraph? NovelwherehumansareretreatingfromColonyworldswithsentientsymbioticgroupintelligence Hypotheticalanimalmaterialpart1 ssh-keygenfingerprintformatisdifferentbetweenRSA+ECDSAandED25519 ComicbookinwhichDarthVaderliftsanAT-AT HowdoesIRSknowthatIcalculatedtaxusingworksheet"QualifiedDividendsandCapitalGainTaxWorksheet" problemcancelinginmultiplicationoffractions morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. lang-xml Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings
延伸文章資訊
- 1Maven dependencies not being found - IDEs Support (IntelliJ ...
[ERROR] Failed to execute goal on project mvnsampledep: Could not ... Failure to find org.spigotm...
- 2IntelliJ gets errors when trying to download artifacts from ...
https\://nexus.example.com/repository/maven-public/.error=Could not transfer artifact ... Origina...
- 3IDEA导入项目时pom文件报错:Could not find artifact org ...
IDEA导入项目时pom文件报错:Could not find artifact org.openjfx:javafx.base:pom:11.0.0-SNAPSHOT in nexus. 技术...
- 4Maven Plugin: won't find a artifact in the local repository
Idea says the artifact was not to be found in 'central', which is true (it's not in Maven central...
- 5How to add Nexus repository index in IntelliJ IDEA? - Stack Overflow