上一篇我们介绍《构建dubbo分布式平台-maven构建ant-framework核心代码Base封装》,今天重点讲解的是ant-utils工具包的构建过程。
导语:ant-utils是核心工具包,提供整个架构通用工具类库
- 创建ant-utils工具包子项目,继承ant-parent根项目,其中pom.xml配置如下:
`<span style="font-size: 14px;"><?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.sml.sz</groupId>
<artifactId>ant-project</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>ant-utils</artifactId>
<name>ant-utils</name>
<url>http://maven.apache.org</url>
<description>ant核心工具包,提供整个架构通用工具类库</description><dependencies>
org.apache.commons
commons-lang3
${commons-lang3.version}commons-io
commons-io
${commons-io.version}commons-codec
commons-codec
${commons-codec.version}commons-fileupload
commons-fileupload
${commons-fileupload.version}commons-beanutils
commons-beanutils
${commons-beanutils.version}commons-logging
commons-loggingcom.fasterxml.jackson.core
jackson-core
${jackson.version}com.fasterxml.jackson.core
jackson-databind
${jackson.version}com.fasterxml.jackson.core
jackson-annotations
${jackson.version}com.fasterxml.jackson.module
jackson-module-jaxb-annotations
${jackson.version}com.thoughtworks.xstream
xstream
${xstream.version}net.sf.dozer
dozer
${dozer.version}org.freemarker
freemarker
${freemarker.version}javax.mail
mail
${email.version}javax.activation
activation
1.1.1org.apache.poi
poi
${poi.version}org.apache.poi
poi-ooxml
${poi.version}org.apache.poi
poi-ooxml-schemas
${poi.version}com.drewnoakes
metadata-extractor
2.6.2com.google.zxing
core
2.2com.google.zxing
javase
2.2net.sf.ehcache
ehcache-core
${ehcache.version}net.sf.ehcache
ehcache-web
${ehcache-web.version}redis.clients
jedis
2.5.1org.springframework
spring-context-support
${spring.version}org.apache.httpcomponents
httpclient
4.5.2sit
environment.type
sitcom.google.code.maven-replacer-plugin
replacertarget/classes/logback.properties
=dev
=situat
environment.type
uatcom.google.code.maven-replacer-plugin
replacertarget/classes/logback.properties
=dev
=uatperformance
environment.type
performancecom.google.code.maven-replacer-plugin
replacertarget/classes/logback.properties
=dev
=perfproduction
environment.type
productioncom.google.code.maven-replacer-plugin
replacertarget/classes/logback.properties
=dev
=prd时间: 2024-10-07 16:35:45