{"id":263325,"date":"2015-08-11T14:57:02","date_gmt":"2015-08-11T10:57:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=263325"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=263325","title":{"rendered":"\u0412\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435 \u0432\u0435\u0431 \u043a\u043e\u043d\u0441\u043e\u043b\u0435\u0439 \u0432 jvm \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 SonarQube"},"content":{"rendered":"<p>     \t\u041f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c hawtio \u0432 \u0441\u0432\u043e\u0435 jvm \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0410 \u0442\u0430\u043a\u0436\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 DEV\/QA \u0445\u043e\u0441\u0442\u0430\u043c\u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0432 java \u043f\u0440\u043e\u0446\u0435\u0441\u0441 SQL \u0432\u0435\u0431 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 H2<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3ed\/5db\/d06\/3ed5dbd060714df3ba7cbec23b178fc5.png\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/-WSakJ00lQo?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0412 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 jvm \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432 maven \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f\u0445: maven central \u0438 jcenter. \u0412 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e io.hawt:hawtio-app \u0438 com.h2database:h2.  <\/p>\n<ul>\n<li><a href=\"http:\/\/hawt.io\">hawtio<\/a> \u2014 \u044d\u0442\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0431 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438 java \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/li>\n<li>\u0427\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u044c\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 <a href=\"http:\/\/www.h2database.com\">h2<\/a> \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0434\u0430\u0436\u0435 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u041d\u043e \u043d\u0430\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 <a href=\"http:\/\/www.h2database.com\/html\/quickstart.html\">\u0432\u0435\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/a> \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SQL \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c jdbc \u0434\u0440\u0430\u0439\u0432\u0435\u0440. \u042d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0441 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0441\u0445\u0435\u043c\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c SQL \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0438 \u0438\u0445 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0438 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430.<\/li>\n<\/ul>\n<p>  \u041e\u0431\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0431\u0435\u0437 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440.<br \/>  \u041d\u043e \u0434\u043b\u044f \u0432\u0430\u0448\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u043b\u044e\u0431\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 maven \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432.<\/p>\n<p>  \u0410 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0434 SonarQube \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 java \u0430\u0433\u0435\u043d\u0442\u0430 AspectJ-Scripting:  <\/p>\n<ul>\n<li><a href=\"http:\/\/www.sonarqube.org\">SonarQube<\/a> \u0432 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0448\u0438\u043c \u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u2014 \u044d\u0442\u043e \u043e\u0434\u043d\u0430 \u0438\u0437 \u0432\u0435\u0434\u0443\u0449\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0434\u043b\u044f \u0438\u043d\u0441\u043f\u0435\u043a\u0446\u0438\u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439.<\/li>\n<li><a href=\"https:\/\/github.com\/igor-suhorukov\/aspectj-scripting\">AspectJ-Scripting<\/a> \u2014 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 aspectj \u0430\u0433\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u043a\u043b\u0430\u0441\u0441\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0437 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 jvm, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438\u0437 maven \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0435\u0432 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0430\u0441\u043f\u0435\u043a\u0442\u044b \u0432 \u0432\u0438\u0434\u0435 MVEL2 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u0434 \u0438\u0437 maven \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<\/li>\n<\/ul>\n<p>  \u0410\u0433\u0435\u043d\u0442 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 jvm \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0432\u0441\u044e \u00ab\u043c\u0430\u0433\u0438\u044e\u00bb \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u0421\u0442\u0440\u0430\u043d\u043d\u043e, \u0447\u0442\u043e \u0432 \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0440\u0435\u0434\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e java agent, \u0445\u043e\u0442\u044f \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 DevOps \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 javaagent: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 takipi, plumbr, new relic.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 java \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0441\u0447\u0435\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 jvm \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 SonarQube \u0438 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0432\u0435\u0431 \u043a\u043e\u043d\u0441\u043e\u043b\u0435\u0439. <\/p>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c <a href=\"https:\/\/sonarsource.bintray.com\/Distribution\/sonarqube\/sonarqube-5.1.2.zip\">zip \u0430\u0440\u0445\u0438\u0432<\/a> \u0441 \u0441\u0430\u0439\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e. <br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/R3L66ZRyc4U?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c <a href=\"http:\/\/central.maven.org\/maven2\/com\/github\/igor-suhorukov\/aspectj-scripting\/1.0\/aspectj-scripting-1.0-agent.jar\">aspectj-scripting<\/a> java \u0430\u0433\u0435\u043d\u0442.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 3 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0430\u0433\u0435\u043d\u0442\u0430:   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">database_console.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;configuration&gt;     &lt;aspects&gt;         &lt;name&gt;com.github.igorsuhorukov.H2Console&lt;\/name&gt;         &lt;type&gt;AFTER&lt;\/type&gt;         &lt;pointcut&gt;execution(* org.sonar.server.app.WebServer.start(..))&lt;\/pointcut&gt;         &lt;artifacts&gt;             &lt;artifact&gt;com.h2database:h2:1.3.176&lt;\/artifact&gt;             &lt;classRefs&gt;                 &lt;variable&gt;Console&lt;\/variable&gt;                 &lt;className&gt;org.h2.tools.Console&lt;\/className&gt;             &lt;\/classRefs&gt;         &lt;\/artifacts&gt;         &lt;process&gt;             &lt;expression&gt;                 Console.main(&quot;-web&quot;,&quot;-browser&quot;,&quot;-url&quot;,&quot;jdbc:h2:tcp:\/\/localhost:9092\/sonar&quot;,&quot;-driver&quot;,&quot;org.h2.Driver&quot;,&quot;-user&quot;,&quot;sonar&quot;,&quot;-password&quot;,&quot;sonar&quot;);             &lt;\/expression&gt;         &lt;\/process&gt;     &lt;\/aspects&gt; &lt;\/configuration&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">hawtio_console.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;configuration&gt;     &lt;aspects&gt;         &lt;name&gt;com.github.igorsuhorukov.HawtIo&lt;\/name&gt;         &lt;type&gt;BEFORE&lt;\/type&gt;         &lt;pointcut&gt;execution(* org.sonar.server.app.WebServer.start(..))&lt;\/pointcut&gt;         &lt;artifacts&gt;             &lt;artifact&gt;io.hawt:hawtio-app:jar:2.0.0&lt;\/artifact&gt;             &lt;classRefs&gt;                 &lt;variable&gt;App&lt;\/variable&gt;                 &lt;className&gt;io.hawt.app.App&lt;\/className&gt;             &lt;\/classRefs&gt;         &lt;\/artifacts&gt;         &lt;process&gt;             &lt;expression&gt;                 cl = java.lang.Thread.currentThread().getContextClassLoader();                 java.lang.Thread.currentThread().setContextClassLoader(App.getClassLoader());                 App.main({&quot;--port&quot;,&quot;10090&quot;});                 java.lang.Thread.currentThread().setContextClassLoader(cl);             &lt;\/expression&gt;         &lt;\/process&gt;     &lt;\/aspects&gt; &lt;\/configuration&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">h2_hawtio.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;configuration&gt;     &lt;aspects&gt;         &lt;name&gt;com.github.igorsuhorukov.H2Console&lt;\/name&gt;         &lt;type&gt;AFTER&lt;\/type&gt;         &lt;pointcut&gt;execution(* org.sonar.server.app.WebServer.start(..))&lt;\/pointcut&gt;         &lt;artifacts&gt;             &lt;artifact&gt;com.h2database:h2:1.3.176&lt;\/artifact&gt;             &lt;classRefs&gt;                 &lt;variable&gt;Console&lt;\/variable&gt;                 &lt;className&gt;org.h2.tools.Console&lt;\/className&gt;             &lt;\/classRefs&gt;         &lt;\/artifacts&gt;         &lt;process&gt;             &lt;expression&gt;                 Console.main(&quot;-web&quot;,&quot;-browser&quot;,&quot;-url&quot;,&quot;jdbc:h2:tcp:\/\/localhost:9092\/sonar&quot;,&quot;-driver&quot;,&quot;org.h2.Driver&quot;,&quot;-user&quot;,&quot;sonar&quot;,&quot;-password&quot;,&quot;sonar&quot;);             &lt;\/expression&gt;         &lt;\/process&gt;     &lt;\/aspects&gt;     &lt;aspects&gt;         &lt;name&gt;com.github.igorsuhorukov.HawtIo&lt;\/name&gt;         &lt;type&gt;BEFORE&lt;\/type&gt;         &lt;pointcut&gt;execution(* org.sonar.server.app.WebServer.start(..))&lt;\/pointcut&gt;         &lt;artifacts&gt;             &lt;artifact&gt;io.hawt:hawtio-app:jar:2.0.0&lt;\/artifact&gt;             &lt;classRefs&gt;                 &lt;variable&gt;App&lt;\/variable&gt;                 &lt;className&gt;io.hawt.app.App&lt;\/className&gt;             &lt;\/classRefs&gt;         &lt;\/artifacts&gt;         &lt;process&gt;             &lt;expression&gt;                 cl = java.lang.Thread.currentThread().getContextClassLoader();                 java.lang.Thread.currentThread().setContextClassLoader(App.getClassLoader());                 App.main({&quot;--port&quot;,&quot;10090&quot;});                 java.lang.Thread.currentThread().setContextClassLoader(cl);             &lt;\/expression&gt;         &lt;\/process&gt;     &lt;\/aspects&gt; &lt;\/configuration&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0427\u0442\u043e\u0431\u044b aspectj-scripting \u0430\u0433\u0435\u043d\u0442 \u043c\u043e\u0433 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 -javaagent:aspectj-scripting-1.0-agent.jar \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 jvm, \u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e -Dorg.aspectj.weaver.loadtime.configuration=config:file: \u041f\u0423\u0422\u042c_\u041a_\u041a\u041e\u041d\u0424\u0418\u0413\u0423\u0420\u0410\u0426\u0418\u0418. \u0427\u0435\u0440\u0435\u0437 system property \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c maven \u043f\u0440\u043e\u043a\u0441\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0438 \u043f\u0443\u0442\u044c \u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 maven \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e.<\/p>\n<p>  \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u043b\u044f SonarQube \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 <b>conf\/sonar.properties<\/b> \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 <i>sonar.web.javaAdditionalOpts<\/i><\/p>\n<p>  \u041d\u0430 \u0432\u0438\u0434\u0435\u043e \u0432\u0438\u0434\u043d\u043e \u043a\u0430\u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f SonarQube \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 <i>hawtio_console.xml<\/i> \u0438 hawt.io \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f<br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/SAKgdICVs1s?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0440\u0438\u043d\u043a\u0430\u0441\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u043a \u0430\u0433\u0435\u043d\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <i>database_console.xml<\/i> \u0438 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 SQL \u043a\u043e\u043d\u0441\u043e\u043b\u044c<br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/m-jvYGcEI3Q?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043e\u0431\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0441\u0442\u0430\u0440\u0442\u0443\u044e\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 SonarQube \u0437\u0430 \u0441\u0447\u0435\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <i>h2_hawtio.xml<\/i>, \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u044b \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 mvel \u0432 Sonar \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u043d\u0430\u0440\u0430<br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/JWI_3ibHNTo?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0431\u0430\u0437\u0435 SonarQube \u0438\u0437 H2 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043b\u044f \u043c\u0435\u0442\u0440\u0438\u043a \u0432 SonarQube \u0434\u043b\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 MVEL<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9ae\/f80\/ee5\/9aef80ee54c14d46866e4f4b62d8f489.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/40d\/97d\/69a\/40d97d69a7f949fe93969ce8b2ab5c2f.png\"\/>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f4c\/175\/b7e\/f4c175b7ebdf496e90632442581aaa1c.png\"\/><\/p>\n<p>  \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0435 \u0431\u0430\u0437\u044b H2 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 JMX hawtio \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u00abJMX=TRUE\u00bb \u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 sonar.jdbc.url \u0432 \u0444\u0430\u0439\u043b\u0435 <b>conf\/sonar.properties<\/b>: sonar.jdbc.url=jdbc:h2:tcp:\/\/localhost:9092\/sonar;JMX=TRUE<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/bfc\/729\/07e\/bfc72907ed4d4f1088e331101f271d98.png\"\/><\/p>\n<p>  \u041e\u0431\u0437\u043e\u0440 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u0434\u043b\u044f JMX java.lang.OperatingSystem:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/7eb\/70f\/5b9\/7eb70f5b94ca4d539d28c5eee94071ae.png\"\/><\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043c\u044b \u0441\u043c\u043e\u0433\u043b\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 SonarQube \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043b\u0438\u0441\u044c hawtio \u0438 h2 \u0438\u0437 maven \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f \u0438 \u0432\u0435\u0431 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0438\u0441\u044c \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u043e\u043d\u0430\u0440\u0430.<\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e aspectj-scripting \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e ssh \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 java \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0410 \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0430\u0440\u0443 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043a\u0430\u043a \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c jdbc \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438 \u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043e \u0442\u0430\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0423\u0434\u0430\u0447\u0438 \u0432\u0430\u043c \u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0435 java \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0439   \t\t\t\t<\/p>\n<div class=\"polling\">\n<form action=\"\/json\/polling\/\" class=\"poll\" method=\"post\">\n<div class=\"poll_title\">\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043b\u0438 \u0432\u0430\u043c \u0442\u0435\u043c\u044b:<\/div>\n<p>  \t\t<input type=\"hidden\" name=\"post_id\" value=\"264415\"\/> \t\t<input type=\"hidden\" name=\"polling_question_id\" value=\"13895\"\/>  \t\t<\/p>\n<table class=\"answer\">\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv68341\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"68341\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv68341\">\u041a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c AspectJ \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u0431\u0430\u0439\u0442 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv68343\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"68343\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv68343\">\u0422\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f AST java \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 runtime (\u0430\u0432\u0442\u043e \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433)<\/label> \t\t\t\t<\/td>\n<\/tr>\n<\/table>\n<p class=\"total\">\u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b 1 \u0447\u0435\u043b\u043e\u0432\u0435\u043a. \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.<\/p>\n<\/p><\/form>\n<p class=\"for_users_only_msg\">\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a href=\"https:\/\/habrahabr.ru\/auth\/login\/\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/p>\n<\/p><\/div>\n<div class=\"clear\"><\/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\/264415\/\"> http:\/\/habrahabr.ru\/post\/264415\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u041f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c hawtio \u0432 \u0441\u0432\u043e\u0435 jvm \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0410 \u0442\u0430\u043a\u0436\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 DEV\/QA \u0445\u043e\u0441\u0442\u0430\u043c\u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0432 java \u043f\u0440\u043e\u0446\u0435\u0441\u0441 SQL \u0432\u0435\u0431 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 H2<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3ed\/5db\/d06\/3ed5dbd060714df3ba7cbec23b178fc5.png\"\/><\/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-263325","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263325","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=263325"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263325\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}