| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <?xml version="1.0" encoding="UTF-8"?>
- <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.dk.mes</groupId>
- <artifactId>mes-server-oauth</artifactId>
- <version>3.0.0</version>
- <name>mes-server-oauth</name>
- <description>dk mes oauth server</description>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.2.6.RELEASE</version>
- <relativePath/>
- </parent>
- <properties>
- <com.alibaba.druid.version>1.1.21</com.alibaba.druid.version>
- <mybatis-plus-boot-starter.version>3.0-RC3</mybatis-plus-boot-starter.version>
- <spring.shiro.version>1.4.0</spring.shiro.version>
- <oltu.version>1.0.0</oltu.version>
- <servlet-api.version>3.0-alpha-1</servlet-api.version>
- <javax.servlet.jsp-api.version>2.3.1</javax.servlet.jsp-api.version>
- </properties>
- <profiles>
- <profile>
- <id>st</id>
- <properties>
- <environment>st</environment>
- </properties>
- </profile>
- <profile>
- <id>uat</id>
- <properties>
- <environment>uat</environment>
- </properties>
- </profile>
- <profile>
- <id>prod</id>
- <properties>
- <environment>prod</environment>
- </properties>
- </profile>
- <profile>
- <id>test</id>
- <properties>
- <environment>test</environment>
- </properties>
- </profile>
- <profile>
- <id>dev</id>
- <properties>
- <environment>dev</environment>
- </properties>
- <activation>
- <activeByDefault>true</activeByDefault><!-- 默认激活该profile节点-->
- </activation>
- </profile>
- </profiles>
- <dependencies>
- <!-- 公共模块 -->
- <dependency>
- <groupId>com.dk.mes</groupId>
- <artifactId>mes-dependency-common</artifactId>
- <version>3.0.0</version>
- <exclusions>
- <exclusion>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.vaadin.external.google</groupId>
- <artifactId>android-json</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <!-- lombok -->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.47</version>
- </dependency>
- <!-- JWT -->
- <dependency>
- <groupId>com.auth0</groupId>
- <artifactId>java-jwt</artifactId>
- <version>3.4.1</version>
- </dependency>
- <!-- commons-lang3 -->
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- <version>${commons-lang3.version}</version>
- </dependency>
- <!-- shiro 关键包-->
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-spring</artifactId>
- <version>1.4.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-spring-boot-web-starter</artifactId>
- <version>${spring.shiro.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.oltu.oauth2</groupId>
- <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
- <version>${oltu.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.oltu.oauth2</groupId>
- <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
- <version>${oltu.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-ehcache</artifactId>
- <version>${spring.shiro.version}</version>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
- <directory>src/main/java</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- <resource> <!--项目配置文件-->
- <directory>src/main/resources/${environment}</directory>
- <includes>
- <include>**/*</include>
- </includes>
- <!-- 启用过滤器,过滤器会解析需要过滤的的资源文件,将其中的@environment@变量替换成真实的值 -->
- <filtering>true</filtering>
- </resource>
- <resource> <!--日志配置文件-->
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- <!-- 启用过滤器,过滤器会解析需要过滤的的资源文件,将其中的@environment@变量替换成真实的值 -->
- <filtering>true</filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <mainClass>com.dk.oauth.OauthServer</mainClass>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.2.2</version>
- <configuration>
- <serverId>aliyun-acr</serverId>
- <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
- <!--依赖的基础镜像-->
- <baseImage>java</baseImage>
- <forceTags>true</forceTags> <!--覆盖相同标签镜像-->
- <!--imageName必须跟仓库路径一致-->
- <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
- <!-- 指定Dockerfile所在的路径 -->
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- <pushImage>true</pushImage>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <repositories>
- <!-- <repository>-->
- <!-- <!–恒洁maven私服 haip仓库–>-->
- <!-- <id>private</id>-->
- <!-- <name>private</name>-->
- <!-- <url>http://172.17.216.67:8081/repository/haip</url>-->
- <!-- <releases>-->
- <!-- <enabled>true</enabled>-->
- <!-- </releases>-->
- <!-- <snapshots>-->
- <!-- <enabled>true</enabled>-->
- <!-- </snapshots>-->
- <!-- </repository>-->
- <!--maven私服 setting.xml 配置
- <server>
- <id>haip</id>
- <username>haip</username>
- <password>haip2020</password>
- </server>-->
- <!--阿里云仓库-->
- <repository>
- <id>aliyun</id>
- <name>aliyun</name>
- <url>https://maven.aliyun.com/repository/public</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- <!--中央仓库-->
- <repository>
- <id>central</id>
- <name>central</name>
- <url>https://repo1.maven.org/maven2</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- </project>
|