{"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":"Lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab s\u00e1\u00bb\u00b1 ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c pom kh\u00e1\u00bb\u008fi t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c trong Java Project Eclipse"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">T\u00c3\u00b4i g\u00e1\u00ba\u00b7p s\u00e1\u00bb\u00b1 c\u00e1\u00bb\u2018 khi lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab ph\u00e1\u00ba\u00a7n ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c kh\u00e1\u00bb\u008fi t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 ph\u00e1\u00ba\u00a7n ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c trong t\u00e1\u00bb\u2021p POM. N\u00e1\u00ba\u00bfu b\u00e1\u00ba\u00a1n kh\u00c3\u00b4ng s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng Eclipse, b\u00e1\u00ba\u00a1n ph\u00e1\u00ba\u00a3i \u00c4\u2018\u00e1\u00ba\u00b7t c\u00c3\u00a1c m\u00e1\u00bb\u2021nh \u00c4\u2018\u00e1\u00bb\u0081 lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab tr\u00c3\u00aan t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c ph\u00e1\u00ba\u00a7n ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c trong t\u00e1\u00bb\u2021p POM cho ph\u00e1\u00ba\u00a7n ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c n\u00c3\u00a0y. T\u00c3\u00b4i s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng Eclipse v\u00c3\u00a0 b\u00e1\u00ba\u00a1n c\u00c3\u00b3 th\u00e1\u00bb\u0192 l\u00c3\u00a0m nh\u00c6\u00b0 sau.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>M\u00e1\u00bb\u0178 D\u00e1\u00bb\u00b1 \u00c3\u00a1n trong Eclipse trong Ch\u00e1\u00ba\u00bf \u00c4\u2018\u00e1\u00bb\u2122 xem g\u00c3\u00b3i, \u00c4\u2018i t\u00e1\u00bb\u203ai &#8216;Ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c Maven&#8217;<\/li><li>Nh\u00e1\u00ba\u00a5p chu\u00e1\u00bb\u2122t ph\u00e1\u00ba\u00a3i v\u00c3\u00a0o Ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c b\u00e1\u00ba\u00a1n mu\u00e1\u00bb\u2018n lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab<\/li><li>\u00c4\u0090i v\u00c3\u00a0o Menu \u00c4\u2018\u00c3\u00a3 m\u00e1\u00bb\u0178 t\u00e1\u00bb\u203ai &#8216;Maven&gt;&#8217; v\u00c3\u00a0 n\u00c3\u00b3 s\u00e1\u00ba\u00bd m\u00e1\u00bb\u0178 m\u00e1\u00bb\u2122t Menu kh\u00c3\u00a1c \u00e1\u00bb\u0178 b\u00c3\u00aan ph\u00e1\u00ba\u00a3i<\/li><li>Nh\u00e1\u00ba\u00a5p v\u00c3\u00a0o &#8216;Lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab hi\u00e1\u00bb\u2021n v\u00e1\u00ba\u00adt Maven&#8217;<\/li><li>Ch\u00e1\u00bb\u008dn t\u00e1\u00bb\u2021p POM b\u00e1\u00ba\u00a1n mu\u00e1\u00bb\u2018n th\u00e1\u00bb\u00b1c hi\u00e1\u00bb\u2021n thay \u00c4\u2018\u00e1\u00bb\u2022i trong c\u00e1\u00bb\u00ada s\u00e1\u00bb\u2022 sau<\/li><li>L\u00c6\u00b0u t\u00e1\u00bb\u2021p POM \u00c4\u2018\u00c3\u00a3 thay \u00c4\u2018\u00e1\u00bb\u2022i<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Trong t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c ph\u00e1\u00ba\u00a7n ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c n\u00c6\u00a1i s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng ph\u00e1\u00ba\u00a7n ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c b\u00e1\u00bb\u2039 lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab s\u00e1\u00ba\u00bd \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c \u00c4\u2018\u00e1\u00ba\u00b7t m\u00e1\u00bb\u2021nh \u00c4\u2018\u00e1\u00bb\u0081 lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab cho ph\u00e1\u00ba\u00a7n ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c n\u00c3\u00a0y v\u00c3\u00a0 nh\u00c6\u00b0 b\u00e1\u00ba\u00a1n th\u00e1\u00ba\u00a5y ph\u00e1\u00ba\u00a7n ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c b\u00e1\u00bb\u2039 lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab kh\u00c3\u00b4ng c\u00c3\u00b2n n\u00e1\u00ba\u00b1m trong &#8216;Ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c Maven&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>T\u00f4i g\u00e1\u00ba\u00a5p s\u00e1\u00bb\u00b1 c\u00e1\u00bb\u2018 khi lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb` kh\u00e1m ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c kh\u00e1\u00bbi t\u00e1 t\u00e1\u00a5t c\u00e1\u20ac ph\u00e1t hi\u1ec7n\u00bb\u00a5 thu\u00e1\u00bb\u2122c trong t\u00e1\u00bb\u2021p POM. N\u00e1\u00ba\u00bfu b\u00e1\u00ef\u00a1n kh\u00f4ng s\u00e1\u00bb d\u00e1\u00bb\u00a5ng Eclipse, b\u1ea1n \u00c4\u00f9n ph\u00e1 \u00c4&#8217;\u00e1\u00f0\u00b7t c\u00c3\u00a1c m\u00e1\u00bb\u2021nh \u00c4&#8217;\u00e1\u00bb\u0192 lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb` tr\u00aan t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c \u0111\u1ed9t ph\u00e1&#8217;\u00a5 thu\u00e1\u00bb\u2122c trong t\u00e1\u00bb\u2021p POM cho \u0111\u1ed9t ph\u00e1 \u0111\u01b0\u1ee3c r\u1ed3i. T\u00f4i s\u00e1\u00bb d\u00e1\u00bb\u00a5ng Eclipse v\u00e0 b\u1ea1n c\u00f3 [&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-loai-tru-su-phu-thuoc","tag-loai-tru-su-phu-thuoc-khoi-tat-ca-cac-phu-thuoc","tag-loai-tru-su-phu-thuoc-vao-pom"],"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":"Eclipse c\u00c3\u00a1ch s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng c\u00c3\u00a1c l\u00e1\u00bb\u203ap si\u00c3\u00aau m\u00c3\u00b4 h\u00c3\u00acnh t\u00c4\u00a9nh JPA trong khi vi\u00e1\u00ba\u00bft c\u00c3\u00a1c truy v\u00e1\u00ba\u00a5n ti\u00c3\u00aau ch\u00c3\u00ad trong Hibernate","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":"C\u00e1\u00ba\u00a5u h\u00c3\u00acnh Java Log4j2 trong D\u00e1\u00bb\u00b1 \u00c3\u00a1n c\u00e1\u00bb\u00a7a b\u00e1\u00ba\u00a1n","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":"C\u00c3\u00a1ch t\u00e1\u00ba\u00a1o PDF t\u00e1\u00bb\u00ab HTML ho\u00e1\u00ba\u00b7c h\u00c3\u00acnh \u00e1\u00ba\u00a3nh b\u00e1\u00ba\u00b1ng khung java pdfbox","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":"Ch\u00e1\u00ba\u00bf \u00c4\u2018\u00e1\u00bb\u2122 ghi l\u00e1\u00ba\u00a1i .htaccess &#8211; c\u00c3\u00a1ch lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab th\u00c6\u00b0 m\u00e1\u00bb\u00a5c kh\u00e1\u00bb\u008fi quy t\u00e1\u00ba\u00afc ghi l\u00e1\u00ba\u00a1i","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;C\u00c3\u00a1c b\u00c3\u00a0i vi\u00e1\u00ba\u00bft v\u00e1\u00bb\u0081 t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c ch\u00e1\u00bb\u00a7 \u00c4\u2018\u00e1\u00bb\u0081 kh\u00c3\u00a1c kh\u00c3\u00b4ng thu\u00e1\u00bb\u2122c c\u00c3\u00a1c ch\u00e1\u00bb\u00a7 \u00c4\u2018\u00e1\u00bb\u0081 ch\u00c3\u00adnh&quot;","block_context":{"text":"C\u00c3\u00a1c b\u00c3\u00a0i vi\u00e1\u00ba\u00bft v\u00e1\u00bb\u0081 t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c ch\u00e1\u00bb\u00a7 \u00c4\u2018\u00e1\u00bb\u0081 kh\u00c3\u00a1c kh\u00c3\u00b4ng thu\u00e1\u00bb\u2122c c\u00c3\u00a1c ch\u00e1\u00bb\u00a7 \u00c4\u2018\u00e1\u00bb\u0081 ch\u00c3\u00adnh","link":"https:\/\/vkrastev1blog.com\/category\/cac-bai-viet-ve-tat-ca-cac-chu-de-khac-khong-thuoc-cac-chu-de-chinh\/"},"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 lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab Jars kh\u00e1\u00bb\u008fi t\u00e1\u00bb\u2021p WAR","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 kh\u00c3\u00b4ng c\u00c3\u00b3 nh\u00e1\u00ba\u00adt k\u00c3\u00bd catalina.out","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}]}}