{"id":205118,"date":"2013-12-10T15:41:03","date_gmt":"2013-12-10T11:41:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=205118"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=205118","title":{"rendered":"<span class=\"post_title\">\u041f\u0438\u0448\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f Maven<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0415\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 maven-\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u044c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 shared-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Tomcat.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Maven profile<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;profile&gt; \t&lt;id&gt;deploy-deps&lt;\/id&gt; \t&lt;build&gt; \t\t&lt;plugins&gt; \t\t\t&lt;plugin&gt; \t\t\t\t&lt;artifactId&gt;maven-dependency-plugin&lt;\/artifactId&gt; \t\t\t\t&lt;executions&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;copy-dependencies&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;useSubDirectoryPerScope&gt;true&lt;\/useSubDirectoryPerScope&gt; \t\t\t\t\t\t\t&lt;excludeGroupIds&gt;\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0432 war-\u0430\u0440\u0445\u0438\u0432&lt;\/excludeGroupIds&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t&lt;\/executions&gt; \t\t\t&lt;\/plugin&gt; \t\t\t&lt;plugin&gt; \t\t\t\t&lt;groupId&gt;org.codehaus.mojo&lt;\/groupId&gt; \t\t\t\t&lt;artifactId&gt;exec-maven-plugin&lt;\/artifactId&gt; \t\t\t\t&lt;executions&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;05-stop-tomcat&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${tomcat.dir.root}\/bin\/shutdown.sh&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;10-clean-shared-jars&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;rm&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-Rf&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${tomcat.dir.shared}\/*.jar&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;15-upload-shared-jars&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-scp&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${project.build.directory}\/dependency\/compile\/*.jar&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}:${tomcat.lib.shared}\/&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;pscp&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;20-start-tomcat&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;&quot;${putty.key}&quot;&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;bin\/startup.sh&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t&lt;\/executions&gt; \t\t\t&lt;\/plugin&gt; \t\t&lt;\/plugins&gt; \t&lt;\/build&gt; &lt;\/profile&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u043e\u0442\u0445\u043e\u0434\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443, \u043f\u043e\u0432\u0435\u0434\u0430\u044e \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0441\u0435\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c<\/b><\/p>\n<div class=\"spoiler_text\">\u0412 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u043a\u0430 Nginx+Tomcat. \u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u043a\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<ol>\n<li>\u0414\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 webapps. \u0412 \u044d\u0442\u043e\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u00ab\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u00bb Nginx \u0438 \u043e\u0442\u0434\u0430\u0451\u0442 \u043f\u043e web-\u043f\u0443\u0442\u0438 &quot;\/static\/*&quot;<\/li>\n<li>\u0412\u0441\u0435 shared java-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u0440\u0435\u0434\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435) \u0433\u0440\u0443\u0437\u044f\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 ${catalina.home}\/shared, \u0438 \u0432 Tomcat \u0432 \u0444\u0430\u0439\u043b\u0435 conf\/catalina.properties \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u00abshared.loader\u00bb<\/li>\n<li>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 Tomcat \u0441\u043e\u0437\u0434\u0430\u043d \u0441\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c<\/li>\n<li>\u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u043e SSH \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u0438 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043e\u043d \u0441\u0432\u043e\u0439<\/li>\n<\/ol>\n<p>  \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0438 shared-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0438. \u0412\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 war-\u0430\u0440\u0445\u0438\u0432 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 web-manager Tomcat-\u0430.<br \/>  \u0410 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043b\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f PAgent, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c private keys. \u041e\u043d\u0438 \u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Putty  <\/div>\n<\/div>\n<p>  \u041b\u0435\u0436\u0438\u0442 \u0441\u0435\u0431\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0432 pom.xml, \u043d\u0435 \u043a\u0443\u0441\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u043e\u0434\u0435 \u0431\u044b, \u0434\u0430\u0436\u0435 \u043f\u0430\u0448\u0435\u0442 \u043f\u043e\u0442\u0438\u0445\u043e\u043d\u044c\u043a\u0443 \u043d\u0430 \u0431\u043b\u0430\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435\u0440\u0430, \u043d\u043e \u0432\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u0442\u044c \u0432 \u043d\u0451\u043c \u043f\u0430\u0440\u0430 \u00ab\u043c\u0438\u043d\u0443\u0441\u043e\u0432\u00bb \u2014 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u043e\u043c pom.xml \u0434\u0430 \u0435\u0449\u0451 \u0438 \u0432 \u043d\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c.<br \/>  \u0418 \u0435\u0441\u043b\u0438 \u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u0438\u043d\u0443\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0448\u0430\u0431\u043b\u043e\u043d \u0432 <acronym>*\u043c\u043e\u044f \u043b\u044e\u0431\u0438\u043c\u0430\u044f IDE*<\/acronym> \u0438\u043b\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/111408\/\">\u0441\u0432\u043e\u0439 \u0430\u0440\u0445\u0435\u0442\u0438\u043f<\/a> \u043d\u0430\u0432\u0430\u044f\u0442\u044c, \u0442\u043e \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u0438\u043d\u0443\u0441\u0430 \u043d\u0435 \u0442\u0430\u043a-\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>  \u0422\u043e\u0447\u043d\u043e \u043b\u0438 \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e? \u043c\u043e\u0436\u0435\u0442 \u00ab\u043e\u0431\u0435\u0440\u043d\u0451\u043c\u00bb \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0432 \u0432\u0438\u0434\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0434\u043b\u044f Maven? \u0421\u043a\u0430\u0437\u0430\u043d\u043e, \u0441\u0434\u0435\u043b\u0430\u043d\u043e.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0428\u0430\u0433 1. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 maven<\/h4>\n<p>  , \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u0441\u0431\u043e\u0440\u043a\u0438 \u00abmaven-plugin\u00bb. \u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438:<br \/>  1) <a href=\"http:\/\/maven.apache.org\/plugin-tools\/maven-plugin-annotations\/\"><code>org.apache.maven.plugin-tools:maven-plugin-annotations<\/code><\/a> \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f Mojo \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 JavaDoc, \u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0439<br \/>  2) <a href=\"https:\/\/github.com\/TimMoore\/mojo-executor\"><code>org.twdata.maven:mojo-executor<\/code><\/a> \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e.<br \/>  \u041f\u043e\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u2014 \u043f\u043e\u0440\u0430 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0430\u043c\u043e\u0433\u043e Mojo \u043a\u043b\u0430\u0441\u0441\u0430.<br \/>  <a href=\"https:\/\/github.com\/BorzdeG\/info.alenkov.tools.maven.tomcat7-ewar-plugin\/commit\/c3eafc1d0f325f9b1f4e4ed645aef65b4aab09fe\">commit<\/a><\/p>\n<h4>\u0428\u0430\u0433 2. \u041f\u0438\u0448\u0435\u043c Mojo-\u043a\u043b\u0430\u0441\u0441<\/h4>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a\u043b\u0430\u0441\u0441\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">@Mojo(name = &quot;deploy-deps&quot;, defaultPhase = LifecyclePhase.PROCESS_SOURCES, threadSafe = true) public class DeployDepsMojo extends AbstractMojo {  \t@Component \tprotected MavenProject                      mavenProject; \t@Component \tprotected MavenSession                      mavenSession; \t@Component \tprotected BuildPluginManager                pluginManager; \tprotected MojoExecutor.ExecutionEnvironment _pluginEnv;  \t@Override \tpublic void execute() throws MojoExecutionException, MojoFailureException { \t\t_pluginEnv = executionEnvironment(mavenProject, mavenSession, pluginManager); \t} } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <a href=\"https:\/\/github.com\/BorzdeG\/info.alenkov.tools.maven.tomcat7-ewar-plugin\/commit\/c3eafc1d0f325f9b1f4e4ed645aef65b4aab09fe\">commit<\/a><\/p>\n<p>  \u041d\u0430\u043c <a href=\"http:\/\/maven.apache.org\/plugin-tools\/maven-plugin-plugin\/examples\/using-annotations.html\">\u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f<\/a> \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f mojo \u0442\u0435\u0433\u043e\u0432 \u0438\u0437 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0439 (<a href=\"https:\/\/github.com\/BorzdeG\/info.alenkov.tools.maven.tomcat7-ewar-plugin\/commit\/9a3c863194cbc6efd89fff2f8c97db1c3588d4fd\">commit<\/a>):  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a\u043b\u0430\u0441\u0441\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;build&gt; \t&lt;!-- ... --&gt; \t&lt;plugins&gt; \t\t&lt;plugin&gt; \t\t\t&lt;artifactId&gt;maven-plugin-plugin&lt;\/artifactId&gt; \t\t\t&lt;executions&gt; \t\t\t\t&lt;execution&gt; \t\t\t\t\t&lt;id&gt;help-goal&lt;\/id&gt; \t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t&lt;goal&gt;helpmojo&lt;\/goal&gt; \t\t\t\t\t&lt;\/goals&gt; \t\t\t\t&lt;\/execution&gt; \t\t\t\t&lt;execution&gt; \t\t\t\t\t&lt;id&gt;mojo-descriptor&lt;\/id&gt; \t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t&lt;goal&gt;descriptor&lt;\/goal&gt; \t\t\t\t\t&lt;\/goals&gt; \t\t\t\t&lt;\/execution&gt; \t\t\t&lt;\/executions&gt; \t\t\t&lt;configuration&gt; \t\t\t\t&lt;skipErrorNoDescriptorsFound&gt;true&lt;\/skipErrorNoDescriptorsFound&gt; \t\t\t&lt;\/configuration&gt; \t\t&lt;\/plugin&gt; \t&lt;\/plugins&gt; &lt;\/build&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/h5>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0431\u044b\u043b\u043e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;plugin&gt; \t&lt;artifactId&gt;maven-dependency-plugin&lt;\/artifactId&gt; \t&lt;executions&gt; \t\t&lt;execution&gt; \t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t&lt;goals&gt; \t\t\t\t&lt;goal&gt;copy-dependencies&lt;\/goal&gt; \t\t\t&lt;\/goals&gt; \t\t\t&lt;configuration&gt; \t\t\t\t&lt;useSubDirectoryPerScope&gt;true&lt;\/useSubDirectoryPerScope&gt; \t\t\t\t&lt;excludeGroupIds&gt;\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0432 war-\u0430\u0440\u0445\u0438\u0432&lt;\/excludeGroupIds&gt; \t\t\t&lt;\/configuration&gt; \t\t&lt;\/execution&gt; \t&lt;\/executions&gt; &lt;\/plugin&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0441\u0442\u0430\u043b\u043e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">@Mojo(name = &quot;deploy-deps&quot;,       requiresDependencyResolution = ResolutionScope.TEST,       defaultPhase = LifecyclePhase.PROCESS_SOURCES, threadSafe = true) public class DeployDepsMojo extends AbstractMojo {  \/\/ ...  \t@Override \tpublic void execute() throws MojoExecutionException, MojoFailureException { \t\t_pluginEnv = executionEnvironment(mavenProject, mavenSession, pluginManager); \t\tcopyDependencies(); \t}  \tprivate void copyDependencies() throws MojoExecutionException { \t\t\/\/ TODO expects corrections https:\/\/github.com\/TimMoore\/mojo-executor\/issues\/18 \t\tPlugin pluginDependency = plugin(&quot;org.apache.maven.plugins&quot;, &quot;maven-dependency-plugin&quot;, &quot;2.8&quot;);  \t\tfinal Xpp3Dom cfg = configuration(element(name(&quot;useSubDirectoryPerScope&quot;), &quot;true&quot;));  \t\texecuteMojo(pluginDependency, goal(&quot;copy-dependencies&quot;), cfg, _pluginEnv); \t} } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p><a href=\"https:\/\/github.com\/BorzdeG\/info.alenkov.tools.maven.tomcat7-ewar-plugin\/commit\/67c58366472b0b064e17c2e39c37619dda090840\">commit<\/a><br \/>  \u041a\u0440\u0430\u0442\u043a\u043e:  <\/p>\n<ol>\n<li>\u00abrequiresDependencyResolution = ResolutionScope.TEST\u00bb <a href=\"http:\/\/maven.apache.org\/developers\/mojo-api-specification.html\">\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f<\/a> \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u2014 \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043b\u0430\u0433\u0438\u043d maven-dependency-plugin \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0451\u0442 \u0438\u0445 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/li>\n<li>\u00abthreadSafe = true\u00bb \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 Mojo \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u2014 \u043e\u043d \u0441\u0430\u043c\u043e\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u0435\u043d<\/li>\n<li>\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 executeMojo \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 goal \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u0435\u043c \u0436\u0435 (\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f _pluginEnv)<\/li>\n<\/ol>\n<p>  <\/p>\n<h5>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Tomcat<\/h5>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0431\u044b\u043b\u043e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;plugin&gt; \t&lt;groupId&gt;org.codehaus.mojo&lt;\/groupId&gt; \t&lt;artifactId&gt;exec-maven-plugin&lt;\/artifactId&gt; \t&lt;executions&gt; \t\t&lt;execution&gt; \t\t\t&lt;id&gt;05-stop-tomcat&lt;\/id&gt; \t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t&lt;goals&gt; \t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t&lt;\/goals&gt; \t\t\t&lt;configuration&gt; \t\t\t\t&lt;arguments&gt; \t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t&lt;argument&gt;${tomcat.dir.root}\/bin\/shutdown.sh&lt;\/argument&gt; \t\t\t\t&lt;\/arguments&gt; \t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t&lt;\/configuration&gt; \t\t&lt;\/execution&gt; \t\t&lt;!-- ... --&gt; \t&lt;\/executions&gt; &lt;\/plugin&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0441\u0442\u0430\u043b\u043e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DeployDepsMojo extends AbstractMojo { \tpublic static final String  PLG_EXEC_CFG_ARGUMENTS  = &quot;arguments&quot;; \tpublic static final Xpp3Dom PLG_EXEC_CFG_EXEC_PLINK = element(name(&quot;executable&quot;), &quot;plink&quot;).toDom(); \tpublic static final String  PLG_EXEC_GOAL_EXEC      = goal(&quot;exec&quot;); \tpublic static final String  PLG_EXEC_PROTOCOL_SSH   = &quot;-ssh&quot;; \t \t\/\/ ... \t \t@Override \tpublic void execute() throws MojoExecutionException, MojoFailureException { \t\t_pluginEnv = executionEnvironment(mavenProject, mavenSession, pluginManager); \t\t_pluginExec = plugin(&quot;org.codehaus.mojo&quot;, &quot;exec-maven-plugin&quot;, &quot;1.2.1&quot;); \t\tcopyDependencies(); \t\ttomcatShutdown(); \t} \t \tprivate void tomcatShutdown() throws MojoExecutionException { \t\tXpp3Dom cfg = getBaseConfigExec(PLG_EXEC_PROTOCOL_SSH); \t\tfinal Xpp3Dom arguments = cfg.getChild(PLG_EXEC_CFG_ARGUMENTS); \t\targuments.addChild(element(name(&quot;argument&quot;), &quot;${ssh.user}@${ssh.host}&quot;).toDom()); \t\targuments.addChild(element(name(&quot;argument&quot;), &quot;bin\/shutdown.sh&quot;).toDom()); \t\tcfg.addChild(PLG_EXEC_CFG_EXEC_PLINK);  \t\texecuteMojo(_pluginExec, PLG_EXEC_GOAL_EXEC, cfg, _pluginEnv); \t} \t \tprivate Xpp3Dom getBaseConfigExec(String protocol) { \t\tfinal Element el0 = element(name(&quot;argument&quot;), protocol); \t\tfinal Element el1 = element(name(&quot;argument&quot;), &quot;-4&quot;); \t\tfinal Element el2 = element(name(&quot;argument&quot;), &quot;-agent&quot;); \t\tfinal Element el3 = element(name(&quot;argument&quot;), &quot;-i&quot;); \t\tfinal Element el4 = element(name(&quot;argument&quot;), &quot;${putty.key}&quot;); \t\treturn configuration(element(name(PLG_EXEC_CFG_ARGUMENTS), el0, el1, el2, el3, el4)); \t} } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u044b<\/h5>\n<p>  \u041f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0439 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 tomcat.lib.shared, \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043d\u0435\u0433\u043e \u043d\u043e\u0432\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Tomcat.<br \/>  <a href=\"https:\/\/github.com\/BorzdeG\/info.alenkov.tools.maven.tomcat7-ewar-plugin\/commit\/5e71f9668336122a85be763a44c43f8c24d49f8a\">commit<\/a><\/p>\n<h4>\u0428\u0430\u0433 3. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u0439 \u0438 \u043f\u0440\u0430\u0432\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e Maven-\u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h4>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u00abmvn clean install\u00bb<\/p>\n<p>  \u0418 \u043f\u0440\u0430\u0432\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0435\u043a\u0442\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0431\u044b\u043b\u043e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;profile&gt; \t&lt;id&gt;deploy-deps&lt;\/id&gt; \t&lt;build&gt; \t\t&lt;plugins&gt; \t\t\t&lt;plugin&gt; \t\t\t\t&lt;artifactId&gt;maven-dependency-plugin&lt;\/artifactId&gt; \t\t\t\t&lt;executions&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;copy-dependencies&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;useSubDirectoryPerScope&gt;true&lt;\/useSubDirectoryPerScope&gt; \t\t\t\t\t\t\t&lt;excludeGroupIds&gt;\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0432 war-\u0430\u0440\u0445\u0438\u0432&lt;\/excludeGroupIds&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t&lt;\/executions&gt; \t\t\t&lt;\/plugin&gt; \t\t\t&lt;plugin&gt; \t\t\t\t&lt;groupId&gt;org.codehaus.mojo&lt;\/groupId&gt; \t\t\t\t&lt;artifactId&gt;exec-maven-plugin&lt;\/artifactId&gt; \t\t\t\t&lt;executions&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;05-stop-tomcat&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${tomcat.dir.root}\/bin\/shutdown.sh&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;10-clean-shared-jars&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;rm&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-Rf&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${tomcat.dir.shared}\/*.jar&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;15-upload-shared-jars&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-scp&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${project.build.directory}\/dependency\/compile\/*.jar&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}:${tomcat.lib.shared}\/&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;pscp&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;20-start-tomcat&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;&quot;${putty.key}&quot;&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;bin\/startup.sh&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t&lt;\/executions&gt; \t\t\t&lt;\/plugin&gt; \t\t&lt;\/plugins&gt; \t&lt;\/build&gt; &lt;\/profile&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0441\u0442\u0430\u043b\u043e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;profile&gt; \t&lt;id&gt;deploy-deps&lt;\/id&gt; \t&lt;build&gt; \t\t&lt;plugins&gt; \t\t\t&lt;plugin&gt; \t\t\t\t&lt;groupId&gt;info.alenkov.tools.maven&lt;\/groupId&gt; \t\t\t\t&lt;artifactId&gt;tomcat7-ewar-plugin&lt;\/artifactId&gt; \t\t\t\t&lt;executions&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;phase&gt;process-sources&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;deploy-deps&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t&lt;\/executions&gt; \t\t\t&lt;\/plugin&gt; \t\t&lt;\/plugins&gt; \t&lt;\/build&gt; &lt;\/profile&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 maven-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0432\u044b\u043d\u043e\u0441\u0430 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u00ab\u043d\u0430\u0440\u0443\u0436\u0443\u00bb \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d. \u0412\u043f\u0435\u0440\u0435\u0434\u0438 \u0435\u0449\u0451 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0434\u0430, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e\u0432\u0435\u0434\u0430\u044e \u0445\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u044f\u043c.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/205118\/\"> http:\/\/habrahabr.ru\/post\/205118\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0415\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 maven-\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u044c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 shared-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Tomcat.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Maven profile<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;profile&gt; \t&lt;id&gt;deploy-deps&lt;\/id&gt; \t&lt;build&gt; \t\t&lt;plugins&gt; \t\t\t&lt;plugin&gt; \t\t\t\t&lt;artifactId&gt;maven-dependency-plugin&lt;\/artifactId&gt; \t\t\t\t&lt;executions&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;copy-dependencies&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;useSubDirectoryPerScope&gt;true&lt;\/useSubDirectoryPerScope&gt; \t\t\t\t\t\t\t&lt;excludeGroupIds&gt;\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0432 war-\u0430\u0440\u0445\u0438\u0432&lt;\/excludeGroupIds&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t&lt;\/executions&gt; \t\t\t&lt;\/plugin&gt; \t\t\t&lt;plugin&gt; \t\t\t\t&lt;groupId&gt;org.codehaus.mojo&lt;\/groupId&gt; \t\t\t\t&lt;artifactId&gt;exec-maven-plugin&lt;\/artifactId&gt; \t\t\t\t&lt;executions&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;05-stop-tomcat&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${tomcat.dir.root}\/bin\/shutdown.sh&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;10-clean-shared-jars&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;rm&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-Rf&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${tomcat.dir.shared}\/*.jar&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;15-upload-shared-jars&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-scp&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${putty.key}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${project.build.directory}\/dependency\/compile\/*.jar&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}:${tomcat.lib.shared}\/&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;pscp&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t\t&lt;execution&gt; \t\t\t\t\t\t&lt;id&gt;20-start-tomcat&lt;\/id&gt; \t\t\t\t\t\t&lt;phase&gt;package&lt;\/phase&gt; \t\t\t\t\t\t&lt;goals&gt; \t\t\t\t\t\t\t&lt;goal&gt;exec&lt;\/goal&gt; \t\t\t\t\t\t&lt;\/goals&gt; \t\t\t\t\t\t&lt;configuration&gt; \t\t\t\t\t\t\t&lt;arguments&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-ssh&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-4&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-agent&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;-i&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;&quot;${putty.key}&quot;&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;${ssh.user}@${ssh.host}&lt;\/argument&gt; \t\t\t\t\t\t\t\t&lt;argument&gt;bin\/startup.sh&lt;\/argument&gt; \t\t\t\t\t\t\t&lt;\/arguments&gt; \t\t\t\t\t\t\t&lt;executable&gt;plink&lt;\/executable&gt; \t\t\t\t\t\t&lt;\/configuration&gt; \t\t\t\t\t&lt;\/execution&gt; \t\t\t\t&lt;\/executions&gt; \t\t\t&lt;\/plugin&gt; \t\t&lt;\/plugins&gt; \t&lt;\/build&gt; &lt;\/profile&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u043e\u0442\u0445\u043e\u0434\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443, \u043f\u043e\u0432\u0435\u0434\u0430\u044e \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0441\u0435\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c<\/b><\/p>\n<div class=\"spoiler_text\">\u0412 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u043a\u0430 Nginx+Tomcat. \u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u043a\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<ol>\n<li>\u0414\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 webapps. \u0412 \u044d\u0442\u043e\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u00ab\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u00bb Nginx \u0438 \u043e\u0442\u0434\u0430\u0451\u0442 \u043f\u043e web-\u043f\u0443\u0442\u0438 &quot;\/static\/*&quot;<\/li>\n<li>\u0412\u0441\u0435 shared java-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u0440\u0435\u0434\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435) \u0433\u0440\u0443\u0437\u044f\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 ${catalina.home}\/shared, \u0438 \u0432 Tomcat \u0432 \u0444\u0430\u0439\u043b\u0435 conf\/catalina.properties \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u00abshared.loader\u00bb<\/li>\n<li>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 Tomcat \u0441\u043e\u0437\u0434\u0430\u043d \u0441\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c<\/li>\n<li>\u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u043e SSH \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u0438 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043e\u043d \u0441\u0432\u043e\u0439<\/li>\n<\/ol>\n<p>  \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0438 shared-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0438. \u0412\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 war-\u0430\u0440\u0445\u0438\u0432 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 web-manager Tomcat-\u0430.<br \/>  \u0410 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043b\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f PAgent, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c private keys. \u041e\u043d\u0438 \u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Putty  <\/div>\n<\/div>\n<p>  \u041b\u0435\u0436\u0438\u0442 \u0441\u0435\u0431\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0432 pom.xml, \u043d\u0435 \u043a\u0443\u0441\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u043e\u0434\u0435 \u0431\u044b, \u0434\u0430\u0436\u0435 \u043f\u0430\u0448\u0435\u0442 \u043f\u043e\u0442\u0438\u0445\u043e\u043d\u044c\u043a\u0443 \u043d\u0430 \u0431\u043b\u0430\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435\u0440\u0430, \u043d\u043e \u0432\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u0442\u044c \u0432 \u043d\u0451\u043c \u043f\u0430\u0440\u0430 \u00ab\u043c\u0438\u043d\u0443\u0441\u043e\u0432\u00bb \u2014 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u043e\u043c pom.xml \u0434\u0430 \u0435\u0449\u0451 \u0438 \u0432 \u043d\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c.<br \/>  \u0418 \u0435\u0441\u043b\u0438 \u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u0438\u043d\u0443\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0448\u0430\u0431\u043b\u043e\u043d \u0432 <acronym>*\u043c\u043e\u044f \u043b\u044e\u0431\u0438\u043c\u0430\u044f IDE*<\/acronym> \u0438\u043b\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/111408\/\">\u0441\u0432\u043e\u0439 \u0430\u0440\u0445\u0435\u0442\u0438\u043f<\/a> \u043d\u0430\u0432\u0430\u044f\u0442\u044c, \u0442\u043e \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u0438\u043d\u0443\u0441\u0430 \u043d\u0435 \u0442\u0430\u043a-\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>  \u0422\u043e\u0447\u043d\u043e \u043b\u0438 \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e? \u043c\u043e\u0436\u0435\u0442 \u00ab\u043e\u0431\u0435\u0440\u043d\u0451\u043c\u00bb \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0432 \u0432\u0438\u0434\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0434\u043b\u044f Maven? \u0421\u043a\u0430\u0437\u0430\u043d\u043e, \u0441\u0434\u0435\u043b\u0430\u043d\u043e.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-205118","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/205118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205118"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/205118\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}