{"id":10625,"date":"2014-03-13T16:50:31","date_gmt":"2014-03-13T07:50:31","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=10625"},"modified":"2014-03-13T16:51:42","modified_gmt":"2014-03-13T07:51:42","slug":"maven%e3%81%a7%e7%b5%90%e5%90%88%e3%83%86%e3%82%b9%e3%83%88%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2014\/03\/10625\/","title":{"rendered":"Maven\u3067\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u81ea\u52d5\u5316\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u4e5d\u5ca1\u3067\u3059\u3002<br \/>\nJava\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u307f\u306a\u3055\u3093\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u306e\u81ea\u52d5\u5316\u3057\u3066\u307e\u3059\u304b\uff1f\uff01<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<\/p>\n<ul>\n<li>\u7d50\u5408\u30c6\u30b9\u30c8\u3068\u306f\u4f55\u304b<\/li>\n<li>\u7b46\u8005\u306f\u4f55\u306e\u305f\u3081\u306b\u884c\u3063\u3066\u3044\u308b\u306e\u304b<\/li>\n<li>\u305d\u308c\u3092Maven\u3067\u81ea\u52d5\u5316\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<p>\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u7528\u9014\u304c\u77e5\u3089\u308c\u3066\u3044\u305f\u308a\u3044\u306a\u304b\u3063\u305f\u308a\u3001\u5358\u4f53\u30c6\u30b9\u30c8\u306b\u6bd4\u3079\u308b\u3068\u60c5\u5831\u304c\u5c11\u306a\u304b\u3063\u305f\u308a\u3001\u3088\u308a\u591a\u304f\u306eMaven\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u304c\u3061\u3067\u624b\u9593\u304c\u304b\u304b\u308b\u300c\u7d50\u5408\u30c6\u30b9\u30c8\u306e\u81ea\u52d5\u5316\u300d\u3002<br \/>\n\u300c\u307e\u3060\u3084\u3063\u3066\u306a\u3044\u300d\u3068\u3044\u3046\u65b9\u306f\u3001\u3053\u306e\u8a18\u4e8b\u3092\u3068\u3063\u304b\u304b\u308a\u306b\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u3046\u308c\u3057\u3044\u3067\u3059\uff01<\/p>\n<h1>\u5bfe\u8c61<\/h1>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u7279\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u306b\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<ul>\n<li>Java\u3084Maven\u3092\u5229\u7528\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u884c\u3063\u3066\u3044\u308b\u65b9<\/li>\n<li>\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u3092\u306f\u3058\u3081\u3066\u884c\u3046\u65b9<\/li>\n<li>\u5358\u4f53\u30c6\u30b9\u30c8\u306f\u81ea\u52d5\u5316\u3057\u3066\u3044\u308b\u304c\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u306f\u307e\u3060\u81ea\u52d5\u5316\u3057\u3066\u3044\u306a\u3044\u3068\u3044\u3046\u65b9<\/li>\n<li>\u81ea\u5206\u3067Maven\u306e\u30d3\u30eb\u30c9\u8a2d\u5b9a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u305f\u3044\u65b9<\/li>\n<\/ul>\n<p>\u65e2\u306bJava\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u81ea\u52d5\u5316\u3057\u3066\u3044\u308b\u65b9\u306b\u3068\u3063\u3066\u306f\u76ee\u65b0\u3057\u3044\u3053\u3068\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u4f8b\u3048\u3070\u30c1\u30fc\u30e0\u306b\u914d\u5c5e\u3055\u308c\u308b\u65b0\u3057\u3044\u30e1\u30f3\u30d0\u30fc\u306b\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u3044\u305f\u3060\u3044\u3066\u3001pom.xml(\u79d8\u4f1d\u306e\u30bf\u30ec)\u3092\u7406\u89e3\u3059\u308b\u53d6\u3063\u639b\u304b\u308a\u306b\u3057\u3066\u3044\u305f\u3060\u304f\u3001\u3068\u3044\u3046\u3088\u3046\u306a\u4f7f\u3044\u65b9\u306f\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u305f\u3001Selenium\u3067\u6a5f\u80fd\u30c6\u30b9\u30c8\u3084\u53d7\u3051\u5165\u308c\u30c6\u30b9\u30c8\u3092\u81ea\u52d5\u5316\u3057\u305f\u308a\u3001\u4f8b\u3048\u3070Gradle\u306e\u3088\u3046\u306aMaven\u4ee5\u5916\u306e\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3092\u4f7f\u3046\u5834\u5408\u306e\u65b9\u6cd5\u306f\u3001\u672c\u8a18\u4e8b\u306e\u5bfe\u8c61\u5916\u3067\u3059\u3002<\/p>\n<h1>\u7528\u8a9e<\/h1>\n<p>Java\u754c\u9688\u306b\u8a73\u3057\u304f\u306a\u3044\u65b9\u3067\u3082\u30a4\u30e1\u30fc\u30b8\u304c\u3064\u304b\u3081\u308b\u3088\u3046\u306b\u3001\u57fa\u672c\u7684\u306a\u7528\u8a9e\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><em>Maven<\/em><br \/>\n\u4e3b\u306bJava\u3092\u5bfe\u8c61\u3068\u3057\u305f\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb<\/p>\n<p><em>TestNG<\/em><br \/>\nJava\u306e\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4e00\u3064<\/p>\n<p><em>Maven\u30d7\u30e9\u30b0\u30a4\u30f3<\/em><br \/>\nMaven\u306e\u6a5f\u80fd\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u62e1\u5f35\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u7d50\u5408\u30c6\u30b9\u30c8\u5b9f\u884c\u306a\u3069\u306e\u6a5f\u80fd\u3082\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u5b9f\u73fe\u3055\u308c\u3066\u3044\u307e\u3059<\/p>\n<p><em>Solr<\/em><br \/>\nJava\u3067\u5b9f\u88c5\u3055\u308c\u305f\u5168\u6587\u691c\u7d22\u3092\u884c\u3046\u305f\u3081\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3002\u7d50\u5408\u30c6\u30b9\u30c8\u306e\u8aac\u660e\u306b\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u767b\u5834\u3057\u307e\u3059<\/p>\n<h1>Maven\u30d7\u30e9\u30b0\u30a4\u30f3<\/h1>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u7279\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306aMaven\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Cargo\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<li>Download\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<li>MySQL\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<li>Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<li>Build Helper\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<\/ul>\n<h1>\u8003\u3048\u65b9<\/h1>\n<p>\u3088\u308a\u77e5\u3089\u308c\u3066\u3044\u305d\u3046\u306a\u300c\u5358\u4f53\u30c6\u30b9\u30c8\u300d\u3068\u6bd4\u8f03\u3057\u306a\u304c\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3067\u3044\u3046\u3068\u3053\u308d\u306e\u300c\u7d50\u5408\u30c6\u30b9\u30c8\u300d\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u305d\u308c\u305e\u308c\u306e\u30c6\u30b9\u30c8\u306e\u610f\u5473\u30fb\u5b9f\u614b\u304c\u4eba\u3084\u7d44\u7e54\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u3053\u3068\u304c\u60f3\u50cf\u3055\u308c\u307e\u3059\uff08\u5b9f\u969b\u3001\u5358\u4f53\u30c6\u30b9\u30c8\u3068\u3044\u3046\u540d\u76ee\u3067\u3055\u308c\u3066\u3044\u305f\u30c6\u30b9\u30c8\u304c\u3001\u7b46\u8005\u306e\u89e3\u91c8\u3060\u3068\u7d50\u5408\u30c6\u30b9\u30c8\u306b\u8a72\u5f53\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u3082\u3042\u308a\u307e\u3057\u305f\uff09\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u7279\u306b\u610f\u898b\u304c\u5272\u308c\u305d\u3046\u306a\u3068\u3053\u308d\u306f\u300c\u7b46\u8005\u306e\u5834\u5408\u300d\u306e\u3088\u3046\u306a\u524d\u7f6e\u304d\u3092\u5165\u308c\u308b\u306a\u3069\u3057\u3066\u3001\u5c11\u3057\u8868\u73fe\u3092\u307c\u304b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u7686\u3055\u3093\u306e\u8eab\u8fd1\u306a\u3068\u3053\u308d\u3067\u306e\u610f\u5473\u3068\u7167\u3089\u3057\u5408\u308f\u305b\u306a\u304c\u3089\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044\uff01<\/p>\n<h2>\u5358\u4f53\u30c6\u30b9\u30c8<\/h2>\n<p>\u5358\u4f53\u30c6\u30b9\u30c8\u3067\u306f\u3001\u3042\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u5358\u4f53\u306e\u6a5f\u80fd\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<br \/>\n\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u8a00\u8a9e\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u306a\u3089\u3001\u3042\u308b\u30af\u30e9\u30b9\u5358\u4f53\u306e\u6a5f\u80fd\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u3059\u3002Java\u306b\u304a\u3044\u3066\u306fJUnit\u3084TestNG\u306a\u3069\u306e\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3063\u3066\u884c\u308f\u308c\u307e\u3059\u3002<br \/>\n\u7b46\u8005\u306e\u5834\u5408\u3001<\/p>\n<ul>\n<li>\u3042\u308b\u6761\u4ef6(\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5f15\u6570\u30fb\u30e1\u30bd\u30c3\u30c9\u5f15\u6570\u30fb\u30d5\u30a3\u30fc\u30eb\u30c9\u306a\u3069)\u306e\u3068\u304d\u3001\u5bfe\u8c61\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u304c\n<ul>\n<li>\u8fd4\u3059\u5024\u304c\u4ed5\u69d8\u901a\u308a\u304b<\/li>\n<li>\u8d77\u3053\u3059\u526f\u4f5c\u7528\u304c\u4ed5\u69d8\u901a\u308a\u304b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u30c6\u30b9\u30c8\u3092\u3057\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u5408\u30c6\u30b9\u30c8<\/h2>\n<p>\u4e00\u65b9\u3067\u3001\u4eca\u56de\u6ce8\u76ee\u3059\u308b\u7d50\u5408\u30c6\u30b9\u30c8\u3067\u306f\u3001\u8907\u6570\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3068\u304d\u306e\u6a5f\u80fd\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<br \/>\n\u5927\u96d1\u628a\u306a\u8aac\u660e\u3067\u3059\u304c\u3001\u300c\u5358\u4f53\u30c6\u30b9\u30c8\u306f\u3042\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u5358\u4f53\u3092\u5bfe\u8c61\u3068\u3059\u308b\u306e\u306b\u5bfe\u3057\u3066\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u306f\u8907\u6570\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u7d44\u5408\u305b\u3092\u5bfe\u8c61\u3068\u3059\u308b\u300d\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u305d\u306e\u6027\u683c\u4e0a\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u3067\u306f\u3044\u304f\u3064\u304b\u306e\u30af\u30e9\u30b9\u3001\u6642\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001Web\u30b5\u30fc\u30d3\u30b9\u306a\u3069\u307e\u3067\u304c\u7d44\u307f\u5408\u308f\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u7b46\u8005\u306e\u5834\u5408\u3001\u6a5f\u80fd\u30c6\u30b9\u30c8(\u7d50\u5408\u30c6\u30b9\u30c8\u306e\u4e00\u7a2e)\u3067\u306f\u30b3\u30b9\u30c8\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u3088\u304f\u306a\u3044\u30fb\u30ab\u30d0\u30fc\u3057\u304d\u308c\u306a\u3044\u3001\u304b\u3064\u5358\u4f53\u30c6\u30b9\u30c8\u3060\u3051\u3067\u306f\u4e0d\u5b89\u306a\u5834\u5408\u306b\u3001\u7279\u306b\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3092\u7d50\u5408\u30c6\u30b9\u30c8\u3067\u30ab\u30d0\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u500b\u4eba\u7684\u306b\u3088\u304f\u3042\u308b\u30b1\u30fc\u30b9\u3067\u306f\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u5834\u5408\u306b\u3001\n<ul>\n<li>DB\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30ec\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u3044\u304b<\/li>\n<li>\u65b0\u898f\u4fdd\u5b58\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u306f\u6b63\u3057\u3044\u304b<\/li>\n<li>\u9001\u4fe1\u3055\u308c\u308b\u30e1\u30fc\u30eb\u306e\u5185\u5bb9\u306f\u6b63\u3057\u3044\u304b<\/li>\n<\/ul>\n<\/li>\n<li>DB\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308b\u72b6\u614b\u306e\u3068\u304d\n<ul>\n<li>\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u691c\u7d22\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u6642\u306b\u3001\u691c\u7d22\u7d50\u679c\u304c\u6b63\u3057\u3044\u304b<\/li>\n<\/ul>\n<\/li>\n<li>\u306a\u3069<\/li>\n<\/ul>\n<p>\u7b46\u8005\u306e\u5834\u5408\u3001\u30c6\u30b9\u30c8\u5185\u5bb9\u306f\u3053\u306e\u3088\u3046\u306b\u6a5f\u80fd\u30c6\u30b9\u30c8\u306b\u8fd1\u3044\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u624b\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u884c\u3046\u5229\u70b9\u306f\u3001Java\u3067\u5b9f\u88c5\u3059\u308b\u3088\u3046\u306a\u30a2\u30d7\u30ea\u3067\u3044\u3046\u3068\u3001<\/p>\n<ul>\n<li>\u7279\u5b9a\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u7d44\u307f\u5408\u308f\u305b<\/li>\n<li>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3084\u5834\u6240<\/li>\n<li>\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u7a2e\u985e\u3084\u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u5229\u7528\u65b9\u6cd5<\/li>\n<li>\u5229\u7528\u3059\u308bWeb\u30b5\u30fc\u30d3\u30b9\u306e\u5229\u7528\u65b9\u6cd5<\/li>\n<li>JVM\u306e\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u3084\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u306a\u3069<\/li>\n<\/ul>\n<p>\u306a\u3069\u304c\u539f\u56e0\u3067\u52d5\u4f5c\u3057\u306a\u3044\u30b3\u30fc\u30c9\u3092\u767a\u898b\u3057\u3001\u6539\u5584\u3059\u308b\u6a5f\u4f1a\u304c\u5f97\u3089\u308c\u308b\u3053\u3068\u3067\u3059\u3002\u307e\u305f\u3001\u5341\u5206\u306b\u30ec\u30ac\u30b7\u30fc\u3067\u4ed5\u69d8\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u306b\u5bfe\u3057\u3066\u307e\u305a\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u5b9f\u65bd\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u30b7\u30b9\u30c6\u30e0\u304c\u3069\u306e\u3088\u3046\u306a\u6761\u4ef6\u3084\u74b0\u5883\u3067\u52d5\u304f\u306e\u304b\u3092\u660e\u3089\u304b\u306b\u3059\u308b\u3001\u3068\u3044\u3046\u3088\u3046\u306a\u4f7f\u3044\u65b9\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7d50\u5408\u30c6\u30b9\u30c8\u306b\u306f\u3044\u304f\u3064\u304b\u96e3\u3057\u3044\u70b9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u3046\u3061\u4e00\u3064\u306f\u300c\u7d44\u307f\u5408\u308f\u305b\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u591a\u304f\u306a\u308b\u3068\u305d\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3060\u3051\u3067\u624b\u9593\u304c\u304b\u304b\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u958b\u767a\u4e2d\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4ed5\u69d8\u306b\u300cGlassfish\u3084Jetty\u3067\u52d5\u4f5c\u3059\u308b\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u30c6\u30b9\u30c8\u306b\u843d\u3068\u3057\u3053\u3080\u3068\u300cWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30682\u3064\u306e\u7570\u306a\u308b\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u3068\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u6642\u306b\u6a5f\u80fd\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u300d\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306a\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u3001\u7d44\u307f\u5408\u308f\u305b\u6bce\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30bf\u30b9\u30af\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u306e\u8a2d\u5b9a<\/li>\n<li>\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u306e\u8d77\u52d5<\/li>\n<li>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4<\/li>\n<li>\u30c6\u30b9\u30c8\u5b9f\u884c<\/li>\n<li>(\u30c6\u30b9\u30c8\u306e\u5931\u6557\u30fb\u6210\u529f\u306b\u304b\u304b\u308f\u3089\u305a)\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u306e\u505c\u6b62<\/li>\n<\/ul>\n<p>\u30c6\u30b9\u30c8\u306e\u305f\u3073\u306b\u3053\u306e\u3088\u3046\u306a\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u624b\u52d5\u306b\u3057\u308d\u81ea\u52d5\u306b\u3057\u308d\u884c\u3046\u306e\u306f\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u624b\u9593\u3092\u6700\u5c0f\u5316\u3059\u308b\u4e00\u3064\u306e\u65b9\u6cd5\u3068\u3057\u3066\u3001\u672c\u8a18\u4e8b\u3067\u306fMaven\u3068Maven\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h1>Maven\u30d7\u30e9\u30b0\u30a4\u30f3<\/h1>\n<p>\u5358\u4f53\u30c6\u30b9\u30c8\u5b9f\u884c\u3084\u7d50\u5408\u30c6\u30b9\u30c8\u5b9f\u884c\u306a\u3069\u306e\u6a5f\u80fd\u306fMaven\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u304a\u3089\u305a\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u5b9f\u73fe\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u524d\u8ff0\u306e\u3068\u304a\u308a\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u306b\u95a2\u3059\u308b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u624b\u9593\u3092\u8efd\u6e1b\u3059\u308b\u305f\u3081\u306b\u4f7f\u3048\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3093\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u3046\u3061\u3001\u3053\u306e\u8a18\u4e8b\u3067\u5229\u7528\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3<\/h2>\n<p><a href=\"https:\/\/maven.apache.org\/surefire\/maven-failsafe-plugin\/\">Maven Failsafe Plugin - Introduction<\/a><\/p>\n<p>Maven\u304b\u3089\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002<br \/>\n\u5358\u4f53\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306e<a href=\"http:\/\/maven.apache.org\/surefire\/maven-surefire-plugin\/\">Surefire\u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\u3068\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u4e3b\u306a\u9055\u3044\u306f\u300c\u7d50\u5408\u30c6\u30b9\u30c8\u306e\u5f8c\u59cb\u672b\u300d\u304c\u884c\u3048\u308b\u70b9\u3067\u3059\u3002<br \/>\nFailsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u306f<\/p>\n<ul>\n<li>\u30c6\u30b9\u30c8\u5b9f\u884c\u524d\u306bpre-integration-test<\/li>\n<li>\u30c6\u30b9\u30c8\u5b9f\u884c\u5f8c\u306bpost-integration-test<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046phase\u3092\u5fc5\u305a\u5b9f\u884c\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306ephase\u3067Maven\u306b\u5b9f\u884c\u3055\u305b\u308b\u30bf\u30b9\u30af\u306f\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u53ef\u80fd\u3067\u3059\u3002\u305d\u3057\u3066\u3001post-integration-test\u306f\u7d50\u5408\u30c6\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3067\u3082\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5178\u578b\u7684\u306b\u306f\u524d\u8005\u3067\u7d50\u5408\u30c6\u30b9\u30c8\u306e\u74b0\u5883\u3092\u7528\u610f\u3057\u3001\u5f8c\u8005\u3067\u305d\u306e\u74b0\u5883\u3092\u7834\u68c4\u3057\u307e\u3059\u3002<\/p>\n<p>Surefire\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u5834\u5408\u3068\u540c\u69d8\u306b\u3001\u30c6\u30b9\u30c8\u305d\u306e\u3082\u306e\u306fJUnit\u3084TestNG\u306a\u3069\u306e\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3063\u3066\u66f8\u304d\u307e\u3059\u3002<\/p>\n<h2>Cargo\u30d7\u30e9\u30b0\u30a4\u30f3<\/h2>\n<p><a href=\"http:\/\/cargo.codehaus.org\/Maven2+plugin\">Cargo - Maven2 plugin<\/a><\/p>\n<p><a href=\"http:\/\/cargo.codehaus.org\/Home\">Cargo<\/a>\u306fTomcat\u3084Jetty\u306a\u3069\u306e\u69d8\u3005\u306aServlet\u30b3\u30f3\u30c6\u30ca\u306e\u64cd\u4f5c\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306e\u30e9\u30c3\u30d1\u3068\u306a\u308bJava\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<br \/>\n\u305d\u308c\u3092Maven\u304b\u3089\u7c21\u5358\u306b\u3001pom.xml\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u308c\u308b\u306e\u304cCargo\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3092\u5229\u7528\u3059\u308b\u3068\u3001Servlet\u30b3\u30f3\u30c6\u30ca\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u9023\u643a\u3057\u305f\u7d50\u5408\u30c6\u30b9\u30c8\u3082\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<br \/>\n\u300cServlet\u30b3\u30f3\u30c6\u30ca\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u300d\u3068\u304d\u3044\u3066\u30d4\u30f3\u3068\u3053\u306a\u3044\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4f8b\u3048\u3070\u5168\u6587\u691c\u7d22\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b<a href=\"https:\/\/lucene.apache.org\/solr\/\">Solr<\/a>\u3084\u3001GitHub\u30af\u30ed\u30fc\u30f3\u306e<a href=\"https:\/\/github.com\/takezoe\/gitbucket\">GitBucket<\/a>\u306a\u3069\u3082\u305d\u3046\u3067\u3059\u3002<\/p>\n<h2>MySQL\u30d7\u30e9\u30b0\u30a4\u30f3<\/h2>\n<p><a href=\"http:\/\/www.jcabi.com\/jcabi-mysql-maven-plugin\/\">jcabi-mysql-maven-plugin - MySQL Maven Plugin for Integration Testing<\/a><\/p>\n<p>MySQL\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u7528\u306b\u30ed\u30fc\u30ab\u30eb\u306eMySQL\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u304f\u308c\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002<\/p>\n<p>\u7d50\u5408\u30c6\u30b9\u30c8\u3067MySQL\u304c\u5fc5\u8981\u306a\u5834\u5408\u3001\u307f\u306a\u3055\u3093\u306a\u3089\u3069\u3046\u3057\u307e\u3059\u304b\uff1f<br \/>\n\u4f8b\u3048\u3070\u3001\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u4eba\u304c\u624b\u52d5\u3067\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u306b\u3057\u3066\u3001README\u306a\u3069\u306b\u300c\u7d50\u5408\u30c6\u30b9\u30c8\u5b9f\u884c\u524d\u306b\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u306bMySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u300d\u306e\u3088\u3046\u306a\u6848\u5185\u3092\u5165\u308c\u308b\u3001\u3068\u3044\u3046\u306e\u3082\u3072\u3068\u3064\u306e\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001MySQL\u306fOS(Windows\u3084Linux\u3001Mac OS X)\u3084CPU\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3(32bit\u300164bit)\u306a\u3069\u6bce\u306b\u30d0\u30a4\u30ca\u30ea\u5f62\u5f0f\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u308c\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u304c\u59cb\u307e\u308b\u524d\u306bMySQL\u3092\u8d77\u52d5\u3057\u3001\u6210\u529f\u3057\u305f\u304b\u5931\u6557\u3057\u305f\u304b\u306b\u304b\u304b\u308f\u3089\u305a\u7d50\u5408\u30c6\u30b9\u30c8\u5f8c\u306b\u306f\u505c\u6b62\u3059\u308b\u2026\u306a\u3069\u3068\u8003\u3048\u3060\u3059\u3068\u3001\u304b\u306a\u308a\u306e\u7169\u96d1\u3055\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3089\u3092pom.xml\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u81ea\u52d5\u5316\u3057\u3066\u304f\u308c\u308b\u306e\u304cMySQL\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002<\/p>\n<h2>Download\u30d7\u30e9\u30b0\u30a4\u30f3<\/h2>\n<p><a href=\"https:\/\/github.com\/maven-download-plugin\/maven-download-plugin\">maven-download-plugin\/maven-download-plugin<\/a><\/p>\n<p>Maven\u306b\u3088\u308b\u30d3\u30eb\u30c9\u306e\u4e00\u74b0\u3068\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3069\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u4f7f\u3048\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u6642\u306b\u958b\u767a\u5bfe\u8c61\u3068\u306f\u7570\u306a\u308b\u5225\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<br \/>\n\u8d77\u52d5\u3059\u308b\u524d\u306b\u6700\u4f4e\u9650\u305d\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u65b9\u6cd5\u3068\u3057\u3066\u3001\u4e88\u3081\u305d\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u624b\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u3089\u3046\u3001\u4f55\u3089\u304b\u306e\u30c4\u30fc\u30eb\u3067\u81ea\u52d5\u5316\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<br \/>\n\u81ea\u52d5\u5316\u3059\u308b\u306b\u3057\u3066\u3082\u3001Maven\u3067\u5b8c\u7d50\u3067\u304d\u308c\u3070\u305d\u308c\u306b\u8d8a\u3057\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3053\u3067Download\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u51fa\u756a\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u306f\u3001Maven\u306b\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u30ad\u30e3\u30c3\u30b7\u30e5\u30fb\u5c55\u958b\u3055\u305b\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u3048\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u304c\u300c\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5c55\u958b\u3059\u308b\u3060\u3051\u300d\u306e\u3088\u3046\u306a\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5206\u306b\u306f\u5341\u5206\u3067\u3059\u3002<\/p>\n<h2>Build Helper\u30d7\u30e9\u30b0\u30a4\u30f3<\/h2>\n<p><a href=\"http:\/\/mojo.codehaus.org\/build-helper-maven-plugin\/\">Build Helper Maven Plugin - Introduction<\/a><\/p>\n<p>\u5358\u4f53\u30c6\u30b9\u30c8\u30fb\u7d50\u5408\u30c6\u30b9\u30c8\u30fb\u305d\u306e\u4ed6Maven\u3067\u884c\u3046\u30bf\u30b9\u30af\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u3088\u3046\u306a\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u7684\u306a\u6a5f\u80fd\u3092\u96c6\u3081\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002<br \/>\nMaven\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u52d5\u7684\u306b\u66f8\u304d\u63db\u3048\u305f\u308a\u3059\u308b\u306a\u3069\u306e\u6a5f\u80fd\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c\u7a7a\u3044\u3066\u3044\u308b\u30dd\u30fc\u30c8\u300d\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059<br \/>\n\u4f8b\u3048\u3070\u3001MySQL\u3068\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u884c\u3046\u5834\u5408\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u4e2d\u3060\u3051MySQL\u3092\u8d77\u52d5\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u3068\u304d\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e3306\u3092\u4f7f\u3063\u305f\u308a\u3059\u308b\u3068\u3001\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u65e2\u306b\u8d77\u52d5\u3057\u3066\u3044\u308bMySQL\u306e\u30dd\u30fc\u30c8\u3068\u88ab\u3063\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\u3002<br \/>\n\u88ab\u308b\u3068\u30c6\u30b9\u30c8\u306b\u652f\u969c\u304c\u3042\u308b\u306e\u3067\u3001\u73fe\u5728\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u30dd\u30fc\u30c8\u3092\u81ea\u52d5\u7684\u306b\u78ba\u4fdd\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306a\u300c\u7a7a\u3044\u3066\u3044\u308b\u30dd\u30fc\u30c8\u306e\u81ea\u52d5\u78ba\u4fdd\u300d\u306a\u3069\u306e\u6628\u65e5\u304cBuild Helper\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u5b9f\u8df5<\/h1>\n<h2>Surefire\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u3088\u308b\u30c6\u30b9\u30c8<\/h2>\n<p>Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u884c\u3046\u5834\u5408\u3067\u3082\u3001\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306fSurefire\u30d7\u30e9\u30b0\u30a4\u30f3\u540c\u69d8JUnit\u306a\u3069\u306e\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3063\u3066\u66f8\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u66f8\u304d\u65b9\u3092\u304a\u3055\u3089\u3044\u3059\u308b\u305f\u3081\u306b\u3001Surefire\u3068TestNG\u3067\u5358\u4f53\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Maven\u3067\u306fpom.xml\u30d5\u30a1\u30a4\u30eb\u306b\u30d3\u30eb\u30c9\u8a2d\u5b9a\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u30d3\u30eb\u30c9\u8a2d\u5b9a\u306b\u306f\u5229\u7528\u3059\u308bJava\u30e9\u30a4\u30d6\u30e9\u30ea\u30fbMaven\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u305d\u306e\u8a2d\u5b9a\u306a\u3069\u304c\u542b\u307e\u308c\u307e\u3059\u3002<br \/>\nSurefire\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u5358\u4f53\u30c6\u30b9\u30c8\u3092\u884c\u3046\u5834\u5408\u306epom.xml\u306e\u4e00\u4f8b\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u7279\u306bdependencies\u8981\u7d20\u3068build\u8981\u7d20\u306e\u4e2d\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/unit-basic\/pom.xml\">pom.xml<\/a><\/p>\n<pre><code class=\"xml\"><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http:\/\/maven.apache.org\/POM\/4.0.0\"\n         xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\n         xsi:schemaLocation=\"http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\">\n    <parent>\n        <artifactId>maven-examples<\/artifactId>\n        <groupId>net.gree.mavenexamples<\/groupId>\n        <version>1.0-SNAPSHOT<\/version>\n    <\/parent>\n    <modelVersion>4.0.0<\/modelVersion>\n\n    <artifactId>simple<\/artifactId>\n\n    <dependencies>\n        <dependency>\n            <groupId>org.testng<\/groupId>\n            <artifactId>testng<\/artifactId>\n            <version>6.1.1<\/version>\n            <scope>test<\/scope>\n        <\/dependency>\n    <\/dependencies>\n\n    <build>\n        <plugins>\n            <plugin>\n                <artifactId>maven-surefire-plugin<\/artifactId>\n                <version>2.16<\/version>\n            <\/plugin>\n        <\/plugins>\n    <\/build>\n\n<\/project><\/code><\/pre>\n<p>dependencies\u5185\u3067\u306fTestNG\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u4f9d\u5b58\u6027\u3092\u8ffd\u52a0\u3057\u3066\u3001build>plugins\u5185\u3067\u306fmaven-surefire-plugin\u306e\u4f9d\u5b58\u6027\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30c6\u30b9\u30c8\u306b\u96c6\u4e2d\u3059\u308b\u305f\u3081\u306b\u30b7\u30f3\u30d7\u30eb\u306a\u30c6\u30b9\u30c8\u5bfe\u8c61\u30af\u30e9\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002\u6574\u6570\u5024\u306e\u8db3\u3057\u7b97\u3092\u3059\u308badd\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u3060\u3051\u306e\u30af\u30e9\u30b9\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/unit-basic\/src\/main\/java\/net\/gree\/mavenexamples\/Calculator.java\">Calculator.java<\/a><\/p>\n<pre><code class=\"java\">package net.gree.mavenexamples;\n\npublic class Calculator {\n    public int add(int a, int b) {\n        return a + b;\n    }\n}<\/code><\/pre>\n<p>\u3053\u306e\u30af\u30e9\u30b9\u306b\u5bfe\u3059\u308b\u30c6\u30b9\u30c8\u3092\u4e00\u3064\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u5148\u307b\u3069\u306eCalculator\u306eadd\u30e1\u30bd\u30c3\u30c9\u304c1+2=3\u3092\u8a08\u7b97\u3067\u304d\u308b\u3053\u3068\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002TestNG\u304c\u63d0\u4f9b\u3059\u308bassertEquals\u30e1\u30bd\u30c3\u30c9\u306e\u7b2c1\u5f15\u6570\u304c\u671f\u5f85\u7d50\u679c\u3067\u3001\u7b2c2\u5f15\u6570\u304c\u5b9f\u7d50\u679c\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/unit-basic\/src\/test\/java\/net\/gree\/mavenexamples\/CalculatorTest.java\">CalculatorTest.java<\/a><\/p>\n<pre><code class=\"java\">package net.gree.mavenexamples;\n\nimport org.testng.annotations.Test;\n\nimport static org.testng.Assert.assertEquals;\n\npublic class CalculatorTest {\n    @Test\n    public void testAdd() {\n        Calculator calculator = new Calculator();\n\n        assertEquals(3, calculator.add(1, 2));\n    }\n}<\/code><\/pre>\n<p><code>mvn test<\/code>\u30b3\u30de\u30f3\u30c9\u3067pom.xml\u306e\u5185\u5bb9\u306b\u5fdc\u3058\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d3\u30eb\u30c9\u3068\u5358\u4f53\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<pre><code>$ mvn test<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u3055\u308c\u308c\u3070\u3001\u30c6\u30b9\u30c8\u6210\u529f\u3067\u3059\u3002<br \/>\n\u300cTests run: 1\u300d\u306e\u3068\u304a\u308a1\u4ef6\u306e\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u3055\u308c\u3001\u300cFailures: 0, Errors: 0, Skipped: 0\u300d\u306e\u3068\u304a\u308a1\u4ef6\u3082\u5931\u6557\u30fb\u30a8\u30e9\u30fc\u30fb\u30b9\u30ad\u30c3\u30d7\u304c\u306a\u3044\u306e\u3067OK\u3067\u3059\u3002<\/p>\n<pre><code>Running net.gree.mavenexamples.CalculatorTest\nConfiguring TestNG with: TestNGMapConfigurator\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec - in net.gree.mavenexamples.CalculatorTest<\/code><\/pre>\n<h2>Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u3088\u308b\u30c6\u30b9\u30c8<\/h2>\n<p>\u6b21\u306fFailsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002Surefire\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u5834\u5408\u3068\u3088\u304f\u4f3c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u306e\u5c0e\u5165\u306b\u6210\u529f\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u3059\u3093\u306a\u308a\u3044\u3051\u308b\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n<p>\u307e\u305a\u3001pom.xml\u306bmaven-failsafe-plugin\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/integration-basic\/pom.xml\">pom.xml<\/a><\/p>\n<pre><code class=\"xml\"><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http:\/\/maven.apache.org\/POM\/4.0.0\"\n         xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\n         xsi:schemaLocation=\"http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\">\n    <parent>\n        <artifactId>maven-examples<\/artifactId>\n        <groupId>net.gree.mavenexamples<\/groupId>\n        <version>1.0-SNAPSHOT<\/version>\n    <\/parent>\n    <modelVersion>4.0.0<\/modelVersion>\n\n    <artifactId>integration-basic<\/artifactId>\n\n    <dependencies>\n        <dependency>\n            <groupId>org.testng<\/groupId>\n            <artifactId>testng<\/artifactId>\n            <version>6.1.1<\/version>\n            <scope>test<\/scope>\n        <\/dependency>\n    <\/dependencies>\n\n    <build>\n        <plugins>\n            <plugin>\n                <artifactId>maven-failsafe-plugin<\/artifactId>\n                <version>2.16<\/version>\n                <executions>\n                    <execution>\n                        <goals>\n                            <goal>integration-test<\/goal>\n                            <goal>verify<\/goal>\n                        <\/goals>\n                    <\/execution>\n                <\/executions>\n            <\/plugin>\n        <\/plugins>\n    <\/build>\n\n<\/project><\/code><\/pre>\n<p>Surefire\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3068\u306e\u9055\u3044\u306fartifactId\u3068executions\u306e\u307f\u3067\u3059\u3002artifactId\u306fmaven-surefire-plugin\u306e\u4ee3\u308f\u308a\u306bmaven-failsafe-plugin\u306b\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001executions\u8981\u7d20\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002executions\u8981\u7d20\u306b\u306f\u7d50\u5408\u30c6\u30b9\u30c8\u5b9f\u884c\u6642\u306b\u5b9f\u884c\u3059\u308bSurefire\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30b4\u30fc\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u5358\u7d14\u306bintegration-test\u3068verify\u304c1\u56de\u305a\u3064\u3067OK\u3067\u3059\u3002\u4f8b\u3048\u3070\u7d50\u5408\u30c6\u30b9\u30c8\u30921\u56de\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u7570\u306a\u308b\u8a2d\u5b9a\u3067integration-test\u3092\u8907\u6570\u56de\u5b9f\u884c\u3057\u305f\u3044\u3001\u3068\u3044\u3046\u3088\u3046\u306a\u5834\u5408\u306f\u5909\u66f4\u304c\u5fc5\u8981\u3067\u3059\u3002\u8a73\u3057\u304f\u306f<a href=\"https:\/\/maven.apache.org\/surefire\/maven-failsafe-plugin\/usage.html\">Surefire\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4f7f\u3044\u65b9\u30da\u30fc\u30b8(\u82f1\u8a9e)<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u7d50\u5408\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u306f\u25ef\u25efIT\u3068\u3044\u3046\u540d\u524d\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002\u3042\u304f\u307e\u3067\u4f8b\u3068\u3057\u3066\u3001\u5148\u307b\u3069\u306e\u5358\u4f53\u30c6\u30b9\u30c8\u3068\u540c\u3058\u5185\u5bb9\u306e\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u9055\u3044\u306f\u30af\u30e9\u30b9\u540d\u3068\u30d5\u30a1\u30a4\u30eb\u540d\u3060\u3051\u3067\u3059\u3002\u30af\u30e9\u30b9\u540d\u306f\u5358\u4f53\u30c6\u30b9\u30c8\u306eCalculatorTest\u306b\u5bfe\u3057\u3066\u7d50\u5408\u30c6\u30b9\u30c8\u3067\u306fCalculatorIT\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u30c6\u30b9\u30c8\u81ea\u4f53\u306f\u5168\u304f\u7d50\u5408\u30c6\u30b9\u30c8\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001Surefire\u30d7\u30e9\u30b0\u30a4\u30f3\u3068Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4f7f\u3044\u65b9\u306e\u9055\u3044\u3092\u3054\u8aac\u660e\u3059\u308b\u3053\u3068\u306b\u96c6\u4e2d\u3059\u308b\u305f\u3081\u3042\u3048\u3066\u3053\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/integration-basic\/src\/test\/java\/net\/gree\/mavenexamples\/CalculatorIT.java\">CalculatorIT.java<\/a><\/p>\n<pre><code class=\"java\">package net.gree.mavenexamples;\n\nimport org.testng.annotations.Test;\n\nimport static org.testng.Assert.assertEquals;\n\npublic class CalculatorIT {\n    @Test\n    public void testAdd() {\n        Calculator calculator = new Calculator();\n\n        assertEquals(3, calculator.add(1, 2));\n    }\n}<\/code><\/pre>\n<p>\u7d50\u5408\u30c6\u30b9\u30c8\u306f<code>mvn verify<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c6\u30b9\u30c8\u304c1\u4ef6\u901a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre><code>Running net.gree.mavenexamples.CalculatorIT\nConfiguring TestNG with: TestNGMapConfigurator\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.263 sec - in net.gree.mavenexamples.CalculatorIT<\/code><\/pre>\n<p>\u5ff5\u306e\u305f\u3081\u88dc\u8db3\u3059\u308b\u3068\u3001<code>mvn test<\/code>\u3067\u306f\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u540d\u306e\u9055\u3044\u306b\u3088\u308a\u3001\u3053\u306e\u25ef\u25efIT\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<br \/>\n\u4ee5\u4e0a\u304cFailsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3067\u3059\u3002<br \/>\n\u4ee5\u964d\u3067\u306f\u3001Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5229\u7528\u3092\u524d\u63d0\u3068\u3057\u3066\u3001\u3088\u308a\u8907\u96d1\u306a\u7d50\u5408\u30c6\u30b9\u30c8\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>MySQL\u3068\u306e\u7d50\u5408\u30c6\u30b9\u30c8<\/h2>\n<p>\u3055\u3066\u3001\u3053\u306e\u3042\u305f\u308a\u304b\u3089\u4e8b\u4f8b\u304c\u6bd4\u8f03\u7684\u5c11\u306a\u3044\u30d1\u30fc\u30c8\u306b\u5165\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u307e\u305a\u306fMySQL\u3068\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306a\u30af\u30e9\u30b9\u304c\u3042\u308b\u3068\u3057\u3066\u3001\u305d\u308c\u3092\u5b9f\u969b\u306bMySQL\u3078\u63a5\u7d9a\u3055\u305b\u3066\u3046\u307e\u304f\u52d5\u4f5c\u3059\u308b\u304b\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>MySQL\u3092\u8d77\u52d5\u3059\u308b\u3068\u304d\u306fMySQL\u304cLISTEN\u3059\u308b\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u4f8b\u3048\u3070\u30c7\u30d5\u30a9\u30eb\u30c8\u306e3306\u756a\u306a\u3069\u306b\u3057\u3066\u3057\u307e\u3046\u306e\u306f\u3069\u3046\u3067\u3057\u3087\u3046\u304b\uff1f<br \/>\n\u4eca\u56de\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u3068\u306f\u95a2\u4fc2\u306a\u304f\u3001\u5225\u306e\u7528\u9014\u3067\u65e2\u306bMySQL\u3092\u8d77\u52d5\u3057\u3066\u3044\u305f\u3068\u3057\u305f\u3089\u3069\u3046\u3067\u3057\u3087\u3046\u3002\u3082\u3057\u30dd\u30fc\u30c8\u304c\u91cd\u8907\u3057\u3066\u3044\u305f\u3089\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u7528\u306eMySQL\u304c\u8d77\u52d5\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u7d50\u5408\u30c6\u30b9\u30c8\u7528\u306eMySQL\u306b\u4f7f\u3048\u308b\u3088\u3046\u306a\u91cd\u8907\u3057\u306a\u3044\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u81ea\u52d5\u7684\u306b\u63a1\u756a\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u306d\u3002\u305d\u306e\u3088\u3046\u306a\u30dd\u30fc\u30c8\u756a\u53f7\u306e\u63a1\u756a\u306b\u306fBuilder Helper Maven\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/integration-mysql\/pom.xml#L14\">\u30b5\u30f3\u30d7\u30eb\u306epom.xml\u3092GitHub\u4e0a<\/a>\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Builder Helper Maven\u30d7\u30e9\u30b0\u30a4\u30f3\u306ereserve-network-port\u30b4\u30fc\u30eb\u306b\u3088\u3063\u3066\u3001mysql.port\u3068\u3044\u3046Maven\u30d7\u30ed\u30d1\u30c6\u30a3\u306bMySQL\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u78ba\u4fdd\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u78ba\u4fdd\u3055\u308c\u305f\u30dd\u30fc\u30c8\u756a\u53f7\u306fMySQL\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u6e21\u3055\u308c\u3066\u3044\u307e\u3059\u3002<code>${mysql.port}<\/code>\u3067Maven\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5c55\u958b\u3055\u308c\u307e\u3059\u3002\u5c55\u958b\u5148\u306fMySQL\u30d7\u30e9\u30b0\u30a4\u30f3\u306econfiguration > port\u8981\u7d20\u3067\u3059\u3002configuration > port\u8981\u7d20\u306f<a href=\"http:\/\/www.jcabi.com\/jcabi-mysql-maven-plugin\/usage.html\">MySQL\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u9805\u76ee<\/a>\u3067\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3053\u3053\u306b\u6307\u5b9a\u3055\u308c\u305f\u30dd\u30fc\u30c8\u756a\u53f7\u3067MySQL\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3053\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u5b9f\u969b\u306e\u30c6\u30b9\u30c8\u6642\u306b\u53c2\u7167\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u305f\u3081\u306b\u306fJava\u306e\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u7d4c\u7531\u3057\u307e\u3059\u3002\u30c6\u30b9\u30c8\u6642\u306bJava\u306e\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u306f\u3001Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u306e\u3046\u3061systemPropertyVariables\u8981\u7d20\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u3053\u306b\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540c\u3058\u540d\u524d\u306e\u8981\u7d20\u3092\u4f5c\u6210\u3057\u3001\u5148\u307b\u3069\u3068\u540c\u69d8\u306b<code>${mysql.port}<\/code>\u3067\u5c55\u958b\u3057\u305fMaven\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u6e21\u3057\u3066\u3084\u308b\u3053\u3068\u3067\u3001\u7d50\u679c\u7684\u306b\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u304b\u3089\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u7d4c\u7531\u3067\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u3067\u306f\u3001\u666e\u901a\u306bSystem.getProperty\u3092\u5229\u7528\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<\/p>\n<pre><code>System.getProperty(\"mysql.port\");<\/code><\/pre>\n<p>\u305d\u306e\u4ed6\u3001DB\u3078\u306e\u63a5\u7d9a\u65b9\u6cd5\u306a\u3069\u30c6\u30b9\u30c8\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u306e\u8a18\u4e8b\u306e\u7bc4\u56f2\u5916\u306a\u306e\u3067\u7701\u7565\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/integration-mysql\/src\/test\/java\/net\/gree\/mavenexamples\/integrationmysql\/CalculatorIT.java\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306fGitHub\u3067\u3054\u89a7\u304f\u3060\u3055\u3044<\/a>\u3002ORM\u306a\u3069\u306e\u5229\u7528\u306f\u907f\u3051\u3066\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u304a\u898b\u305b\u3059\u308b\u3053\u3068\u306b\u6ce8\u529b\u3057\u305f\u30b3\u30fc\u30c9\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u524d\u8ff0\u306e\u3068\u304a\u308a<code>mvn verify<\/code>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>MySQL Maven\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u6a5f\u80fd\u306f\u300c\u6307\u5b9a\u3055\u308c\u305fOS\u3084CPU\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u5bfe\u5fdc\u3059\u308bMySQL\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u300d\u3068\u3044\u3046\u3082\u306e\u3067\u3057\u305f\u3002\u3053\u308c\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u306f\u3001<code>mvn verify<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u969b\u3001mysql.classifier\u3068\u3044\u3046\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u6709\u52b9\u306aclassifier\u306e\u5024\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"http:\/\/repo1.maven.org\/maven2\/com\/jcabi\/mysql-dist\/5.6.14\/\">Maven\u30bb\u30f3\u30c8\u30e9\u30eb\u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb<\/a>\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u300164-bit kernel\u3092\u4f7f\u3046\u6700\u8fd1\u306eMac\u3067\u3042\u308c\u3070\u3001<em>mac-x86_64<\/em>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u3001\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>$ mvn -Dmysql.classifier=mac-x86_64 verify<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u307e\u305aBuild Helper\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u3088\u308aMySQL\u7528\u306e\u30dd\u30fc\u30c8\u304c\u78ba\u4fdd\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code>[INFO] --- build-helper-maven-plugin:1.8:reserve-network-port (default) @ integration-mysql ---\n[INFO] Reserved port 64822 for mysql.port<\/code><\/pre>\n<p>\u6b21\u306bJCabi MySQL\u30d7\u30e9\u30b0\u30a4\u30f3\u304cMySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u8d77\u52d5\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u3067\u306f\u81ea\u52d5\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fMySQL\u304c\u8d77\u52d5\u3057\u3066\u3001<em>--port=\u78ba\u4fdd\u3057\u305f\u30dd\u30fc\u30c8\u756a\u53f7<\/em>\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u30dd\u30fc\u30c8\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3061\u3083\u3093\u3068\u78ba\u4fdd\u3057\u305f\u30dd\u30fc\u30c8\u304cJCabi MySQL\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u6e21\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<pre><code>[INFO] $ <\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8>\/integration-mysql\/target\/mysql-dist\/bin\/mysqld --no-defaults --general_log --console --innodb_buffer_pool_size=64M --innodb_log_file_size=64M --log_warnings --innodb_use_native_aio=0 --binlog-ignore-db=root --basedir=<\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8>\/integration-mysql\/target\/mysql-dist --lc-messages-dir=<\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8>\/integration-mysql\/target\/mysql-dist\/share --datadir=<\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8>\/integration-mysql\/target\/mysql-data\/data --tmpdir=<\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8>\/integration-mysql\/target\/mysql-data\/temp --socket=<\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8>\/integration-mysql\/target\/mysql-data\/mysql.sock --pid-file=<\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8>\/integration-mysql\/target\/mysql-data\/mysql.pid --port=64822\n<\/code><\/pre>\n<p>\u6700\u7d42\u7684\u306b\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30c6\u30b9\u30c8\u304c\u901a\u3063\u3066\u3044\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<pre><code>Running net.gree.mavenexamples.integrationmysql.CalculatorIT\nConfiguring TestNG with: TestNGMapConfigurator\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.496 sec - in net.gree.mavenexamples.integrationmysql.CalculatorIT<\/code><\/pre>\n<p>\u4ee5\u4e0a\u3067MySQL\u3092\u4f7f\u3046\u7d50\u5408\u30c6\u30b9\u30c8\u304c\u81ea\u52d5\u5316\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u6700\u5f8c\u306bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u3067\u304d\u308c\u3070\u3001\u5927\u62b5\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u306f\u81ea\u52d5\u5316\u3067\u304d\u308b\u57fa\u790e\u529b\u304c\u3064\u3044\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306e\u7d50\u5408\u30c6\u30b9\u30c8<\/h2>\n<p>\u3044\u3088\u3044\u3088\u6700\u5f8c\u3067\u3059\uff01<br \/>\nServlet\u30b3\u30f3\u30c6\u30ca\u3078\u30c7\u30d7\u30ed\u30a4\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u884c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\nWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3044\u3063\u3066\u3082\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5185\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u3082\u306e\u3084\u3001OSS\u3068\u3057\u3066zip\u30a2\u30fc\u30ab\u30a4\u30d6\u306a\u3069\u306e\u5f62\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306a\u3069\u8272\u3005\u3042\u308a\u307e\u3059\u3002<br \/>\n\u524d\u8005\u306f\u30cd\u30c3\u30c8\u4e0a\u306b\u3082\u60c5\u5831\u304c\u591a\u3044\u306e\u3067\u3001\u4eca\u56de\u306f\u3088\u308a\u30de\u30a4\u30ca\u30fc\u306a\u5f8c\u8005\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u5f8c\u8005\u306e\u4e00\u4f8b\u3068\u3057\u3066Solr\u3068\u306e\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u5192\u982d\u306e\u7528\u8a9e\u96c6\u3067\u8efd\u304f\u3054\u8aac\u660e\u3057\u305f\u3068\u304a\u308a\u3001Solr\u306f\u5168\u6587\u691c\u7d22\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002Tomcat\u3084Jetty\u306a\u3069\u306e\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u52d5\u4f5c\u3055\u305b\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u7686\u3055\u3093\u304c\u958b\u767a\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304cSolr\u306e\u5168\u6587\u691c\u7d22\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3068\u3057\u3066\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u3059\u308b\u305f\u3081\u306b\u306f\u30c6\u30b9\u30c8\u306e\u305f\u3073\u306bSolr\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e8b\u524d\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u304a\u3044\u305f\u308a\u3001Tomcat\u3084Jetty\u306a\u3069\u306eAPI\u3092Java\u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001Cargo\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5229\u7528\u3059\u308b\u3068\u6bd4\u8f03\u7684\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u65e9\u901f\u3001pom.xml\u3092\u3056\u3063\u3068\u773a\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u9577\u3044\u306e\u3067\u3001\u4eca\u56de\u3082<a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/integration-webapp\/pom.xml#L14\">GitHub\u4e0a\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044<\/a>\u3002<\/p>\n<p>\u672c\u5f53\u306b\u9577\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\uff01<br \/>\n\u57fa\u672c\u7684\u306b\u306f\u3001<a href=\"http:\/\/cargo.codehaus.org\/Maven2+Plugin+Reference+Guide\">\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30ac\u30a4\u30c9<\/a>\u306e\u901a\u308a\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u3053\u308c\u3092\u3072\u3068\u901a\u308a\u8aad\u3080\u306e\u306f\u9aa8\u304c\u6298\u308c\u308b\u305f\u3081\u3001\u500b\u5225\u306b\u3054\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>dependencies\u3067\u306fTestNG\u3068Solrj\u3078\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u4f9d\u5b58\u6027\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002Solrj\u306fSolr\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u306b\u304a\u3044\u3066\u5b9f\u969b\u306bSolr\u3078\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306bbuild\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u307b\u304b\u306bDownload\u30d7\u30e9\u30b0\u30a4\u30f3\u3068Cargo\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>download-maven-plugin\u306b\u306fapache.org\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u308bSolr\u306ezip\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u5c55\u958b\u3059\u308b\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre><code class=\"xml\"><configuration>\n    <url>http:\/\/archive.apache.org\/dist\/lucene\/solr\/4.6.1\/solr-4.6.1.zip<\/url>\n    <unpack>true<\/unpack>\n    <outputDirectory>${project.build.directory}\/solr-4.6.1<\/outputDirectory>\n    <md5>9a7db9c77f858ee8027c9e14ac2971c3<\/md5>\n<\/configuration><\/code><\/pre>\n<p>zip\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306b\u3001url\u8981\u7d20\u306bzip\u30a2\u30fc\u30ab\u30a4\u30d6\u3078\u306eURL\u3001md5\u8981\u7d20\u306bzip\u30a2\u30fc\u30ab\u30a4\u30d6\u306eMD5\u30cf\u30c3\u30b7\u30e5\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u3044\u305a\u308c\u3082<a href=\"http:\/\/archive.apache.org\/dist\/lucene\/solr\/4.6.1\/\">Solr\u306e\u914d\u5e03\u5834\u6240<\/a>\u3067\u8abf\u3079\u3089\u308c\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fzip\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u5c55\u958b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306funpack\u8981\u7d20\u306btrue\u3001output-directory\u8981\u7d20\u306b\u5c55\u958b\u5148\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>cargo-maven2-plugin\u306b\u306f\u3001Jetty\u3092\u8d77\u52d5\u3057\u3066Solr\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u5229\u7528\u3059\u308bServlet\u30b3\u30f3\u30c6\u30ca\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306fJetty 8.1.14\u3092\u4f7f\u3044\u307e\u3059\u3002\u5229\u7528\u3067\u304d\u308bJetty\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f<a href=\"http:\/\/mvnrepository.com\/artifact\/org.eclipse.jetty\/jetty-distribution\">Maven\u30bb\u30f3\u30c8\u30e9\u30eb\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\u306e\u60c5\u5831<\/a>\u306a\u3069\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"xml\"><container>\n    <containerId>jetty8x<\/containerId>\n    <artifactInstaller>\n        <groupId>org.eclipse.jetty<\/groupId>\n        <artifactId>jetty-distribution<\/artifactId>\n        <version>8.1.14.v20131031<\/version>\n    <\/artifactInstaller>\n    <log>${basedir}\/target\/jetty.log<\/log>\n<\/container><\/code><\/pre>\n<p>\u6b21\u306f\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<pre><code class=\"xml\"><configuration>\n    <type>standalone<\/type>\n    <home>${basedir}\/target\/web-container<\/home>\n    <properties>\n        <cargo.servlet.port>8983<\/cargo.servlet.port>\n        <cargo.logging>high<\/cargo.logging>\n    <\/properties>\n<\/configuration><\/code><\/pre>\n<p>\u307e\u305a\u3001type\u306b\u3088\u3063\u3066Cargo\u304c\u3069\u306e\u3088\u3046\u306bServlet\u30b3\u30f3\u30c6\u30ca\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002type\u306e\u8aac\u660e\u306f<a href=\"http:\/\/cargo.codehaus.org\/Configuration\">Cargo\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u3042\u308a\u307e\u3059\u3002<a href=\"http:\/\/cargo.codehaus.org\/Standalone+Local+Configuration\">standalone<\/a>\u306f\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u5fc5\u8981\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u90fd\u5ea6\u751f\u6210\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3067\u3059\u3002\u305d\u306e\u4ed6\u306b\u306f\u8a2d\u5b9a\u6e08\u307f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f7f\u3046<a href=\"http:\/\/cargo.codehaus.org\/Existing+Local+Configuration\">existing<\/a>\u3084\u3001\u65e2\u306b\u8d77\u52d5\u3057\u3066\u3044\u308bServlet\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3046<a href=\"http:\/\/cargo.codehaus.org\/Runtime+Configuration\">runtime<\/a>\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u56de\u306fstandalone\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>home\u306b\u306fServlet\u30b3\u30f3\u30c6\u30ca\u306e\u8a2d\u5b9a\u304c\u66f8\u304d\u51fa\u3055\u308c\u308b\u5148\u3068\u306a\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>properties\u306b\u306f<a href=\"http:\/\/cargo.codehaus.org\/Configuration+properties\">Cargo\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u9805\u76ee<\/a>\u304c\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001\u4eca\u56de\u306fServlet\u30b3\u30f3\u30c6\u30ca\u306e\u30dd\u30fc\u30c8\u30928983\u306b\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306bcargo.servlet.port\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u308b\u70b9\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u7c21\u5358\u306e\u305f\u3081Solr\u3078\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u306f8983\u3067\u56fa\u5b9a\u3068\u3057\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306fMySQL\u540c\u69d8\u3001Builder Helper\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u30dd\u30fc\u30c8\u3092\u78ba\u4fdd\u3057\u305f\u307b\u3046\u304c\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001Download\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u5c55\u958b\u3057\u305fSolr\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<pre><code class=\"xml\"><deployables>\n    <deployable>\n        <type>war<\/type>\n        <location>${basedir}\/target\/solr-4.6.1\/solr-4.6.1\/dist\/solr-4.6.1.war<\/location>\n        <properties>\n            <context>\/solr<\/context>\n        <\/properties>\n    <\/deployable>\n<\/deployables><\/code><\/pre>\n<p>zip\u30a2\u30fc\u30ab\u30a4\u30d6\u306b\u306fSolr\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306ewar\u30d5\u30a1\u30a4\u30eb\u304c\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u305d\u308c\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\nwar\u30d5\u30a1\u30a4\u30eb\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u5834\u5408\u306f\u3001configuration\u306etype\u8981\u7d20\u306b\u300cwar\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066location\u8981\u7d20\u306bSolr\u306ewar\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3001properties\u8981\u7d20\u4ee5\u4e0b\u306econtext\u8981\u7d20\u306b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067pom.xml\u306f\u5b8c\u6210\u3067\u3059\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306f<a href=\"https:\/\/github.com\/gree\/maven-examples\/blob\/master\/integration-webapp\/src\/test\/java\/net\/gree\/mavenexamples\/webapp\/SolrIT.java\">GitHub\u4e0a\u3067\u3054\u89a7\u304f\u3060\u3055\u3044<\/a>\u3002<\/p>\n<p>\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u3053\u308c\u307e\u3067\u3068\u540c\u69d8\u306b<code>mvn verify<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre><code>$ mvn verify<\/code><\/pre>\n<p>\u30ed\u30b0\u3092\u8ffd\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u307e\u305aDownload\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u3088\u308aSolr\u306ezip\u30a2\u30fc\u30ab\u30a4\u30d6\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002\u521d\u56de\u306f\u3053\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u305f\u3081\u3057\u3070\u3089\u304f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u30022\u56de\u3081\u4ee5\u964d\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u308b\u306e\u3067\u3001\u5f85\u3061\u6642\u9593\u306f\u6570\u79d2\u3067\u3059\u3002<\/p>\n<pre><code>[INFO] --- maven-download-plugin:1.1.0:wget (install-solr) @ integration-webapp ---\nDownloading: http:\/\/archive.apache.org\/dist\/lucene\/solr\/4.6.1\/\/solr-4.6.1.zip<\/code><\/pre>\n<p>\u6b21\u306bCargo\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3068\u304dJetty\u304c\u8d77\u52d5\u3057\u3066Solr\u304c\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code>[INFO] --- cargo-maven2-plugin:1.4.7:start (start-container) @ integration-webapp ---<\/code><\/pre>\n<p>\u305d\u3057\u3066Failsafe\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u3088\u3063\u3066\u7d50\u5408\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code>[INFO] --- maven-failsafe-plugin:2.16:integration-test (default) @ integration-webapp ---<\/code><\/pre>\n<p>\u30c6\u30b9\u30c8\u306e\u6210\u529f\u30fb\u5931\u6557\u306b\u304b\u304b\u308f\u3089\u305a\u3001\u6700\u5f8c\u306b\u518d\u5ea6Cargo\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3068\u304dJetty\u304c\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\n[INFO] --- cargo-maven2-plugin:1.4.7:stop (stop-container) @ integration-webapp ---<\/code><\/pre>\n<p>\u6700\u7d42\u7684\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c6\u30b9\u30c8\u304c\u6210\u529f\u3057\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002\u304a\u3064\u304b\u308c\u3055\u307e\u3067\u3057\u305f\uff01<\/p>\n<pre><code>Running net.gree.mavenexamples.webapp.SolrIT\n(\u7565)\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.139 sec - in net.gree.mavenexamples.webapp.SolrIT<\/code><\/pre>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<\/p>\n<ul>\n<li>\u7d50\u5408\u30c6\u30b9\u30c8\u3068\u306f\u4f55\u304b<\/li>\n<li>\u7b46\u8005\u306f\u4f55\u306e\u305f\u3081\u306b\u884c\u3063\u3066\u3044\u308b\u306e\u304b<\/li>\n<li>\u305d\u308c\u3092Maven\u3067\u81ea\u52d5\u5316\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<p>\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u5408\u30c6\u30b9\u30c8\u306f\u7528\u9014\u304c\u77e5\u3089\u308c\u3066\u3044\u305f\u308a\u3044\u306a\u304b\u3063\u305f\u308a\u3001\u5358\u4f53\u30c6\u30b9\u30c8\u306b\u6bd4\u3079\u308b\u3068\u60c5\u5831\u304c\u5c11\u306a\u304b\u3063\u305f\u308a\u3001\u624b\u9593\u304c\u304b\u304b\u308b\u305f\u3081\u306b\u81ea\u52d5\u5316\u304c\u5f8c\u56de\u3057\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002<br \/>\n\u3053\u306e\u8a18\u4e8b\u304c\u7686\u3055\u3093\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u7d50\u5408\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u306e\u53d6\u3063\u639b\u304b\u308a\u3068\u3057\u3066\u6d3b\u7528\u3055\u308c\u308c\u3070\u5b09\u3057\u3044\u3067\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u4e5d\u5ca1\u3067\u3059\u3002 Java\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u307f\u306a\u3055\u3093\u3001\u7d50\u5408\u30c6\u30b9\u30c8\u306e\u81ea\u52d5\u5316\u3057\u3066\u307e\u3059\u304b\uff1f\uff01 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 \u7d50\u5408\u30c6\u30b9\u30c8\u3068\u306f\u4f55\u304b \u7b46\u8005\u306f\u4f55\u306e\u305f\u3081\u306b\u884c\u3063\u3066\u3044\u308b\u306e\u304b \u305d\u308c\u3092Maven\u3067\u81ea\u52d5\u5316\u3059\u308b\u65b9\u6cd5 \u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u7528\u9014\u304c\u77e5\u3089\u308c [&hellip;]<\/p>\n","protected":false},"author":63,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[171],"class_list":["post-10625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-info","tag-info"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/10625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=10625"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/10625\/revisions"}],"predecessor-version":[{"id":11014,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/10625\/revisions\/11014"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=10625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=10625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=10625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}