{"id":24933,"date":"2009-08-06T01:51:38","date_gmt":"2009-08-05T17:51:38","guid":{"rendered":"http:\/\/kaiyan.yo2.cn\/?p=24933"},"modified":"2009-08-06T01:51:38","modified_gmt":"2009-08-05T17:51:38","slug":"maven%e4%b8%ad%e5%a4%9a%e6%a8%a1%e5%9d%97%e9%a1%b9%e7%9b%ae%e7%9a%84site%e7%94%9f%e6%88%90","status":"publish","type":"post","link":"http:\/\/yankay.com\/maven%e4%b8%ad%e5%a4%9a%e6%a8%a1%e5%9d%97%e9%a1%b9%e7%9b%ae%e7%9a%84site%e7%94%9f%e6%88%90\/","title":{"rendered":"Maven\u4e2d\u591a\u6a21\u5757\u9879\u76ee\u7684Site\u751f\u6210"},"content":{"rendered":"

\u75b2\u7d2f\u4e0d\u582a\u7684\u6211\u4e00\u5b9a\u4e0d\u80fd\u5728\u5199\u5b8c\u4e4b\u524d\u5012\u4e0b\u3002<\/p>\n

Maven\u751f\u6210\u7ad9\u70b9\u5927\u5bb6\u90fd\u4f1a\u3002mvn site,mvn site-deploy\u3002\u4e0d\u7ba1\u662f\u5355\u6a21\u5757\uff0c\u591a\u6a21\u5757\u4e00\u5207OK\u3002\u53ef\u662f\u5982\u679c\u4e0d\u51d1\u5de7\uff0c\u4f60\u5982\u679c\u4e3a\u4e00\u4e2a\u5b50\u9879\u76ee\u4e13\u95e8 \u914d\u7f6e\u4e86 site.xml ,<\/p>\n

\u5f53\u4f60\u5728\u7236\u9879\u76ee\u76ee\u5f55\u4e0b\u8fd0\u884cmvn site-deploy\u65f6\uff0c\u5f88\u9057\u61be\uff0c\u4ed6\u4f1a\u4e00\u70b9\u4f5c\u7528\u90fd\u6ca1\u6709\uff0c\u4f7f\u7528\u7684\u662f \u7236\u9879\u76ee site.xml<\/p>\n

\u5f53\u4f60\u8fdb\u5165\u5b50\u9879\u76ee\u76ee\u5f55\uff0c\u8fd0\u884c mvn site-deploy,\u4e00\u5207OK\u3002<\/p>\n

\u4e8e\u662f\u8fd9\u4e94\u4e2a\u5c0f\u65f6\u6211\u88ab\u6298\u78e8\u7684\u86cb\u75bc\uff0c\u5b66\u4e60\u7684\u5927\u91cf\u7684Maven\u77e5\u8bc6\uff0c\u5b9e\u9a8c\u7684\u6570\u767e\u6b21(\u8fd0\u884c\u4e86\u4e00\u4e0bhistory,\u53d1\u73b0\u5176\u5b9e\u53ea\u670973\u6b21)\u3002\u4e8e\u662f\u5012\u4e0b\u4e86\u3002<\/p>\n

\u5728\u660f\u6b7b\u4e2d\uff0c\u6211\u60f3\u8d77\u6765\u4e86\uff0csite.xml\u652f\u6301\u7ee7\u627f\uff0c\u800c\u5982\u679c\u8981\u7f16\u5199\u4e00\u4e2a\u652f\u6301\u7ee7\u627f\u7684\u63d2\u4ef6\uff0c\u6700\u8d77\u7801\u7684\u8981\u6c42\u5c31\u662f\u5728\u8fd0\u884c\u7236\u5b50\u9879\u76ee\u7684\u65f6\u5019\u5fc5\u987b\u8fd0\u884c\u7684\u662f\u540c\u4e00\u4e2a\u63d2\u4ef6\u3002\u90a3\u4e48 \u89e3\u51b3\u65b9\u6848\u5982\u4e0b\uff1a<\/p>\n

\u5728\u7236\u9879\u76ee\u7684 pluginManagement \u4e2d\u660e\u786e \u4f7f\u7528 maven-site-plugin\u3002\u800c\u5728\u6bcf\u4e00\u4e2a\u9879\u76ee\u4e2d\u90fd\u660e\u786e\u4f7f\u7528 maven-site-plugin<\/p>\n

\u4ee3\u7801\u5982\u4e0b\uff1a\u7236\u9879\u76eepom.xml\uff1a<\/p>\n

\n\n\n\n\norg.apache.maven.plugins<\/groupId>\nmaven-site-plugin<\/artifactId>\n2.0<\/version>\n<\/plugin>\n<\/plugins>\n<\/pluginManagement>\n\n\norg.apache.maven.plugins<\/groupId>\nmaven-site-plugin<\/artifactId>\n<\/plugin>\n<\/plugins>\n<\/build>\n<\/pre>\n

\u5b50\u9879\u76eepom.xml\uff1a<\/p>\n

\n\n\n\n\norg.apache.maven.plugins<\/groupId>\nmaven-site-plugin<\/artifactId>\n<\/plugin>\n<\/plugins>\n<\/build>\n<\/pre>\n

\u89e3\u51b3\u4e4b\uff0c\u7ec8\u5f97\u7720<\/p>\n","protected":false},"excerpt":{"rendered":"

\u75b2\u7d2f\u4e0d\u582a\u7684\u6211\u4e00\u5b9a\u4e0d\u80fd\u5728\u5199\u5b8c\u4e4b\u524d\u5012\u4e0b\u3002 Maven\u751f\u6210\u7ad9\u70b9\u5927\u5bb6\u90fd\u4f1a\u3002mvn site,mvn site-depl […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"\nMaven\u4e2d\u591a\u6a21\u5757\u9879\u76ee\u7684Site\u751f\u6210 - \u6211\u81ea\u7136<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/yankay.com\/maven\u4e2d\u591a\u6a21\u5757\u9879\u76ee\u7684site\u751f\u6210\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Maven\u4e2d\u591a\u6a21\u5757\u9879\u76ee\u7684Site\u751f\u6210 - \u6211\u81ea\u7136\" \/>\n<meta property=\"og:description\" content=\"\u75b2\u7d2f\u4e0d\u582a\u7684\u6211\u4e00\u5b9a\u4e0d\u80fd\u5728\u5199\u5b8c\u4e4b\u524d\u5012\u4e0b\u3002 Maven\u751f\u6210\u7ad9\u70b9\u5927\u5bb6\u90fd\u4f1a\u3002mvn site,mvn site-depl […]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/yankay.com\/maven\u4e2d\u591a\u6a21\u5757\u9879\u76ee\u7684site\u751f\u6210\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6211\u81ea\u7136\" \/>\n<meta property=\"article:published_time\" content=\"2009-08-05T17:51:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/yankay.com\/#website\",\"url\":\"http:\/\/yankay.com\/\",\"name\":\"\\u6211\\u81ea\\u7136\",\"description\":\"\\u989c\\u5f00\\u7684\\u535a\\u5ba2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/yankay.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/yankay.com\/maven%e4%b8%ad%e5%a4%9a%e6%a8%a1%e5%9d%97%e9%a1%b9%e7%9b%ae%e7%9a%84site%e7%94%9f%e6%88%90\/#webpage\",\"url\":\"http:\/\/yankay.com\/maven%e4%b8%ad%e5%a4%9a%e6%a8%a1%e5%9d%97%e9%a1%b9%e7%9b%ae%e7%9a%84site%e7%94%9f%e6%88%90\/\",\"name\":\"Maven\\u4e2d\\u591a\\u6a21\\u5757\\u9879\\u76ee\\u7684Site\\u751f\\u6210 - \\u6211\\u81ea\\u7136\",\"isPartOf\":{\"@id\":\"http:\/\/yankay.com\/#website\"},\"datePublished\":\"2009-08-05T17:51:38+00:00\",\"dateModified\":\"2009-08-05T17:51:38+00:00\",\"author\":{\"@id\":\"http:\/\/yankay.com\/#\/schema\/person\/f52d918e9bfa51c4454172c2caa7704f\"},\"breadcrumb\":{\"@id\":\"http:\/\/yankay.com\/maven%e4%b8%ad%e5%a4%9a%e6%a8%a1%e5%9d%97%e9%a1%b9%e7%9b%ae%e7%9a%84site%e7%94%9f%e6%88%90\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/yankay.com\/maven%e4%b8%ad%e5%a4%9a%e6%a8%a1%e5%9d%97%e9%a1%b9%e7%9b%ae%e7%9a%84site%e7%94%9f%e6%88%90\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/yankay.com\/maven%e4%b8%ad%e5%a4%9a%e6%a8%a1%e5%9d%97%e9%a1%b9%e7%9b%ae%e7%9a%84site%e7%94%9f%e6%88%90\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/yankay.com\/\",\"url\":\"http:\/\/yankay.com\/\",\"name\":\"\\u9996\\u9875\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@id\":\"http:\/\/yankay.com\/maven%e4%b8%ad%e5%a4%9a%e6%a8%a1%e5%9d%97%e9%a1%b9%e7%9b%ae%e7%9a%84site%e7%94%9f%e6%88%90\/#webpage\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/yankay.com\/#\/schema\/person\/f52d918e9bfa51c4454172c2caa7704f\",\"name\":\"yankay\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/yankay.com\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/426bb830224c1471011d92a830a6ed4f?s=96&d=wavatar&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/426bb830224c1471011d92a830a6ed4f?s=96&d=wavatar&r=g\",\"caption\":\"yankay\"},\"sameAs\":[\"http:\/\/47.100.65.109\"],\"url\":\"http:\/\/yankay.com\/author\/yankay\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts\/24933"}],"collection":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/comments?post=24933"}],"version-history":[{"count":0,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts\/24933\/revisions"}],"wp:attachment":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/media?parent=24933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/categories?post=24933"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/tags?post=24933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}