{"id":189,"date":"2022-03-24T11:50:53","date_gmt":"2022-03-24T11:50:53","guid":{"rendered":"https:\/\/vkrastev1blog.com\/?p=189"},"modified":"2022-03-24T11:50:53","modified_gmt":"2022-03-24T11:50:53","slug":"exclude-pom-dependency-from-all-dependencies-in-java-project-eclipse","status":"publish","type":"post","link":"https:\/\/vkrastev1blog.com\/2022\/03\/24\/exclude-pom-dependency-from-all-dependencies-in-java-project-eclipse\/","title":{"rendered":"Izsl\u00c4\u201cdziet atkar\u00c4\u00abbu no pom no vis\u00c4\u0081m Java Project Eclipse atkar\u00c4\u00abb\u00c4\u0081m"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Man rad\u00c4\u0081s probl\u00c4\u201cma, lai izsl\u00c4\u201cgtu atkar\u00c4\u00abbu no vis\u00c4\u0081m POM faila atkar\u00c4\u00abb\u00c4\u0081m. Ja neizmantojat Eclipse, \u00c5\u00a1ai atkar\u00c4\u00abbai POM fail\u00c4\u0081 ir j\u00c4\u0081ievieto izsl\u00c4\u201cg\u00c5\u00a1anas klauzulas par vis\u00c4\u0081m atkar\u00c4\u00abb\u00c4\u0081m. Es izmantoju Eclipse, un j\u00c5\u00abs varat r\u00c4\u00abkoties \u00c5\u00a1\u00c4\u0081di.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Atveriet projektu Eclipse pakotnes skat\u00c4\u0081, dodieties uz \u00e2\u20ac\u0153Maven Dependencies\u00e2\u20ac\u009d<\/li><li>Ar peles labo pogu noklik\u00c5\u00a1\u00c4\u00b7iniet uz Atkar\u00c4\u00abba, kuru v\u00c4\u201claties izsl\u00c4\u201cgt<\/li><li>Atv\u00c4\u201crtaj\u00c4\u0081 izv\u00c4\u201cln\u00c4\u201c dodieties uz \u00e2\u20ac\u0153Maven&gt;\u00e2\u20ac\u009d, un labaj\u00c4\u0081 pus\u00c4\u201c tiek atv\u00c4\u201crta cita izv\u00c4\u201clne<\/li><li>Noklik\u00c5\u00a1\u00c4\u00b7iniet uz &#8220;Izsl\u00c4\u201cgt Maven artefaktu&#8221;<\/li><li>N\u00c4\u0081kamaj\u00c4\u0081 log\u00c4\u0081 izv\u00c4\u201clieties POM failu, kur\u00c4\u0081 v\u00c4\u201claties veikt izmai\u00c5\u2020as<\/li><li>Saglab\u00c4\u0081jiet main\u00c4\u00abto POM failu<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Vis\u00c4\u0081s atkar\u00c4\u00abb\u00c4\u0081s, kur\u00c4\u0081s tiek izmantota izsl\u00c4\u201cgt\u00c4\u0081 atkar\u00c4\u00abba, \u00c5\u00a1ai atkar\u00c4\u00abbai tiks pievienota izsl\u00c4\u201cg\u00c5\u00a1anas klauzula, un, k\u00c4\u0081 redzat, izsl\u00c4\u201cgt\u00c4\u0081 atkar\u00c4\u00abba vairs nav pieejama sada\u00c4\u00bc\u00c4\u0081 \u00e2\u20ac\u0153Maven Dependencies\u00e2\u20ac\u009d.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Man rad\u00c4\u00a8s probl\u00c4\u201cma, lai izsl\u00c4\u201cgtu atkar\u00c4\u00abbu no vis\u00c4\u00b8m POM faila atkar\u00c4\u00abb\u00c4\u00b8m. I don&#8217;t use Eclipse, \u00c5\u00a1ai atkar\u00c4\u00abbai POM fail\u00c4\u2008 ir j\u00c4\u2012ievieto izsl\u00c4\u201cg\u00c5\u00a1anas klauzas par vis\u00c4\u2008m atkar\u00c4\u00abb\u00c4\u2201m. Es \u00e4\u00e4\u00e4\u00e4ju Eclipse, un j\u00c5\u00abs varat pakototies projektiem \u00c5c. skat\u00c4\u2012, go uz \u201cMaven Dependencies\u201d Ar peles labo pogu noklik\u00c5\u00a1\u00c4\u00b7iniet uz Atkar\u00c4\u00abba, kuru v\u00c4\u201claties izsl\u00c4\u201cgt Atv\u00c4\u201crtaj\u00c4\u02c6 izv\u00c4\u201cln\u00c4\u201c go [&hellip;]<\/p>\n","protected":false},"author":65283547,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_seo_llms_txt_always_include":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1017],"tags":[731397796,731397803,731397794],"class_list":["post-189","post","type-post","status-publish","format-standard","hentry","category-java","tag-izslegt-atkaribu","tag-izslegt-atkaribu-no-visam-atkaribam","tag-izslegt-pom-atkaribu"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-33","jetpack-related-posts":[{"id":217,"url":"https:\/\/vkrastev1blog.com\/2022\/05\/20\/eclipse-how-to-use-the-jpa-static-metamodel-classes-while-writing-criteria-queries-in-hibernate\/","url_meta":{"origin":189,"position":0},"title":"Aptumsums, k\u00c4\u0081 izmantot JPA statisko metamode\u00c4\u00bcu klases, rakstot krit\u00c4\u201criju vaic\u00c4\u0081jumus hibern\u00c4\u0081cijas re\u00c5\u00be\u00c4\u00abm\u00c4\u0081","author":"vkrastev2014","date":"20.05.2022","format":false,"excerpt":"When you use Maven you have to add in your POM following dependency: <dependency> <groupId>org.hibernate<\/groupId> <artifactId>hibernate-jpamodelgen<\/artifactId> <version>5.3.7.Final<\/version> <\/dependency> Now you have to add folder target\\generated-sources\\annotations to your classpath as by default, the classes will be generated in this folder only. You go in Project Build Path -> Configure Build Path\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":194,"url":"https:\/\/vkrastev1blog.com\/2022\/03\/30\/java-configure-log4j2-in-your-project\/","url_meta":{"origin":189,"position":1},"title":"Java konfigur\u00c4\u201cjiet Log4j2 sav\u00c4\u0081 projekt\u00c4\u0081","author":"vkrastev2014","date":"30.03.2022","format":false,"excerpt":"Log4j2 and SLF4j Binding DependenciesTo make Log4j2 work with SLF4J, we need to include the following 3 dependencies. log4j-slf4j-impl.jar \u2013 Log4j 2 SLF4J binding. It allows applications coded to the SLF4J API to use Log4j2 as the implementation.log4j-api.jar \u2013 provides the adapter components required for implementers to create a logging\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":247,"url":"https:\/\/vkrastev1blog.com\/2024\/04\/11\/how-to-create-pdf-from-html-or-image-using-java-pdfbox-framework\/","url_meta":{"origin":189,"position":2},"title":"K\u00c4\u0081 izveidot PDF no HTML vai att\u00c4\u201cla, izmantojot java pdfbox ietvaru","author":"vkrastev2014","date":"11.04.2024","format":false,"excerpt":"How to create PDF from HTML or image using java pdfbox framework Following example code here: In pom.xml insert or get the jar files and add them to the java project if you don't use maven: <repositories> <repository> <id>jitpack.io<\/id> <url>https:\/\/jitpack.io<\/url> <\/repository> <\/repositories> <!-- https:\/\/mvnrepository.com\/artifact\/org. apache.pdfbox\/pdfbox --> <dependency> <groupId>org.apache.pdfbox<\/groupId> <artifactId>pdfbox<\/artifactId> <version>3.0.2<\/version>\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":163,"url":"https:\/\/vkrastev1blog.com\/2022\/02\/01\/htaccess-rewrite-mode-how-to-exclude-directory-from-rewrite-rule\/","url_meta":{"origin":189,"position":3},"title":".htaccess p\u00c4\u0081rrakst\u00c4\u00ab\u00c5\u00a1anas re\u00c5\u00be\u00c4\u00abms &#8211; k\u00c4\u0081 izsl\u00c4\u201cgt direktoriju no p\u00c4\u0081rrakst\u00c4\u00ab\u00c5\u00a1anas noteikuma","author":"vkrastev2014","date":"01.02.2022","format":false,"excerpt":"119 Put a .htaccess file containing RewriteEngine Off In the folders you want to exclude from being rewritten by the rules in a .htaccess file that's higher up in the tree.\u00a0","rel":"","context":"In &quot;Raksti par vis\u00c4\u0081m p\u00c4\u0081r\u00c4\u201cj\u00c4\u0081m t\u00c4\u201cm\u00c4\u0081m, kas nav galvenaj\u00c4\u0081s t\u00c4\u201cm\u00c4\u0081s&quot;","block_context":{"text":"Raksti par vis\u00c4\u0081m p\u00c4\u0081r\u00c4\u201cj\u00c4\u0081m t\u00c4\u201cm\u00c4\u0081m, kas nav galvenaj\u00c4\u0081s t\u00c4\u201cm\u00c4\u0081s","link":"https:\/\/vkrastev1blog.com\/category\/raksti-par-visam-parejam-temam-kas-nav-galvenajas-temas\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":208,"url":"https:\/\/vkrastev1blog.com\/2022\/04\/03\/maven-excluding-jars-from-war-file\/","url_meta":{"origin":189,"position":4},"title":"Maven, iz\u00c5\u2020emot burkas no WAR faila","author":"vkrastev2014","date":"03.04.2022","format":false,"excerpt":"I have had a problem to exclude some Jars from War File with maven. You can do it using maven-war-plugin <project> ... <build> <plugins> <plugin> <artifactId>maven-war-plugin<\/artifactId> <version>3.3.2<\/version> <configuration> <packagingExcludes>WEB-INF\/lib\/xxxx*.jar<\/packagingExcludes> <\/configuration> <\/plugin> <\/plugins> <\/build> ... <\/project>","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":229,"url":"https:\/\/vkrastev1blog.com\/2022\/06\/03\/eclipse-tomcat-no-catalina-out-log\/","url_meta":{"origin":189,"position":5},"title":"Eclipse Tomcat no catalina.out \u00c5\u00beurn\u00c4\u0081la","author":"vkrastev2014","date":"03.06.2022","format":false,"excerpt":"In Eclipse you have already added Tomcat as Server than you do following: In the servers tab, double-click on the Tomcat Server. You will get a screen called Overview.Click on \"Open launch configuration\". Click on the \"Common\" tab.Towards the bottom of the screen you can check the \"Output File\" checkbox\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/users\/65283547"}],"replies":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":4,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":193,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/189\/revisions\/193"}],"wp:attachment":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}