|
119 | 119 | <plugin>
|
120 | 120 | <groupId>org.springframework.boot</groupId>
|
121 | 121 | <artifactId>spring-boot-maven-plugin</artifactId>
|
| 122 | + <executions> |
| 123 | + <execution> |
| 124 | + <goals> |
| 125 | + <goal>repackage</goal> |
| 126 | + </goals> |
| 127 | + </execution> |
| 128 | + </executions> |
122 | 129 | </plugin>
|
123 | 130 | </plugins>
|
124 | 131 | </build>
|
|
153 | 160 | </plugins>
|
154 | 161 | </build>
|
155 | 162 | </profile>
|
| 163 | + <profile> |
| 164 | + <id>assemble</id> |
| 165 | + <build> |
| 166 | + <plugins> |
| 167 | + <!-- mvn -Passemble clean package appassembler:assemble --> |
| 168 | + <plugin> |
| 169 | + <groupId>org.codehaus.mojo</groupId> |
| 170 | + <artifactId>appassembler-maven-plugin</artifactId> |
| 171 | + <version>2.0.0</version> |
| 172 | + <configuration> |
| 173 | + <!-- 生成linux, windows两种平台的执行脚本 --> |
| 174 | + <platforms> |
| 175 | + <platform>unix</platform> |
| 176 | + <platform>windows</platform> |
| 177 | + </platforms> |
| 178 | + <!-- 包存放的根目录 --> |
| 179 | + <assembleDirectory>${project.build.directory}/${project.artifactId}</assembleDirectory> |
| 180 | + <!-- 打包的jar,以及maven依赖的jar存放目录 --> |
| 181 | + <repositoryName>lib</repositoryName> |
| 182 | + <!-- lib目录中jar的存放规则,默认是${groupId}/${artifactId}的目录格式,flat表示直接把jar放到lib目录 --> |
| 183 | + <!-- 可执行脚本的存放目录 --> |
| 184 | + <binFolder>bin</binFolder> |
| 185 | + <!-- 配置文件的存放目录 --> |
| 186 | + <configurationDirectory>conf</configurationDirectory> |
| 187 | + <!-- 拷贝配置文件到上面的目录中 --> |
| 188 | + <copyConfigurationDirectory>true</copyConfigurationDirectory> |
| 189 | + <!-- 从哪里拷贝配置文件 (默认src/main/config) --> |
| 190 | + <configurationSourceDirectory>src/main/resources</configurationSourceDirectory> |
| 191 | + <repositoryLayout>flat</repositoryLayout> |
| 192 | + <encoding>UTF-8</encoding> |
| 193 | + <logsDirectory>logs</logsDirectory> |
| 194 | + <tempDirectory>tmp</tempDirectory> |
| 195 | + <programs> |
| 196 | + <program> |
| 197 | + <!-- 启动类 --> |
| 198 | + <mainClass>com.cc.etherscan.io.EtherContractProcessorApplication</mainClass> |
| 199 | + <jvmSettings> |
| 200 | + <extraArguments> |
| 201 | + <extraArgument>-server</extraArgument> |
| 202 | + <extraArgument>-Xmx1G</extraArgument> |
| 203 | + <extraArgument>-Xms1G</extraArgument> |
| 204 | + </extraArguments> |
| 205 | + </jvmSettings> |
| 206 | + </program> |
| 207 | + </programs> |
| 208 | + </configuration> |
| 209 | + </plugin> |
| 210 | + </plugins> |
| 211 | + </build> |
| 212 | + </profile> |
| 213 | + <profile> |
| 214 | + <id>generate-daemons</id> |
| 215 | + <build> |
| 216 | + <plugins> |
| 217 | + <!-- mvn -Pgenerate-daemons clean package appassembler:generate-daemons --> |
| 218 | + <plugin> |
| 219 | + <groupId>org.codehaus.mojo</groupId> |
| 220 | + <artifactId>appassembler-maven-plugin</artifactId> |
| 221 | + <version>2.0.0</version> |
| 222 | + <configuration> |
| 223 | + <!-- 根目录 --> |
| 224 | + <assembleDirectory>${project.build.directory}/${project.name}</assembleDirectory> |
| 225 | + <!-- 打包的jar,以及maven依赖的jar存放目录 --> |
| 226 | + <repositoryName>lib</repositoryName> |
| 227 | + <!-- 可执行脚本的存放目录 --> |
| 228 | + <binFolder>bin</binFolder> |
| 229 | + <!-- 配置文件的存放目录 --> |
| 230 | + <configurationDirectory>conf</configurationDirectory> |
| 231 | + <!-- 拷贝配置文件到上面的目录中 --> |
| 232 | + <copyConfigurationDirectory>true</copyConfigurationDirectory> |
| 233 | + <!-- 从哪里拷贝配置文件 (默认src/main/config) --> |
| 234 | + <configurationSourceDirectory>src/main/resources</configurationSourceDirectory> |
| 235 | + <!-- lib目录中jar的存放规则,默认是${groupId}/${artifactId}的目录格式,flat表示直接把jar放到lib目录 --> |
| 236 | + <repositoryLayout>flat</repositoryLayout> |
| 237 | + <encoding>UTF-8</encoding> |
| 238 | + <logsDirectory>logs</logsDirectory> |
| 239 | + <tempDirectory>tmp</tempDirectory> |
| 240 | + <daemons> |
| 241 | + <daemon> |
| 242 | + <mainClass>com.cc.etherscan.io.EtherContractProcessorApplication</mainClass> |
| 243 | + <platforms> |
| 244 | + <platform>jsw</platform> |
| 245 | + </platforms> |
| 246 | + <generatorConfigurations> |
| 247 | + <generatorConfiguration> |
| 248 | + <generator>jsw</generator> |
| 249 | + <includes> |
| 250 | + <include>linux-x86-32</include> |
| 251 | + <include>linux-x86-64</include> |
| 252 | + <include>windows-x86-32</include> |
| 253 | + <include>windows-x86-64</include> |
| 254 | + </includes> |
| 255 | + <configuration> |
| 256 | + <property> |
| 257 | + <name>configuration.directory.in.classpath.first</name> |
| 258 | + <value>conf</value> |
| 259 | + </property> |
| 260 | + <property> |
| 261 | + <name>wrapper.ping.timeout</name> |
| 262 | + <value>120</value> |
| 263 | + </property> |
| 264 | + <property> |
| 265 | + <name>set.default.REPO_DIR</name> |
| 266 | + <value>lib</value> |
| 267 | + </property> |
| 268 | + <property> |
| 269 | + <name>wrapper.logfile</name> |
| 270 | + <value>logs/wrapper.log</value> |
| 271 | + </property> |
| 272 | + </configuration> |
| 273 | + </generatorConfiguration> |
| 274 | + </generatorConfigurations> |
| 275 | + <jvmSettings> |
| 276 | + <!-- jvm参数 --> |
| 277 | + <systemProperties> |
| 278 | + <systemProperty>com.sun.management.jmxremote</systemProperty> |
| 279 | + <systemProperty>com.sun.management.jmxremote.port=1984</systemProperty> |
| 280 | + <systemProperty>com.sun.management.jmxremote.authenticate=false</systemProperty> |
| 281 | + <systemProperty>com.sun.management.jmxremote.ssl=false</systemProperty> |
| 282 | + </systemProperties> |
| 283 | + </jvmSettings> |
| 284 | + </daemon> |
| 285 | + </daemons> |
| 286 | + </configuration> |
| 287 | + </plugin> |
| 288 | + </plugins> |
| 289 | + </build> |
| 290 | + </profile> |
156 | 291 | </profiles>
|
157 | 292 |
|
158 | 293 |
|
|
0 commit comments