Showing
41 changed files
with
961 additions
and
223 deletions
lib/mybatis-common-0.0.1.jar
0 → 100644
No preview for this file type
scripts/shell/init.sh
0 → 100644
| 1 | +echo init start! | ||
| 2 | +cd ../../server | ||
| 3 | +base_dir=`pwd` | ||
| 4 | +#mvn install:install-file -Dfile=$base_dir/../lib/mybatis-common-0.0.1.jar -DgroupId=com.erry -DartifactId=imac-common -Dversion=1.0 -Dpackaging=jar | ||
| 5 | + | ||
| 6 | +cd $base_dir/base-starter | ||
| 7 | +mvn clean install -Dmaven.test.skip=true | ||
| 8 | + | ||
| 9 | +cd $base_dir/common-dao | ||
| 10 | +mvn clean install -Dmaven.test.skip=true | ||
| 11 | + | ||
| 12 | +cd $base_dir/common-dependencies | ||
| 13 | +mvn clean install -Dmaven.test.skip=true | ||
| 14 | + | ||
| 15 | +echo init finished! | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
scripts/shell/install.sh
0 → 100644
| 1 | +echo '###############################自动打包,打包后的文件生成在../../server目录下####################################' | ||
| 2 | +#环境 | ||
| 3 | +profile='prod' | ||
| 4 | +echo '######## 打包环境: '${profile} | ||
| 5 | +#maven打包版本 | ||
| 6 | +echo '######## maven打包版本: '${sVersion} | ||
| 7 | + | ||
| 8 | +sh ./init.sh | ||
| 9 | + | ||
| 10 | +cd ../../server | ||
| 11 | +base_dir=`pwd` | ||
| 12 | + | ||
| 13 | +rm -f $base_dir/*.war | ||
| 14 | +echo '######## 删除所有war包' | ||
| 15 | + | ||
| 16 | +moduleName='bus-customer' | ||
| 17 | +version='1.2.9' | ||
| 18 | +echo '######## 打包模块: '${moduleName} | ||
| 19 | +cd $base_dir/${moduleName} | ||
| 20 | +mvn clean install -Dmaven.test.skip=true -P$profile | ||
| 21 | +oriName=exp-${moduleName}-${version}_${profile}.war.original | ||
| 22 | +tarName=exp-${moduleName}-${version}_${profile}.war | ||
| 23 | +cp target/${oriName} $base_dir && mv $base_dir/${oriName} $base_dir/${tarName} | ||
| 24 | +echo '######## 打包完成目录: '$base_dir/${tarName} | ||
| 25 | + | ||
| 26 | +moduleName='bus-employees' | ||
| 27 | +version='1.2.9' | ||
| 28 | +echo '######## 打包模块: '${moduleName} | ||
| 29 | +cd $base_dir/${moduleName} | ||
| 30 | +mvn clean install -Dmaven.test.skip=true -P$profile | ||
| 31 | +oriName=exp-${moduleName}-${version}_${profile}.war.original | ||
| 32 | +tarName=exp-${moduleName}-${version}_${profile}.war | ||
| 33 | +cp target/${oriName} $base_dir && mv $base_dir/${oriName} $base_dir/${tarName} | ||
| 34 | +echo '######## 打包完成目录: '$base_dir/${tarName} | ||
| 35 | + | ||
| 36 | +moduleName='kafka-cndc-output' | ||
| 37 | +version='1.2.9' | ||
| 38 | +echo '######## 打包模块: '${moduleName} | ||
| 39 | +cd $base_dir/${moduleName} | ||
| 40 | +mvn clean install -Dmaven.test.skip=true -P$profile | ||
| 41 | +oriName=exp-${moduleName}-${version}_${profile}.war.original | ||
| 42 | +tarName=exp-${moduleName}-${version}_${profile}.war | ||
| 43 | +cp target/${oriName} $base_dir && mv $base_dir/${oriName} $base_dir/${tarName} | ||
| 44 | +echo '######## 打包完成目录: '$base_dir/${tarName} | ||
| 45 | + | ||
| 46 | +moduleName='manager-server' | ||
| 47 | +version='1.2.9' | ||
| 48 | +echo '######## 打包模块: '${moduleName} | ||
| 49 | +cd $base_dir/${moduleName} | ||
| 50 | +mvn clean install -Dmaven.test.skip=true -P$profile | ||
| 51 | +oriName=exp-${moduleName}-${version}_${profile}.war.original | ||
| 52 | +tarName=exp-${moduleName}-${version}_${profile}.war | ||
| 53 | +cp target/${oriName} $base_dir && mv $base_dir/${oriName} $base_dir/${tarName} | ||
| 54 | +echo '######## 打包完成目录: '$base_dir/${tarName} | ||
| 55 | + | ||
| 56 | +moduleName='openapi-server' | ||
| 57 | +version='1.2.9' | ||
| 58 | +echo '######## 打包模块: '${moduleName} | ||
| 59 | +cd $base_dir/${moduleName} | ||
| 60 | +mvn clean install -Dmaven.test.skip=true -P$profile | ||
| 61 | +oriName=exp-${moduleName}-${version}_${profile}.war.original | ||
| 62 | +tarName=exp-${moduleName}-${version}_${profile}.war | ||
| 63 | +cp target/${oriName} $base_dir && mv $base_dir/${oriName} $base_dir/${tarName} | ||
| 64 | +echo '######## 打包完成目录: '$base_dir/${tarName} | ||
| 65 | + | ||
| 66 | +moduleName='task-schedule' | ||
| 67 | +version='1.2.9' | ||
| 68 | +echo '######## 打包模块: '${moduleName} | ||
| 69 | +cd $base_dir/${moduleName} | ||
| 70 | +mvn clean install -Dmaven.test.skip=true -P$profile | ||
| 71 | +oriName=exp-${moduleName}-${version}_${profile}.war.original | ||
| 72 | +tarName=exp-${moduleName}-${version}_${profile}.war | ||
| 73 | +cp target/${oriName} $base_dir && mv $base_dir/${oriName} $base_dir/${tarName} | ||
| 74 | +echo '######## 打包完成目录: '$base_dir/${tarName} | ||
| 75 | + | ||
| 76 | +moduleName='config-center' | ||
| 77 | +version='1.2.9' | ||
| 78 | +echo '######## 打包模块: '${moduleName} | ||
| 79 | +cd $base_dir/${moduleName} | ||
| 80 | +mvn clean install -Dmaven.test.skip=true -P$profile | ||
| 81 | +oriName=exp-${moduleName}-${version}_${profile}.war.original | ||
| 82 | +tarName=exp-${moduleName}-${version}_${profile}.war | ||
| 83 | +cp target/${oriName} $base_dir && mv $base_dir/${oriName} $base_dir/${tarName} | ||
| 84 | +echo '######## 打包完成目录: '$base_dir/${tarName} | ||
| 85 | + | ||
| 86 | +echo install finished! | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -8,5 +8,275 @@ | ... | @@ -8,5 +8,275 @@ |
| 8 | <artifactId>base-starter</artifactId> | 8 | <artifactId>base-starter</artifactId> |
| 9 | <version>1.0.0</version> | 9 | <version>1.0.0</version> |
| 10 | 10 | ||
| 11 | + <parent> | ||
| 12 | + <groupId>org.springframework.boot</groupId> | ||
| 13 | + <artifactId>spring-boot-starter-parent</artifactId> | ||
| 14 | + <version>2.2.5.RELEASE</version> | ||
| 15 | + <relativePath/> <!-- lookup parent from repository --> | ||
| 16 | + </parent> | ||
| 11 | 17 | ||
| 18 | + <properties> | ||
| 19 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| 20 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
| 21 | + <java.version>1.8</java.version> | ||
| 22 | + <poi.version>3.17</poi.version> | ||
| 23 | + <javax-transaction.version>1.3</javax-transaction.version> | ||
| 24 | + <jackson.version>2.12.2</jackson.version> | ||
| 25 | + <maven.compiler.source>1.8</maven.compiler.source> | ||
| 26 | + <maven.compiler.target>1.8</maven.compiler.target> | ||
| 27 | + </properties> | ||
| 28 | + | ||
| 29 | + <dependencies> | ||
| 30 | + <dependency> | ||
| 31 | + <groupId>org.springframework.boot</groupId> | ||
| 32 | + <artifactId>spring-boot-starter</artifactId> | ||
| 33 | + <exclusions> | ||
| 34 | + <exclusion> | ||
| 35 | + <groupId>org.slf4j</groupId> | ||
| 36 | + <artifactId>jcl-over-slf4j</artifactId> | ||
| 37 | + </exclusion> | ||
| 38 | + <exclusion> | ||
| 39 | + <groupId>org.springframework.boot</groupId> | ||
| 40 | + <artifactId>spring-boot-starter-json</artifactId> | ||
| 41 | + </exclusion> | ||
| 42 | + <exclusion> | ||
| 43 | + <groupId>org.yaml</groupId> | ||
| 44 | + <artifactId>snakeyaml</artifactId> | ||
| 45 | + </exclusion> | ||
| 46 | + <exclusion> | ||
| 47 | + <groupId>org.springframework.boot</groupId> | ||
| 48 | + <artifactId>spring-boot-starter-logging</artifactId> | ||
| 49 | + </exclusion> | ||
| 50 | + </exclusions> | ||
| 51 | + </dependency> | ||
| 52 | + | ||
| 53 | + <dependency> | ||
| 54 | + <groupId>org.springframework.boot</groupId> | ||
| 55 | + <artifactId>spring-boot-starter-web</artifactId> | ||
| 56 | + <exclusions> | ||
| 57 | + <exclusion> | ||
| 58 | + <groupId>org.springframework.boot</groupId> | ||
| 59 | + <artifactId>spring-boot-starter-logging</artifactId> | ||
| 60 | + </exclusion> | ||
| 61 | + <exclusion> | ||
| 62 | + <groupId>org.springframework.boot</groupId> | ||
| 63 | + <artifactId>spring-boot-starter-tomcat</artifactId> | ||
| 64 | + </exclusion> | ||
| 65 | + <exclusion> | ||
| 66 | + <groupId>org.hibernate.validator</groupId> | ||
| 67 | + <artifactId>hibernate-validator</artifactId> | ||
| 68 | + </exclusion> | ||
| 69 | + </exclusions> | ||
| 70 | + </dependency> | ||
| 71 | + | ||
| 72 | + <dependency> | ||
| 73 | + <groupId>org.springframework.boot</groupId> | ||
| 74 | + <artifactId>spring-boot-starter-aop</artifactId> | ||
| 75 | + </dependency> | ||
| 76 | + | ||
| 77 | + <dependency> | ||
| 78 | + <groupId>org.mybatis.spring.boot</groupId> | ||
| 79 | + <artifactId>mybatis-spring-boot-starter</artifactId> | ||
| 80 | + <version>2.2.0</version> | ||
| 81 | + </dependency> | ||
| 82 | + | ||
| 83 | + <dependency> | ||
| 84 | + <groupId>javax.servlet</groupId> | ||
| 85 | + <artifactId>javax.servlet-api</artifactId> | ||
| 86 | + <version>4.0.1</version> | ||
| 87 | + </dependency> | ||
| 88 | + | ||
| 89 | + <dependency> | ||
| 90 | + <groupId>org.yaml</groupId> | ||
| 91 | + <artifactId>snakeyaml</artifactId> | ||
| 92 | + <version>1.28</version> | ||
| 93 | + </dependency> | ||
| 94 | + | ||
| 95 | + <dependency > | ||
| 96 | + <groupId >com.sun.mail</groupId > | ||
| 97 | + <artifactId >javax.mail</artifactId > | ||
| 98 | + <version >1.5.0 </version > | ||
| 99 | + </dependency > | ||
| 100 | + | ||
| 101 | + <dependency> | ||
| 102 | + <groupId>org.apache.poi</groupId> | ||
| 103 | + <artifactId>poi-ooxml</artifactId> | ||
| 104 | + <version>3.17</version> | ||
| 105 | + <exclusions> | ||
| 106 | + <exclusion> | ||
| 107 | + <groupId>org.apache.xmlbeans</groupId> | ||
| 108 | + <artifactId>xmlbeans</artifactId> | ||
| 109 | + </exclusion> | ||
| 110 | + </exclusions> | ||
| 111 | + </dependency> | ||
| 112 | + | ||
| 113 | + <dependency> | ||
| 114 | + <groupId>org.apache.xmlbeans</groupId> | ||
| 115 | + <artifactId>xmlbeans</artifactId> | ||
| 116 | + <version>3.1.0</version> | ||
| 117 | + </dependency> | ||
| 118 | + | ||
| 119 | + <dependency> | ||
| 120 | + <groupId>ch.qos.logback</groupId> | ||
| 121 | + <artifactId>logback-classic</artifactId> | ||
| 122 | + <version>1.2.10</version> | ||
| 123 | + <exclusions> | ||
| 124 | + <exclusion> | ||
| 125 | + <groupId>ch.qos.logback</groupId> | ||
| 126 | + <artifactId>logback-core</artifactId> | ||
| 127 | + </exclusion> | ||
| 128 | + <exclusion> | ||
| 129 | + <groupId>org.slf4j</groupId> | ||
| 130 | + <artifactId>slf4j-api</artifactId> | ||
| 131 | + </exclusion> | ||
| 132 | + </exclusions> | ||
| 133 | + </dependency> | ||
| 134 | + <dependency> | ||
| 135 | + <groupId>ch.qos.logback</groupId> | ||
| 136 | + <artifactId>logback-core</artifactId> | ||
| 137 | + <version>1.2.10</version> | ||
| 138 | + </dependency> | ||
| 139 | + | ||
| 140 | + <dependency> | ||
| 141 | + <groupId>org.slf4j</groupId> | ||
| 142 | + <artifactId>slf4j-api</artifactId> | ||
| 143 | + <version>1.7.28</version> | ||
| 144 | + </dependency> | ||
| 145 | + | ||
| 146 | + <dependency> | ||
| 147 | + <groupId>com.google.code.gson</groupId> | ||
| 148 | + <artifactId>gson</artifactId> | ||
| 149 | + <version>2.8.0</version> | ||
| 150 | + </dependency> | ||
| 151 | + | ||
| 152 | + <dependency> | ||
| 153 | + <groupId>org.aspectj</groupId> | ||
| 154 | + <artifactId>aspectjweaver</artifactId> | ||
| 155 | + <version>1.9.6</version> | ||
| 156 | + </dependency> | ||
| 157 | + | ||
| 158 | + <dependency> | ||
| 159 | + <groupId>commons-fileupload</groupId> | ||
| 160 | + <artifactId>commons-fileupload</artifactId> | ||
| 161 | + <version>1.3.3</version> | ||
| 162 | + <exclusions> | ||
| 163 | + <exclusion> | ||
| 164 | + <groupId>commons-io</groupId> | ||
| 165 | + <artifactId>commons-io</artifactId> | ||
| 166 | + </exclusion> | ||
| 167 | + </exclusions> | ||
| 168 | + </dependency> | ||
| 169 | + | ||
| 170 | + <dependency> | ||
| 171 | + <groupId>commons-io</groupId> | ||
| 172 | + <artifactId>commons-io</artifactId> | ||
| 173 | + <version>2.2</version> | ||
| 174 | + </dependency> | ||
| 175 | + | ||
| 176 | + <dependency> | ||
| 177 | + <groupId>org.apache.commons</groupId> | ||
| 178 | + <artifactId>commons-lang3</artifactId> | ||
| 179 | + <version>3.2</version> | ||
| 180 | + </dependency> | ||
| 181 | + | ||
| 182 | + <dependency> | ||
| 183 | + <groupId>org.springframework.security</groupId> | ||
| 184 | + <artifactId>spring-security-core</artifactId> | ||
| 185 | + <version>5.3.8.RELEASE</version> | ||
| 186 | + </dependency> | ||
| 187 | + | ||
| 188 | + <dependency> | ||
| 189 | + <groupId>org.springframework.security</groupId> | ||
| 190 | + <artifactId>spring-security-config</artifactId> | ||
| 191 | + <version>5.3.8.RELEASE</version> | ||
| 192 | + </dependency> | ||
| 193 | + | ||
| 194 | + <dependency> | ||
| 195 | + <groupId>org.springframework.security</groupId> | ||
| 196 | + <artifactId>spring-security-web</artifactId> | ||
| 197 | + <version>5.3.8.RELEASE</version> | ||
| 198 | + </dependency> | ||
| 199 | + | ||
| 200 | + <dependency> | ||
| 201 | + <groupId>io.jsonwebtoken</groupId> | ||
| 202 | + <artifactId>jjwt-api</artifactId> | ||
| 203 | + <version>0.10.6</version> | ||
| 204 | + </dependency> | ||
| 205 | + | ||
| 206 | + <dependency> | ||
| 207 | + <groupId>io.jsonwebtoken</groupId> | ||
| 208 | + <artifactId>jjwt-impl</artifactId> | ||
| 209 | + <version>0.10.6</version> | ||
| 210 | + </dependency> | ||
| 211 | + | ||
| 212 | + <dependency> | ||
| 213 | + <groupId>io.jsonwebtoken</groupId> | ||
| 214 | + <artifactId>jjwt-jackson</artifactId> | ||
| 215 | + <version>0.10.6</version> | ||
| 216 | + </dependency> | ||
| 217 | + | ||
| 218 | + <dependency> | ||
| 219 | + <groupId>junit</groupId> | ||
| 220 | + <artifactId>junit</artifactId> | ||
| 221 | + <scope>provided</scope> | ||
| 222 | + </dependency> | ||
| 223 | + | ||
| 224 | + <dependency> | ||
| 225 | + <groupId>org.apache.httpcomponents</groupId> | ||
| 226 | + <artifactId>httpclient</artifactId> | ||
| 227 | + <version>4.5.5</version> | ||
| 228 | + </dependency> | ||
| 229 | + | ||
| 230 | + <dependency> | ||
| 231 | + <groupId>io.springfox</groupId> | ||
| 232 | + <artifactId>springfox-swagger-ui</artifactId> | ||
| 233 | + <version>2.9.2</version> | ||
| 234 | + </dependency> | ||
| 235 | + | ||
| 236 | + <dependency> | ||
| 237 | + <groupId>io.springfox</groupId> | ||
| 238 | + <artifactId>springfox-swagger2</artifactId> | ||
| 239 | + <version>2.9.2</version> | ||
| 240 | + </dependency> | ||
| 241 | + | ||
| 242 | + <dependency> | ||
| 243 | + <groupId>org.mybatis.spring.boot</groupId> | ||
| 244 | + <artifactId>mybatis-spring-boot-starter</artifactId> | ||
| 245 | + <version>1.3.2</version> | ||
| 246 | + </dependency> | ||
| 247 | + <dependency> | ||
| 248 | + <groupId>org.mybatis.generator</groupId> | ||
| 249 | + <artifactId>mybatis-generator-core</artifactId> | ||
| 250 | + <version>1.3.3</version> | ||
| 251 | + <scope>provided</scope> | ||
| 252 | + </dependency> | ||
| 253 | + <dependency> | ||
| 254 | + <groupId>com.oracle.database.jdbc</groupId> | ||
| 255 | + <artifactId>ojdbc8</artifactId> | ||
| 256 | + <version>12.2.0.1</version> | ||
| 257 | + <scope>provided</scope> | ||
| 258 | + </dependency> | ||
| 259 | + <dependency> | ||
| 260 | + <groupId>org.jsoup</groupId> | ||
| 261 | + <artifactId>jsoup</artifactId> | ||
| 262 | + <version>1.14.3</version> | ||
| 263 | + </dependency> | ||
| 264 | + | ||
| 265 | + <dependency> | ||
| 266 | + <groupId>org.dom4j</groupId> | ||
| 267 | + <artifactId>dom4j</artifactId> | ||
| 268 | + <version>2.1.3</version> | ||
| 269 | + </dependency> | ||
| 270 | + <dependency> | ||
| 271 | + <groupId>org.projectlombok</groupId> | ||
| 272 | + <artifactId>lombok</artifactId> | ||
| 273 | + <version>1.18.20</version> | ||
| 274 | + </dependency> | ||
| 275 | + <!--序列化--> | ||
| 276 | + <dependency> | ||
| 277 | + <groupId>com.alibaba</groupId> | ||
| 278 | + <artifactId>fastjson</artifactId> | ||
| 279 | + <version>1.2.72</version> | ||
| 280 | + </dependency> | ||
| 281 | + </dependencies> | ||
| 12 | </project> | 282 | </project> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
server/base-starter/src/main/java/com/fedex/connect/base/autoconfiguration/package-info.java
0 → 100644
| 1 | +package com.fedex.connect.base.autoconfiguration; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.base; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.base; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.base; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.fedex.base.autoconfiguration.AutoConfiguration | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
File mode changed
| ... | @@ -4,64 +4,123 @@ | ... | @@ -4,64 +4,123 @@ |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <modelVersion>4.0.0</modelVersion> | 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | 6 | ||
| 7 | + <parent> | ||
| 8 | + <groupId>org.springframework.boot</groupId> | ||
| 9 | + <artifactId>spring-boot-starter-parent</artifactId> | ||
| 10 | + <version>2.2.5.RELEASE</version> | ||
| 11 | + <relativePath/> | ||
| 12 | + </parent> | ||
| 13 | + | ||
| 7 | <groupId>com.fedex.connect</groupId> | 14 | <groupId>com.fedex.connect</groupId> |
| 8 | <artifactId>biz-customer</artifactId> | 15 | <artifactId>biz-customer</artifactId> |
| 9 | <version>1.0.0</version> | 16 | <version>1.0.0</version> |
| 10 | <packaging>war</packaging> | 17 | <packaging>war</packaging> |
| 11 | 18 | ||
| 12 | - <name>biz-customer Maven Webapp</name> | 19 | + <name>biz-customer</name> |
| 13 | - <!-- FIXME change it to the project's website --> | 20 | + <description>Import Pre Clearance Server project for Spring Boot</description> |
| 14 | - <url>http://www.example.com</url> | ||
| 15 | 21 | ||
| 16 | <properties> | 22 | <properties> |
| 23 | + <java.version>1.8</java.version> | ||
| 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 24 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 18 | - <maven.compiler.source>8</maven.compiler.source> | 25 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 19 | - <maven.compiler.target>8</maven.compiler.target> | 26 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 27 | + <maven.compiler.target>1.8</maven.compiler.target> | ||
| 20 | </properties> | 28 | </properties> |
| 21 | 29 | ||
| 22 | <dependencies> | 30 | <dependencies> |
| 23 | <dependency> | 31 | <dependency> |
| 24 | - <groupId>junit</groupId> | 32 | + <groupId>com.fedex.connect</groupId> |
| 25 | - <artifactId>junit</artifactId> | 33 | + <artifactId>common-dao</artifactId> |
| 26 | - <version>4.13.1</version> | 34 | + <version>1.0.0</version> |
| 27 | - <scope>test</scope> | 35 | + </dependency> |
| 36 | + <dependency> | ||
| 37 | + <groupId>com.fedex.connect</groupId> | ||
| 38 | + <artifactId>base-starter</artifactId> | ||
| 39 | + <version>1.0.0</version> | ||
| 40 | + <scope>${install.scope}</scope> | ||
| 41 | + </dependency> | ||
| 42 | + | ||
| 43 | + <dependency> | ||
| 44 | + <groupId>org.springframework.boot</groupId> | ||
| 45 | + <artifactId>spring-boot-starter-web</artifactId> | ||
| 46 | + <scope>${install.scope}</scope> | ||
| 47 | + </dependency> | ||
| 48 | + <dependency> | ||
| 49 | + <groupId>com.oracle.database.jdbc</groupId> | ||
| 50 | + <artifactId>ojdbc8</artifactId> | ||
| 51 | + <version>12.2.0.1</version> | ||
| 52 | + <scope>${install.scope}</scope> | ||
| 28 | </dependency> | 53 | </dependency> |
| 29 | </dependencies> | 54 | </dependencies> |
| 30 | 55 | ||
| 56 | + <profiles> | ||
| 57 | + <profile> | ||
| 58 | + <id>dev</id> | ||
| 59 | + <properties> | ||
| 60 | + <activatedProperties>dev</activatedProperties> | ||
| 61 | + <install.scope>compile</install.scope> | ||
| 62 | + </properties> | ||
| 63 | + <activation> | ||
| 64 | + <activeByDefault>true</activeByDefault> | ||
| 65 | + </activation> | ||
| 66 | + </profile> | ||
| 67 | + <profile> | ||
| 68 | + <id>test</id> | ||
| 69 | + <properties> | ||
| 70 | + <activatedProperties>test</activatedProperties> | ||
| 71 | + <install.scope>provided</install.scope> | ||
| 72 | + </properties> | ||
| 73 | + </profile> | ||
| 74 | + <profile> | ||
| 75 | + <id>uat</id> | ||
| 76 | + <properties> | ||
| 77 | + <activatedProperties>uat</activatedProperties> | ||
| 78 | + <install.scope>provided</install.scope> | ||
| 79 | + </properties> | ||
| 80 | + </profile> | ||
| 81 | + <profile> | ||
| 82 | + <id>prod</id> | ||
| 83 | + <properties> | ||
| 84 | + <activatedProperties>prod</activatedProperties> | ||
| 85 | + <install.scope>provided</install.scope> | ||
| 86 | + </properties> | ||
| 87 | + </profile> | ||
| 88 | + </profiles> | ||
| 89 | + | ||
| 31 | <build> | 90 | <build> |
| 32 | - <finalName>biz-customer</finalName> | 91 | + <resources> |
| 33 | - <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> | 92 | + <resource> |
| 34 | - <plugins> | 93 | + <directory>src/main/java</directory> |
| 35 | - <plugin> | 94 | + <includes> |
| 36 | - <artifactId>maven-clean-plugin</artifactId> | 95 | + <include>**/*.xml</include> |
| 37 | - <version>3.4.0</version> | 96 | + </includes> |
| 38 | - </plugin> | 97 | + </resource> |
| 39 | - <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> | 98 | + <resource> |
| 40 | - <plugin> | 99 | + <directory>src/main/resources</directory> |
| 41 | - <artifactId>maven-resources-plugin</artifactId> | 100 | + <filtering>true</filtering> |
| 42 | - <version>3.3.1</version> | 101 | + <includes> |
| 43 | - </plugin> | 102 | + <include>application.yml</include> |
| 44 | - <plugin> | 103 | + <include>application-${activatedProperties}.yml</include> |
| 45 | - <artifactId>maven-compiler-plugin</artifactId> | 104 | + </includes> |
| 46 | - <version>3.13.0</version> | 105 | + </resource> |
| 47 | - </plugin> | 106 | + <resource> |
| 48 | - <plugin> | 107 | + <directory>src/main/resources</directory> |
| 49 | - <artifactId>maven-surefire-plugin</artifactId> | 108 | + <includes> |
| 50 | - <version>3.3.0</version> | 109 | + <include>**/*.xml</include> |
| 51 | - </plugin> | 110 | + <include>**/*.properties</include> |
| 52 | - <plugin> | 111 | + <include>**/*.pdf</include> |
| 53 | - <artifactId>maven-war-plugin</artifactId> | 112 | + <include>**/*.ttf</include> |
| 54 | - <version>3.4.0</version> | 113 | + <include>**/*.TTF</include> |
| 55 | - </plugin> | 114 | + </includes> |
| 56 | - <plugin> | 115 | + </resource> |
| 57 | - <artifactId>maven-install-plugin</artifactId> | 116 | + </resources> |
| 58 | - <version>3.1.2</version> | 117 | + |
| 59 | - </plugin> | 118 | + <plugins> |
| 60 | - <plugin> | 119 | + <plugin> |
| 61 | - <artifactId>maven-deploy-plugin</artifactId> | 120 | + <groupId>org.springframework.boot</groupId> |
| 62 | - <version>3.1.2</version> | 121 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 63 | - </plugin> | 122 | + </plugin> |
| 64 | - </plugins> | 123 | + </plugins> |
| 65 | - </pluginManagement> | 124 | + <finalName>${project.artifactId}-${project.version}_${activatedProperties}</finalName> |
| 66 | </build> | 125 | </build> |
| 67 | </project> | 126 | </project> | ... | ... |
| 1 | +package com.fedex.connect.common.customer; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -8,5 +8,91 @@ | ... | @@ -8,5 +8,91 @@ |
| 8 | <artifactId>common-dao</artifactId> | 8 | <artifactId>common-dao</artifactId> |
| 9 | <version>1.0.0</version> | 9 | <version>1.0.0</version> |
| 10 | 10 | ||
| 11 | + <properties> | ||
| 12 | + <java.version>1.8</java.version> | ||
| 13 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| 14 | + </properties> | ||
| 11 | 15 | ||
| 16 | + <dependencies> | ||
| 17 | + <dependency> | ||
| 18 | + <groupId>com.fedex.connect</groupId> | ||
| 19 | + <artifactId>base-starter</artifactId> | ||
| 20 | + <version>1.0.0</version> | ||
| 21 | + </dependency> | ||
| 22 | +<!-- <dependency>--> | ||
| 23 | +<!-- <groupId>com.erry</groupId>--> | ||
| 24 | +<!-- <artifactId>imac-common</artifactId>--> | ||
| 25 | +<!-- <version>0.0.1</version>--> | ||
| 26 | +<!-- </dependency>--> | ||
| 27 | + </dependencies> | ||
| 28 | + | ||
| 29 | + <build> | ||
| 30 | + <resources> | ||
| 31 | + <resource> | ||
| 32 | + <directory>src/main/java</directory> | ||
| 33 | + <includes> | ||
| 34 | + <include>**/*.xml</include> | ||
| 35 | + </includes> | ||
| 36 | + </resource> | ||
| 37 | + </resources> | ||
| 38 | + <plugins> | ||
| 39 | + <plugin> | ||
| 40 | + <groupId>org.apache.maven.plugins</groupId> | ||
| 41 | + <artifactId>maven-compiler-plugin</artifactId> | ||
| 42 | + <version>3.8.1</version> | ||
| 43 | + <configuration> | ||
| 44 | + <source>1.8</source> | ||
| 45 | + <target>1.8</target> | ||
| 46 | + </configuration> | ||
| 47 | + </plugin> | ||
| 48 | + <plugin> | ||
| 49 | + <groupId>org.apache.maven.plugins</groupId> | ||
| 50 | + <artifactId>maven-surefire-plugin</artifactId> | ||
| 51 | + <version>2.8</version> | ||
| 52 | + <configuration> | ||
| 53 | + <skipTests>true</skipTests> | ||
| 54 | + </configuration> | ||
| 55 | + </plugin> | ||
| 56 | + | ||
| 57 | +<!-- <plugin>--> | ||
| 58 | +<!-- <groupId>org.mybatis.generator</groupId>--> | ||
| 59 | +<!-- <artifactId>mybatis-generator-maven-plugin</artifactId>--> | ||
| 60 | +<!-- <version>1.3.7</version>--> | ||
| 61 | +<!-- <configuration>--> | ||
| 62 | +<!-- <verbose>true</verbose>--> | ||
| 63 | +<!-- <overwrite>true</overwrite>--> | ||
| 64 | +<!-- <configurationFile>src/main/resources/generatorConfig.xml</configurationFile>--> | ||
| 65 | +<!-- </configuration>--> | ||
| 66 | +<!-- <dependencies>--> | ||
| 67 | +<!-- <dependency>--> | ||
| 68 | +<!-- <groupId>com.oracle.database.jdbc</groupId>--> | ||
| 69 | +<!-- <artifactId>ojdbc8</artifactId>--> | ||
| 70 | +<!-- <version>12.2.0.1</version>--> | ||
| 71 | +<!-- </dependency>--> | ||
| 72 | +<!-- <dependency>--> | ||
| 73 | +<!-- <groupId>com.erry</groupId>--> | ||
| 74 | +<!-- <artifactId>imac-common</artifactId>--> | ||
| 75 | +<!-- <version>0.0.1-SNAPSHOT</version>--> | ||
| 76 | +<!-- </dependency>--> | ||
| 77 | +<!-- </dependencies>--> | ||
| 78 | +<!-- </plugin>--> | ||
| 79 | + | ||
| 80 | +<!-- <plugin>--> | ||
| 81 | +<!-- <groupId>org.apache.maven.plugins</groupId>--> | ||
| 82 | +<!-- <artifactId>maven-javadoc-plugin</artifactId>--> | ||
| 83 | +<!-- <version>2.10.2</version>--> | ||
| 84 | +<!-- <configuration>--> | ||
| 85 | +<!-- <aggregate>true</aggregate>--> | ||
| 86 | +<!-- </configuration>--> | ||
| 87 | +<!-- <executions>--> | ||
| 88 | +<!-- <execution>--> | ||
| 89 | +<!-- <id>attach-javadocs</id>--> | ||
| 90 | +<!-- <goals>--> | ||
| 91 | +<!-- <goal>jar</goal>--> | ||
| 92 | +<!-- </goals>--> | ||
| 93 | +<!-- </execution>--> | ||
| 94 | +<!-- </executions>--> | ||
| 95 | +<!-- </plugin>--> | ||
| 96 | + </plugins> | ||
| 97 | + </build> | ||
| 12 | </project> | 98 | </project> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
server/common-dao/readme.txt
0 → 100644
| 1 | +打包说明: | ||
| 2 | + 右键pom.xml-》打开于-》终端 | ||
| 3 | + | ||
| 4 | + 编译完成后。执行mvn_deploy_jar.bat 命令 | ||
| 5 | + (如果设置->工具->终端-》shell路径设置的为cmd.exe可用在IDEA终端里面使用。如果为GIT自行到所在目录双击运行), | ||
| 6 | + 将dao上传至nexus。 | ||
| 7 | + 如果上传失败,可能是重复上传,解决办法参考:https://www.cnblogs.com/fengpingfan/p/5197608.html | ||
| 8 | + | ||
| 9 | +项目说明: | ||
| 10 | + dao中文件根据数据库生成,如果数据库有修改字段或属性类型,请使用 MyBatis Generator逆向工程插件重新调整配置重新生成。 | ||
| 11 | + 一般生成的XML可能存在重复,建议删除原来,在重新生成。生成文件会提示ID,和row错误,可以忽略。 | ||
| 12 | + 创建项目生成的其他文件参考:IDEA构建maven项目生成的文件详解 | ||
| 13 | + | ||
| 14 | +调用对象接口: | ||
| 15 | + 引用dao包,可用直接访问下面文件夹中的接口对象。调用方法。 | ||
| 16 | + MyBatis逆向工程可以自动生成。 | ||
| 17 | + src/main/java/com/fedex/export/repository/dao | ||
| 18 | + | ||
| 19 | +实体对象和Example工具类: | ||
| 20 | + MyBatis逆向工程可以自动生成。 | ||
| 21 | + src/main/java/com/fedex/export/repository/entity | ||
| 22 | + | ||
| 23 | + Example工具类说明: | ||
| 24 | + MyBatis逆向工程可以自动生成。 | ||
| 25 | + example是Mybatis数据层框架中的一个工具,可以帮我们完成sql语句中where条件句的书写,相当于where后面的部分,我们可以根据不同的条件来查询和操作数据库,简化书写sql的过程。 | ||
| 26 | + 有兴趣了解搜索:Mybatis中Example的用法 | ||
| 27 | + | ||
| 28 | + mapper.xml文件: | ||
| 29 | + src/main/java/com/fedex/export/repository/mapper | ||
| 30 | + MyBatis逆向工程可以自动生成。SQL 映射文件 | ||
| 31 | + 有兴趣了解搜索:Mybatis中Mapper.xml详解 | ||
| 32 | + | ||
| 33 | +common-dao/src/main/resources/generatorConfig.xml: | ||
| 34 | + MyBatis Generator插件配置文件。名称不可改变。用于根据数据库生成代码的插件 | ||
| 35 | + 有兴趣了解参考搜索:MyBatis Generator使用方法 | ||
| 36 | + | ||
| 37 | +逆向生成使用简述: | ||
| 38 | + pom.xml中引入插件。在Maven窗口中,模块下的插件中找到mybatis-generator打开。 | ||
| 39 | + 选择第一个mybatis-generator:generate。 | ||
| 40 | + 右键运行。会根据配置文件生成 | ||
| 41 | + BUILD SUCCESS 即为成功 | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.dao.base; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.dao.biz; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.dao.log; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.dao; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.dao.sys; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.mapper.base; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.mapper.biz; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.mapper.log; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.mapper; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.mapper.sys; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.model.base; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.model.biz; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.model.log; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.model; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.common.model.sys; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -40,7 +40,7 @@ | ... | @@ -40,7 +40,7 @@ |
| 40 | sys:系统 系统相关表,例如kafka表 | 40 | sys:系统 系统相关表,例如kafka表 |
| 41 | log: 日志 日志记录表,例如邮件发送日志表 | 41 | log: 日志 日志记录表,例如邮件发送日志表 |
| 42 | --> | 42 | --> |
| 43 | - <javaModelGenerator targetPackage="com.fedex.export.repository.entity.sys" targetProject="src/main/java"> | 43 | + <javaModelGenerator targetPackage="com.fedex.connect.common.model.sys" targetProject="src/main/java"> |
| 44 | <!---enableSubPackages:如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性--> | 44 | <!---enableSubPackages:如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性--> |
| 45 | <property name="enableSubPackages" value="false"/> | 45 | <property name="enableSubPackages" value="false"/> |
| 46 | <!--该属性只对MyBatis3有效,如果true就会使用构造方法入参,如果false就会使用setter方式。默认为false--> | 46 | <!--该属性只对MyBatis3有效,如果true就会使用构造方法入参,如果false就会使用setter方式。默认为false--> |
| ... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
| 52 | </javaModelGenerator> | 52 | </javaModelGenerator> |
| 53 | 53 | ||
| 54 | <!-- 生成映射文件*.xml的位置--> | 54 | <!-- 生成映射文件*.xml的位置--> |
| 55 | - <sqlMapGenerator targetPackage="mapper.sys" targetProject="src/main/java/com/fedex/export/repository"> | 55 | + <sqlMapGenerator targetPackage="mapper.sys" targetProject="src/main/java/com/fedex/connect/common"> |
| 56 | <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false--> | 56 | <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false--> |
| 57 | <property name="enableSubPackages" value="false"/> | 57 | <property name="enableSubPackages" value="false"/> |
| 58 | </sqlMapGenerator> | 58 | </sqlMapGenerator> | ... | ... |
| 1 | +package com.fedex.connect.common.dao; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -8,5 +8,17 @@ | ... | @@ -8,5 +8,17 @@ |
| 8 | <artifactId>common-dependencies</artifactId> | 8 | <artifactId>common-dependencies</artifactId> |
| 9 | <version>1.0.0</version> | 9 | <version>1.0.0</version> |
| 10 | 10 | ||
| 11 | - | 11 | + <parent> |
| 12 | + <groupId>org.springframework.boot</groupId> | ||
| 13 | + <artifactId>spring-boot-starter-parent</artifactId> | ||
| 14 | + <version>2.2.5.RELEASE</version> | ||
| 15 | + <relativePath/> <!-- lookup parent from repository --> | ||
| 16 | + </parent> | ||
| 17 | + <dependencies> | ||
| 18 | + <dependency> | ||
| 19 | + <groupId>com.fedex.connect</groupId> | ||
| 20 | + <artifactId>common-dao</artifactId> | ||
| 21 | + <version>1.0.0</version> | ||
| 22 | + </dependency> | ||
| 23 | + </dependencies> | ||
| 12 | </project> | 24 | </project> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
server/common-dependencies/src/main/java/com/fedex/connect/common/dependencies/package-info.java
0 → 100644
| 1 | +package com.fedex.connect.common.dependencies; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
server/common-dependencies/src/test/java/com/fedex/connect/common/dependencies/package-info.java
0 → 100644
| 1 | +package com.fedex.connect.common.dependencies; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -9,59 +9,120 @@ | ... | @@ -9,59 +9,120 @@ |
| 9 | <version>1.0.0</version> | 9 | <version>1.0.0</version> |
| 10 | <packaging>war</packaging> | 10 | <packaging>war</packaging> |
| 11 | 11 | ||
| 12 | - <name>kafka-cndc-server Maven Webapp</name> | 12 | + <name>kafka-cndc-server</name> |
| 13 | - <!-- FIXME change it to the project's website --> | 13 | + <description>Import Pre Clearance Server project for Spring Boot</description> |
| 14 | - <url>http://www.example.com</url> | ||
| 15 | 14 | ||
| 16 | <properties> | 15 | <properties> |
| 16 | + <java.version>1.8</java.version> | ||
| 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 18 | - <maven.compiler.source>8</maven.compiler.source> | 18 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 19 | - <maven.compiler.target>8</maven.compiler.target> | 19 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 20 | + <maven.compiler.target>1.8</maven.compiler.target> | ||
| 20 | </properties> | 21 | </properties> |
| 21 | 22 | ||
| 22 | <dependencies> | 23 | <dependencies> |
| 23 | <dependency> | 24 | <dependency> |
| 24 | - <groupId>junit</groupId> | 25 | + <groupId>com.fedex.connect</groupId> |
| 25 | - <artifactId>junit</artifactId> | 26 | + <artifactId>common-dao</artifactId> |
| 26 | - <version>4.13.1</version> | 27 | + <version>1.0.0</version> |
| 27 | - <scope>test</scope> | 28 | + </dependency> |
| 29 | + <dependency> | ||
| 30 | + <groupId>com.fedex.connect</groupId> | ||
| 31 | + <artifactId>base-starter</artifactId> | ||
| 32 | + <version>1.0.0</version> | ||
| 33 | + <scope>${install.scope}</scope> | ||
| 34 | + </dependency> | ||
| 35 | + <dependency> | ||
| 36 | + <groupId>org.springframework.boot</groupId> | ||
| 37 | + <artifactId>spring-boot-starter-web</artifactId> | ||
| 38 | + <scope>${install.scope}</scope> | ||
| 39 | + </dependency> | ||
| 40 | + <dependency> | ||
| 41 | + <groupId>com.oracle.database.jdbc</groupId> | ||
| 42 | + <artifactId>ojdbc8</artifactId> | ||
| 43 | + <version>12.2.0.1</version> | ||
| 44 | + <scope>${install.scope}</scope> | ||
| 45 | + </dependency> | ||
| 46 | + <dependency> | ||
| 47 | + <groupId>org.apache.kafka</groupId> | ||
| 48 | + <artifactId>kafka-clients</artifactId> | ||
| 49 | + <version>2.8.0</version> | ||
| 50 | + <exclusions> | ||
| 51 | + <exclusion> | ||
| 52 | + <groupId>org.slf4j</groupId> | ||
| 53 | + <artifactId>slf4j-api</artifactId> | ||
| 54 | + </exclusion> | ||
| 55 | + </exclusions> | ||
| 28 | </dependency> | 56 | </dependency> |
| 29 | </dependencies> | 57 | </dependencies> |
| 58 | + <profiles> | ||
| 59 | + <profile> | ||
| 60 | + <id>dev</id> | ||
| 61 | + <properties> | ||
| 62 | + <activatedProperties>dev</activatedProperties> | ||
| 63 | + <install.scope>compile</install.scope> | ||
| 64 | + </properties> | ||
| 65 | + <activation> | ||
| 66 | + <activeByDefault>true</activeByDefault> | ||
| 67 | + </activation> | ||
| 68 | + </profile> | ||
| 69 | + <profile> | ||
| 70 | + <id>test</id> | ||
| 71 | + <properties> | ||
| 72 | + <activatedProperties>test</activatedProperties> | ||
| 73 | + <install.scope>provided</install.scope> | ||
| 74 | + </properties> | ||
| 75 | + </profile> | ||
| 76 | + <profile> | ||
| 77 | + <id>uat</id> | ||
| 78 | + <properties> | ||
| 79 | + <activatedProperties>uat</activatedProperties> | ||
| 80 | + <install.scope>provided</install.scope> | ||
| 81 | + </properties> | ||
| 82 | + </profile> | ||
| 83 | + <profile> | ||
| 84 | + <id>prod</id> | ||
| 85 | + <properties> | ||
| 86 | + <activatedProperties>prod</activatedProperties> | ||
| 87 | + <install.scope>provided</install.scope> | ||
| 88 | + </properties> | ||
| 89 | + </profile> | ||
| 90 | + </profiles> | ||
| 30 | 91 | ||
| 31 | <build> | 92 | <build> |
| 32 | - <finalName>kafka-cndc-server</finalName> | 93 | + <resources> |
| 33 | - <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> | 94 | + <resource> |
| 34 | - <plugins> | 95 | + <directory>src/main/java</directory> |
| 35 | - <plugin> | 96 | + <includes> |
| 36 | - <artifactId>maven-clean-plugin</artifactId> | 97 | + <include>**/*.xml</include> |
| 37 | - <version>3.4.0</version> | 98 | + </includes> |
| 38 | - </plugin> | 99 | + </resource> |
| 39 | - <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> | 100 | + <resource> |
| 40 | - <plugin> | 101 | + <directory>src/main/resources</directory> |
| 41 | - <artifactId>maven-resources-plugin</artifactId> | 102 | + <filtering>true</filtering> |
| 42 | - <version>3.3.1</version> | 103 | + <includes> |
| 43 | - </plugin> | 104 | + <include>application.yml</include> |
| 44 | - <plugin> | 105 | + <include>application-${activatedProperties}.yml</include> |
| 45 | - <artifactId>maven-compiler-plugin</artifactId> | 106 | + </includes> |
| 46 | - <version>3.13.0</version> | 107 | + </resource> |
| 47 | - </plugin> | 108 | + <resource> |
| 48 | - <plugin> | 109 | + <directory>src/main/resources</directory> |
| 49 | - <artifactId>maven-surefire-plugin</artifactId> | 110 | + <includes> |
| 50 | - <version>3.3.0</version> | 111 | + <include>**/*.xml</include> |
| 51 | - </plugin> | 112 | + <include>**/*.properties</include> |
| 52 | - <plugin> | 113 | + <include>**/*.pdf</include> |
| 53 | - <artifactId>maven-war-plugin</artifactId> | 114 | + <include>**/*.ttf</include> |
| 54 | - <version>3.4.0</version> | 115 | + <include>**/*.TTF</include> |
| 55 | - </plugin> | 116 | + </includes> |
| 56 | - <plugin> | 117 | + </resource> |
| 57 | - <artifactId>maven-install-plugin</artifactId> | 118 | + </resources> |
| 58 | - <version>3.1.2</version> | 119 | + |
| 59 | - </plugin> | 120 | + <plugins> |
| 60 | - <plugin> | 121 | + <plugin> |
| 61 | - <artifactId>maven-deploy-plugin</artifactId> | 122 | + <groupId>org.springframework.boot</groupId> |
| 62 | - <version>3.1.2</version> | 123 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 63 | - </plugin> | 124 | + </plugin> |
| 64 | - </plugins> | 125 | + </plugins> |
| 65 | - </pluginManagement> | 126 | + <finalName>${project.artifactId}-${project.version}_${activatedProperties}</finalName> |
| 66 | </build> | 127 | </build> |
| 67 | </project> | 128 | </project> | ... | ... |
| 1 | +package com.fedex.connect.kafka; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.fedex.connect.kafka; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -16,59 +16,35 @@ | ... | @@ -16,59 +16,35 @@ |
| 16 | <version>1.0.0</version> | 16 | <version>1.0.0</version> |
| 17 | <packaging>war</packaging> | 17 | <packaging>war</packaging> |
| 18 | 18 | ||
| 19 | - <name>lib4iClearConnect Maven Webapp</name> | ||
| 20 | - <!-- FIXME change it to the project's website --> | ||
| 21 | - <url>http://www.example.com</url> | ||
| 22 | - | ||
| 23 | - <properties> | ||
| 24 | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| 25 | - <maven.compiler.source>8</maven.compiler.source> | ||
| 26 | - <maven.compiler.target>8</maven.compiler.target> | ||
| 27 | - </properties> | ||
| 28 | - | ||
| 29 | <dependencies> | 19 | <dependencies> |
| 30 | <dependency> | 20 | <dependency> |
| 31 | - <groupId>junit</groupId> | 21 | + <groupId>com.fedex.connect</groupId> |
| 32 | - <artifactId>junit</artifactId> | 22 | + <artifactId>base-starter</artifactId> |
| 33 | - <version>4.13.1</version> | 23 | + <version>1.0.0</version> |
| 34 | - <scope>test</scope> | ||
| 35 | </dependency> | 24 | </dependency> |
| 36 | </dependencies> | 25 | </dependencies> |
| 37 | 26 | ||
| 38 | <build> | 27 | <build> |
| 39 | - <finalName>lib4iClearConnect</finalName> | 28 | + <plugins> |
| 40 | - <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> | 29 | + <plugin> |
| 41 | - <plugins> | 30 | + <artifactId>maven-war-plugin</artifactId> |
| 42 | - <plugin> | 31 | + <configuration> |
| 43 | - <artifactId>maven-clean-plugin</artifactId> | 32 | + <archive> |
| 44 | - <version>3.4.0</version> | 33 | + <addMavenDescriptor>false</addMavenDescriptor> |
| 45 | - </plugin> | 34 | + <manifest> |
| 46 | - <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> | 35 | + <addDefaultEntries>false</addDefaultEntries> |
| 47 | - <plugin> | 36 | + <addDefaultImplementationEntries>false</addDefaultImplementationEntries> |
| 48 | - <artifactId>maven-resources-plugin</artifactId> | 37 | + <addDefaultSpecificationEntries>false</addDefaultSpecificationEntries> |
| 49 | - <version>3.3.1</version> | 38 | + </manifest> |
| 50 | - </plugin> | 39 | + <manifestEntries> |
| 51 | - <plugin> | 40 | + <Extension-Name>${project.name}</Extension-Name> |
| 52 | - <artifactId>maven-compiler-plugin</artifactId> | 41 | + <Specification-Version>${project.version}</Specification-Version> |
| 53 | - <version>3.13.0</version> | 42 | + <Implementation-Version>${project.version}</Implementation-Version> |
| 54 | - </plugin> | 43 | + </manifestEntries> |
| 55 | - <plugin> | 44 | + </archive> |
| 56 | - <artifactId>maven-surefire-plugin</artifactId> | 45 | + </configuration> |
| 57 | - <version>3.3.0</version> | 46 | + </plugin> |
| 58 | - </plugin> | 47 | + </plugins> |
| 59 | - <plugin> | 48 | + <finalName>${project.artifactId}-${project.version}</finalName> |
| 60 | - <artifactId>maven-war-plugin</artifactId> | ||
| 61 | - <version>3.4.0</version> | ||
| 62 | - </plugin> | ||
| 63 | - <plugin> | ||
| 64 | - <artifactId>maven-install-plugin</artifactId> | ||
| 65 | - <version>3.1.2</version> | ||
| 66 | - </plugin> | ||
| 67 | - <plugin> | ||
| 68 | - <artifactId>maven-deploy-plugin</artifactId> | ||
| 69 | - <version>3.1.2</version> | ||
| 70 | - </plugin> | ||
| 71 | - </plugins> | ||
| 72 | - </pluginManagement> | ||
| 73 | </build> | 49 | </build> |
| 74 | </project> | 50 | </project> | ... | ... |
| ... | @@ -9,59 +9,111 @@ | ... | @@ -9,59 +9,111 @@ |
| 9 | <version>1.0.0</version> | 9 | <version>1.0.0</version> |
| 10 | <packaging>war</packaging> | 10 | <packaging>war</packaging> |
| 11 | 11 | ||
| 12 | - <name>manager-server Maven Webapp</name> | 12 | + <name>manager-server</name> |
| 13 | - <!-- FIXME change it to the project's website --> | 13 | + <description>Import Pre Clearance Server project for Spring Boot</description> |
| 14 | - <url>http://www.example.com</url> | ||
| 15 | 14 | ||
| 16 | <properties> | 15 | <properties> |
| 16 | + <java.version>1.8</java.version> | ||
| 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 18 | - <maven.compiler.source>8</maven.compiler.source> | 18 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 19 | - <maven.compiler.target>8</maven.compiler.target> | 19 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 20 | + <maven.compiler.target>1.8</maven.compiler.target> | ||
| 20 | </properties> | 21 | </properties> |
| 21 | 22 | ||
| 22 | <dependencies> | 23 | <dependencies> |
| 23 | <dependency> | 24 | <dependency> |
| 24 | - <groupId>junit</groupId> | 25 | + <groupId>com.fedex.connect</groupId> |
| 25 | - <artifactId>junit</artifactId> | 26 | + <artifactId>common-dao</artifactId> |
| 26 | - <version>4.13.1</version> | 27 | + <version>1.0.0</version> |
| 27 | - <scope>test</scope> | 28 | + </dependency> |
| 29 | + <dependency> | ||
| 30 | + <groupId>com.fedex.connect</groupId> | ||
| 31 | + <artifactId>base-starter</artifactId> | ||
| 32 | + <version>1.0.0</version> | ||
| 33 | + <scope>${install.scope}</scope> | ||
| 34 | + </dependency> | ||
| 35 | + | ||
| 36 | + <dependency> | ||
| 37 | + <groupId>org.springframework.boot</groupId> | ||
| 38 | + <artifactId>spring-boot-starter-web</artifactId> | ||
| 39 | + <scope>${install.scope}</scope> | ||
| 40 | + </dependency> | ||
| 41 | + <dependency> | ||
| 42 | + <groupId>com.oracle.database.jdbc</groupId> | ||
| 43 | + <artifactId>ojdbc8</artifactId> | ||
| 44 | + <version>12.2.0.1</version> | ||
| 45 | + <scope>${install.scope}</scope> | ||
| 28 | </dependency> | 46 | </dependency> |
| 29 | </dependencies> | 47 | </dependencies> |
| 30 | 48 | ||
| 49 | + <profiles> | ||
| 50 | + <profile> | ||
| 51 | + <id>dev</id> | ||
| 52 | + <properties> | ||
| 53 | + <activatedProperties>dev</activatedProperties> | ||
| 54 | + <install.scope>compile</install.scope> | ||
| 55 | + </properties> | ||
| 56 | + <activation> | ||
| 57 | + <activeByDefault>true</activeByDefault> | ||
| 58 | + </activation> | ||
| 59 | + </profile> | ||
| 60 | + <profile> | ||
| 61 | + <id>test</id> | ||
| 62 | + <properties> | ||
| 63 | + <activatedProperties>test</activatedProperties> | ||
| 64 | + <install.scope>provided</install.scope> | ||
| 65 | + </properties> | ||
| 66 | + </profile> | ||
| 67 | + <profile> | ||
| 68 | + <id>uat</id> | ||
| 69 | + <properties> | ||
| 70 | + <activatedProperties>uat</activatedProperties> | ||
| 71 | + <install.scope>provided</install.scope> | ||
| 72 | + </properties> | ||
| 73 | + </profile> | ||
| 74 | + <profile> | ||
| 75 | + <id>prod</id> | ||
| 76 | + <properties> | ||
| 77 | + <activatedProperties>prod</activatedProperties> | ||
| 78 | + <install.scope>provided</install.scope> | ||
| 79 | + </properties> | ||
| 80 | + </profile> | ||
| 81 | + </profiles> | ||
| 82 | + | ||
| 31 | <build> | 83 | <build> |
| 32 | - <finalName>manager-server</finalName> | 84 | + <resources> |
| 33 | - <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> | 85 | + <resource> |
| 34 | - <plugins> | 86 | + <directory>src/main/java</directory> |
| 35 | - <plugin> | 87 | + <includes> |
| 36 | - <artifactId>maven-clean-plugin</artifactId> | 88 | + <include>**/*.xml</include> |
| 37 | - <version>3.4.0</version> | 89 | + </includes> |
| 38 | - </plugin> | 90 | + </resource> |
| 39 | - <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> | 91 | + <resource> |
| 40 | - <plugin> | 92 | + <directory>src/main/resources</directory> |
| 41 | - <artifactId>maven-resources-plugin</artifactId> | 93 | + <filtering>true</filtering> |
| 42 | - <version>3.3.1</version> | 94 | + <includes> |
| 43 | - </plugin> | 95 | + <include>application.yml</include> |
| 44 | - <plugin> | 96 | + <include>application-${activatedProperties}.yml</include> |
| 45 | - <artifactId>maven-compiler-plugin</artifactId> | 97 | + </includes> |
| 46 | - <version>3.13.0</version> | 98 | + </resource> |
| 47 | - </plugin> | 99 | + <resource> |
| 48 | - <plugin> | 100 | + <directory>src/main/resources</directory> |
| 49 | - <artifactId>maven-surefire-plugin</artifactId> | 101 | + <includes> |
| 50 | - <version>3.3.0</version> | 102 | + <include>**/*.xml</include> |
| 51 | - </plugin> | 103 | + <include>**/*.properties</include> |
| 52 | - <plugin> | 104 | + <include>**/*.pdf</include> |
| 53 | - <artifactId>maven-war-plugin</artifactId> | 105 | + <include>**/*.ttf</include> |
| 54 | - <version>3.4.0</version> | 106 | + <include>**/*.TTF</include> |
| 55 | - </plugin> | 107 | + </includes> |
| 56 | - <plugin> | 108 | + </resource> |
| 57 | - <artifactId>maven-install-plugin</artifactId> | 109 | + </resources> |
| 58 | - <version>3.1.2</version> | 110 | + |
| 59 | - </plugin> | 111 | + <plugins> |
| 60 | - <plugin> | 112 | + <plugin> |
| 61 | - <artifactId>maven-deploy-plugin</artifactId> | 113 | + <groupId>org.springframework.boot</groupId> |
| 62 | - <version>3.1.2</version> | 114 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 63 | - </plugin> | 115 | + </plugin> |
| 64 | - </plugins> | 116 | + </plugins> |
| 65 | - </pluginManagement> | 117 | + <finalName>${project.artifactId}-${project.version}_${activatedProperties}</finalName> |
| 66 | </build> | 118 | </build> |
| 67 | </project> | 119 | </project> | ... | ... |
| ... | @@ -9,59 +9,106 @@ | ... | @@ -9,59 +9,106 @@ |
| 9 | <version>1.0.0</version> | 9 | <version>1.0.0</version> |
| 10 | <packaging>war</packaging> | 10 | <packaging>war</packaging> |
| 11 | 11 | ||
| 12 | - <name>task-schedule Maven Webapp</name> | 12 | + <name>task-schedule</name> |
| 13 | - <!-- FIXME change it to the project's website --> | 13 | + <description>Import Pre Clearance Server project for Spring Boot</description> |
| 14 | - <url>http://www.example.com</url> | ||
| 15 | 14 | ||
| 16 | <properties> | 15 | <properties> |
| 16 | + <java.version>1.8</java.version> | ||
| 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 18 | - <maven.compiler.source>8</maven.compiler.source> | 18 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 19 | - <maven.compiler.target>8</maven.compiler.target> | 19 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 20 | + <maven.compiler.target>1.8</maven.compiler.target> | ||
| 20 | </properties> | 21 | </properties> |
| 21 | 22 | ||
| 22 | <dependencies> | 23 | <dependencies> |
| 23 | <dependency> | 24 | <dependency> |
| 24 | - <groupId>junit</groupId> | 25 | + <groupId>com.fedex.connect</groupId> |
| 25 | - <artifactId>junit</artifactId> | 26 | + <artifactId>common-dao</artifactId> |
| 26 | - <version>4.13.1</version> | 27 | + <version>1.0.0</version> |
| 27 | - <scope>test</scope> | 28 | + </dependency> |
| 29 | + <dependency> | ||
| 30 | + <groupId>com.fedex.connect</groupId> | ||
| 31 | + <artifactId>base-starter</artifactId> | ||
| 32 | + <version>1.0.0</version> | ||
| 33 | + <scope>${install.scope}</scope> | ||
| 34 | + </dependency> | ||
| 35 | + <dependency> | ||
| 36 | + <groupId>org.springframework.boot</groupId> | ||
| 37 | + <artifactId>spring-boot-starter-web</artifactId> | ||
| 38 | + <scope>${install.scope}</scope> | ||
| 39 | + </dependency> | ||
| 40 | + <dependency> | ||
| 41 | + <groupId>com.oracle.database.jdbc</groupId> | ||
| 42 | + <artifactId>ojdbc8</artifactId> | ||
| 43 | + <version>12.2.0.1</version> | ||
| 44 | + <scope>${install.scope}</scope> | ||
| 28 | </dependency> | 45 | </dependency> |
| 29 | </dependencies> | 46 | </dependencies> |
| 30 | 47 | ||
| 48 | + <profiles> | ||
| 49 | + <profile> | ||
| 50 | + <id>dev</id> | ||
| 51 | + <properties> | ||
| 52 | + <activatedProperties>dev</activatedProperties> | ||
| 53 | + <install.scope>compile</install.scope> | ||
| 54 | + </properties> | ||
| 55 | + <activation> | ||
| 56 | + <activeByDefault>true</activeByDefault> | ||
| 57 | + </activation> | ||
| 58 | + </profile> | ||
| 59 | + <profile> | ||
| 60 | + <id>test</id> | ||
| 61 | + <properties> | ||
| 62 | + <activatedProperties>test</activatedProperties> | ||
| 63 | + <install.scope>provided</install.scope> | ||
| 64 | + </properties> | ||
| 65 | + </profile> | ||
| 66 | + <profile> | ||
| 67 | + <id>uat</id> | ||
| 68 | + <properties> | ||
| 69 | + <activatedProperties>uat</activatedProperties> | ||
| 70 | + <install.scope>provided</install.scope> | ||
| 71 | + </properties> | ||
| 72 | + </profile> | ||
| 73 | + <profile> | ||
| 74 | + <id>prod</id> | ||
| 75 | + <properties> | ||
| 76 | + <activatedProperties>prod</activatedProperties> | ||
| 77 | + <install.scope>provided</install.scope> | ||
| 78 | + </properties> | ||
| 79 | + </profile> | ||
| 80 | + </profiles> | ||
| 81 | + | ||
| 31 | <build> | 82 | <build> |
| 32 | - <finalName>task-schedule</finalName> | 83 | + <plugins> |
| 33 | - <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> | 84 | + <plugin> |
| 34 | - <plugins> | 85 | + <groupId>org.springframework.boot</groupId> |
| 35 | - <plugin> | 86 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 36 | - <artifactId>maven-clean-plugin</artifactId> | 87 | + </plugin> |
| 37 | - <version>3.4.0</version> | 88 | + </plugins> |
| 38 | - </plugin> | 89 | + <resources> |
| 39 | - <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> | 90 | + <resource> |
| 40 | - <plugin> | 91 | + <directory>src/main/java</directory> |
| 41 | - <artifactId>maven-resources-plugin</artifactId> | 92 | + <includes> |
| 42 | - <version>3.3.1</version> | 93 | + <include>**/*.xml</include> |
| 43 | - </plugin> | 94 | + </includes> |
| 44 | - <plugin> | 95 | + </resource> |
| 45 | - <artifactId>maven-compiler-plugin</artifactId> | 96 | + <resource> |
| 46 | - <version>3.13.0</version> | 97 | + <directory>src/main/resources</directory> |
| 47 | - </plugin> | 98 | + <filtering>true</filtering> |
| 48 | - <plugin> | 99 | + <includes> |
| 49 | - <artifactId>maven-surefire-plugin</artifactId> | 100 | + <include>application.yml</include> |
| 50 | - <version>3.3.0</version> | 101 | + <include>application-${activatedProperties}.yml</include> |
| 51 | - </plugin> | 102 | + </includes> |
| 52 | - <plugin> | 103 | + </resource> |
| 53 | - <artifactId>maven-war-plugin</artifactId> | 104 | + <resource> |
| 54 | - <version>3.4.0</version> | 105 | + <directory>src/main/resources</directory> |
| 55 | - </plugin> | 106 | + <includes> |
| 56 | - <plugin> | 107 | + <include>**/*.xml</include> |
| 57 | - <artifactId>maven-install-plugin</artifactId> | 108 | + <include>**/*.properties</include> |
| 58 | - <version>3.1.2</version> | 109 | + </includes> |
| 59 | - </plugin> | 110 | + </resource> |
| 60 | - <plugin> | 111 | + </resources> |
| 61 | - <artifactId>maven-deploy-plugin</artifactId> | 112 | + <finalName>${project.artifactId}-${project.version}_${activatedProperties}</finalName> |
| 62 | - <version>3.1.2</version> | ||
| 63 | - </plugin> | ||
| 64 | - </plugins> | ||
| 65 | - </pluginManagement> | ||
| 66 | </build> | 113 | </build> |
| 67 | </project> | 114 | </project> | ... | ... |
-
Please register or login to post a comment