{"id":1969,"date":"2017-12-07T06:34:45","date_gmt":"2017-12-07T06:34:45","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1969"},"modified":"2021-11-18T07:10:38","modified_gmt":"2021-11-18T07:10:38","slug":"maven-troubleshooting","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/maven-troubleshooting\/","title":{"rendered":"Maven Troubleshooting"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Maven troubleshooting<\/strong><br>\ni would like to knpw &#8220;Most Common Issues in Maven&#8221;?<\/p>\n<p>Any body can focus on this?<br>\nRegards,<br>\nRajesh Kumar<br>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>mnanjala replied the topic: Re:Maven troubleshooting<\/strong><br>\nYou may get error with Java Heap Size error.<br>\nSolution: set the Environment Variable of MAVEN_OPTS to &#8220;-Xms512m -Xmx512m -XX:MaxPermSize=1024m&#8221;<\/p>\n<p><strong>mnanjala replied the topic: Re:Maven troubleshooting<\/strong><br>\n2)ArtifactResolutionException<\/p>\n<p>This error generally occurs when Maven could not download dependencies. Possible causes for this error are:<\/p>\n<p>1. The repository you have configured requires authentication and Maven failed to provide the correct credentials to the server. In this case, make sure your ${user.home}\/.m2\/settings.xml contains a <server> declaration whose <id> matches the <id> of the plugin repository to use. See the Maven Settings Reference for more details.<br>\n2. The remote repository in question uses SSL and the JVM running Maven does not trust the certificate of the server.<br>\n5. Maven failed to save the files to your local repository.<br>\n4. You have configured Maven to perform strict checksum validation and the files to download got corrupted.<br>\n3. There is a general network problem that prevents Maven from accessing any remote repository, e.g. a missing proxy configuration.(Communication Issue local box and repo)<\/id><\/id><\/server><\/p>\n<p><strong>mnanjala replied the topic: Re:Maven troubleshooting<\/strong><br>\n3)DuplicateProjectException<br>\nThis error signals a collision of project identifiers during a reactor build. The coordinates for a project as given by its group id, artifact id and version must be unique within a reactor build. The usual cause for this error is a in one of the POMs so please verify the project coordinates are correctly set and valid.<\/p>\n<p><strong>mnanjala replied the topic: Re:Maven troubleshooting<\/strong><br>\nInternalErrorException<\/p>\n<p>This error indicates a bug in Maven itself.<\/p>\n<p>1. Capture the debug output of the failing build, e.g. by adding the flag -X to the command line and redirecting the console output of Maven to a file:<\/p>\n<p>mvn <your goals=\"\"> -X &gt; debug.log<\/your><\/p>\n<p>2.If interested report this bug to maven gurus you could submit a ticket in jira.codehaus.org\/browse\/MNG so we can avoid this bug in future provided bug has been fixed.It is said it is intermittent.<\/p>\n<p><strong>mnanjala replied the topic: Re:Maven troubleshooting<\/strong><br>\n4) InvalidPluginDescriptorException<br>\nThis error signals incomplete or wrong information in the descriptor for a plugin. The plugin descriptor is a special file in the plugin&#8217;s JAR file. An invalid descriptor is usually the result of bad driving while assembling the plugin. Please report this issue to the maintainer of the plugin in question.<\/p>\n<p>Not a bad idea to try out another version of the plugin, there&#8217;s not much you as a user can do.<\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_39205\"><iframe loading=\"lazy\"  id=\"_ytid_15994\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_39205\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Maven troubleshooting i would like to knpw &#8220;Most Common Issues in Maven&#8221;? Any body can focus on this? Regards, Rajesh Kumar Twitt me @ twitter.com\/RajeshKumarIn mnanjala&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[29],"tags":[161],"class_list":["post-1969","post","type-post","status-publish","format-standard","hentry","category-maven","tag-maven"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1969"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1969\/revisions"}],"predecessor-version":[{"id":25712,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1969\/revisions\/25712"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}