1.拷贝settings到.m2文件下
2.修改文件
3.新建Project项目
4.转换为maven项目
config下转换
5.拷贝pom文件
12 4.0.0 3com.ibeifeng 4transformer 50.0.1 6 78 15 162.5.0-cdh5.3.6 90.98.6-cdh5.3.6 100.13.1-cdh5.3.6 115.1.18 122.6.2 130.6.1 1417 18 31 3219 22aliyun 20http://maven.aliyun.com/nexus/content/groups/public/ 2123 26cloudera 24https://repository.cloudera.com/artifactory/cloudera-repos/ 2527 30jboss 28http://repository.jboss.org/nexus/content/groups/public 2933 77 7834 38 39org.apache.hadoop 35hadoop-client 36${hadoop.version} 3740 44 45org.apache.hbase 41hbase-client 42${hbase.version} 4346 50 51org.apache.hbase 47hbase-server 48${hbase.version} 4952 56 57 58org.apache.hive 53hive-exec 54${hive.version} 5559 63 64 65mysql 60mysql-connector-java 61${mysql.version} 6266 70 71cz.mallat.uasparser 67uasparser 68${uasparser.version} 6972 76com.google.code.gson 73gson 74${gson.version} 7579 80 166 16781 82 113 114local 8384 85 87true 8688 11289 11190 91 110org.codehaus.mojo 92build-helper-maven-plugin 931.4 9495 10996 108add-source 97generate-sources 9899 101add-source 100102 107103 106115 116 165dev 117118 164119 163120 138 139org.codehaus.mojo 121build-helper-maven-plugin 1221.4 123124 137125 136add-source 126generate-sources 127128 130add-source 129131 135132 134${basedir}/src/main/java133 140 141 162org.apache.maven.plugins 142maven-shade-plugin 1432.1 144145 161146 160package 147148 150shade 149151 159152 158153 157cz.mallat.uasparser:uasparser 154net.sourceforge.jregex:jregex 155mysql:mysql-connector-java 156168 181src/test/java 169170 180171 179maven-compiler-plugin 1723.3 173174 1781.7175 1.7 176utf8 177
6.新建目录
src/main/java
src/main/resources
src/test/java
7.拷贝java下的所有程序到src/main/java
8.拷贝resources配置到src/main/resources
9.拷贝ip到主目录
二:测试
1.程序
2.结果
{os=Windows, u_sd=6D4F89C0-E17B-45D0-BFE0-059644C1878D, b_iev=Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36, bf_sid=33cbf257-3b11-4abd-ac70-c5fc47afb797_11177014, os_v=Windows XP, c_time=1450569596991, b_rst=1440*900, l=zh-CN, s_time=1450569601351, ver=1, u_ud=4B16B8BB-D6AA-4118-87F8-C58680D22657, city=宝山区, country=中国, ip=114.92.217.149, u_nu=1, browser=Chrome, province=上海市, pl=website, browser_v=45.0.2454.101, en=e_l, sdk=js}