POM 文件参考
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | < project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> < modelVersion >4.0.0</ modelVersion > < groupId >com.test</ groupId > < artifactId >test</ artifactId > < version >0.0.1-SNAPSHOT</ version > < packaging >jar</ packaging > < name >test</ name > < url >http://maven.apache.org</ url > < properties > < project.build.sourceEncoding >UTF-8</ project.build.sourceEncoding > < dropwizard.version >1.3.21</ dropwizard.version > < apiBase.version >1.4.1.16</ apiBase.version > < postgres-jdbc.version >42.2.5</ postgres-jdbc.version > < aws.version >1.11.744</ aws.version > </ properties > < dependencies > < dependency > < groupId >junit</ groupId > < artifactId >junit</ artifactId > < version >3.8.1</ version > < scope >test</ scope > </ dependency > < dependency > < groupId >io.dropwizard</ groupId > < artifactId >dropwizard-core</ artifactId > < version >${dropwizard.version}</ version > </ dependency > < dependency > < groupId >io.dropwizard</ groupId > < artifactId >dropwizard-assets</ artifactId > < version >${dropwizard.version}</ version > </ dependency > < dependency > < groupId >io.dropwizard</ groupId > < artifactId >dropwizard-jdbi3</ artifactId > < version >${dropwizard.version}</ version > </ dependency > < dependency > < groupId >org.slf4j</ groupId > < artifactId >slf4j-api</ artifactId > < version >1.7.25</ version > </ dependency > < dependency > < groupId >org.projectlombok</ groupId > < artifactId >lombok</ artifactId > < version >1.18.10</ version > < scope >provided</ scope > </ dependency > < dependency > < groupId >ch.qos.logback</ groupId > < artifactId >logback-core</ artifactId > < version >1.2.3</ version > </ dependency > < dependency > < groupId >org.quartz-scheduler</ groupId > < artifactId >quartz</ artifactId > < version >2.3.2</ version > </ dependency > < dependency > < groupId >org.quartz-scheduler</ groupId > < artifactId >quartz-jobs</ artifactId > < version >2.3.2</ version > </ dependency > < dependency > < groupId >com.google.guava</ groupId > < artifactId >guava</ artifactId > < version >24.0-jre</ version > </ dependency > < dependency > < groupId >com.google.inject</ groupId > < artifactId >guice</ artifactId > < version >4.1.0</ version > </ dependency > < dependency > < groupId >com.squarespace.jersey2-guice</ groupId > < artifactId >jersey2-guice-impl</ artifactId > < version >1.0.6</ version > < exclusions > < exclusion > < groupId >org.glassfish.jersey.core</ groupId > < artifactId >jersey-server</ artifactId > </ exclusion > < exclusion > < groupId >org.glassfish.hk2</ groupId > < artifactId >hk2-api</ artifactId > </ exclusion > </ exclusions > </ dependency > < dependency > < groupId >org.influxdb</ groupId > < artifactId >influxdb-java</ artifactId > < version >2.18</ version > </ dependency > < dependency > < groupId >mysql</ groupId > < artifactId >mysql-connector-java</ artifactId > < version >8.0.20</ version > </ dependency > < dependency > < groupId >com.squareup.okhttp3</ groupId > < artifactId >okhttp</ artifactId > < version >4.4.1</ version > </ dependency > < dependency > < groupId >com.squareup.retrofit2</ groupId > < artifactId >retrofit</ artifactId > < version >2.8.1</ version > </ dependency > < dependency > < groupId >com.atlassian.jira</ groupId > < artifactId >jira-rest-java-client-app</ artifactId > < version >5.2.0</ version > < exclusions > < exclusion > < groupId >org.glassfish.jersey.core</ groupId > < artifactId >jersey-server</ artifactId > </ exclusion > < exclusion > < groupId >com.sun.jersey</ groupId > < artifactId >jersey-client</ artifactId > </ exclusion > < exclusion > < groupId >com.sun.jersey</ groupId > < artifactId >jersey-json</ artifactId > </ exclusion > < exclusion > < groupId >org.slf4j</ groupId > < artifactId >slf4j-log4j12</ artifactId > </ exclusion > </ exclusions > </ dependency > < dependency > < groupId >org.codehaus.jettison</ groupId > < artifactId >jettison</ artifactId > < version >1.4.1</ version > </ dependency > < dependency > < groupId >com.google.code.gson</ groupId > < artifactId >gson</ artifactId > < version >2.8.6</ version > </ dependency > < dependency > < groupId >com.github.fge</ groupId > < artifactId >json-schema-validator</ artifactId > < version >2.2.6</ version > </ dependency > < dependency > < groupId >com.fasterxml.jackson.core</ groupId > < artifactId >jackson-core</ artifactId > < version >2.11.1</ version > </ dependency > < dependency > < groupId >com.fasterxml.jackson.core</ groupId > < artifactId >jackson-databind</ artifactId > < version >2.11.1</ version > </ dependency > </ dependencies > < build > < plugins > < plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-shade-plugin</ artifactId > < configuration > < createDependencyReducedPom >true</ createDependencyReducedPom > < filters > < filter > < artifact >*:*</ artifact > < excludes > < exclude >META-INF/*.SF</ exclude > < exclude >META-INF/*.DSA</ exclude > < exclude >META-INF/*.RSA</ exclude > </ excludes > </ filter > </ filters > < transformers > < transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> < transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> < manifestEntries > < Main-Class > com.morningstar.MetricsService.App</ Main-Class > </ manifestEntries > </ transformer > </ transformers > </ configuration > < executions > < execution > < phase >package</ phase > < goals > < goal >shade</ goal > </ goals > </ execution > </ executions > </ plugin > < plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-compiler-plugin</ artifactId > < version >3.1</ version > < configuration > < source >1.8</ source > < target >1.8</ target > </ configuration > </ plugin > <!--添加外部classpath --> < plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-jar-plugin</ artifactId > < configuration > < excludes > < exclude >projectMapping.json</ exclude > < exclude >projectMapping.xsd</ exclude > </ excludes > < archive > < manifestEntries > <!-- 在Class-Path下添加配置文件的路径 --> < Class-Path >conf/</ Class-Path > </ manifestEntries > </ archive > </ configuration > </ plugin > <!--将resources内的配置文件移至jar同级文件夹 --> < plugin > < artifactId >maven-resources-plugin</ artifactId > < executions > < execution > < id >copy-configuration-files</ id > < phase >process-sources</ phase > < goals > < goal >copy-resources</ goal > </ goals > < configuration > < outputDirectory >${basedir}/target/conf</ outputDirectory > < resources > < resource > < directory >${basedir}/src/main/resources</ directory > < includes > < include >Dockerfile</ include > < include >projectMapping.json</ include > < include >projectMapping.xsd</ include > </ includes > </ resource > </ resources > </ configuration > </ execution > </ executions > </ plugin > </ plugins > </ build > </ project > |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 25岁的心里话
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
2015-07-16 [SoapUI] 通过Groovy调用批处理文件.bat
2015-07-16 [BAT] 通过批处理加host
2015-07-16 [BAT] 以当前时间为名创建文件夹,将本地文件夹里的文件拷贝到远程共享目录
2015-07-16 [BAT] 通过命令行窗口重启或关闭远程电脑