Commit 5d24f6c5 by 李传峰

3.x,版本修改处理

parent 52791976
call mvn -Ptest clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U call mvn -Ptest clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -N
@pause @pause
\ No newline at end of file
call mvn -Ptest -Denforcer.skip=true -Dmaven.test.skip=true -U clean install call mvn -Ptest clean install -Denforcer.skip=true -Dmaven.test.skip=true -U
call pause call pause
\ No newline at end of file
call mvn -Ptest clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U
call mvn -Puat clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -Dreversion=3.1.0-RELEASE
call mvn -Pperf clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -Dreversion=3.1.1-SNAPSHOT
call mvn -Pprod clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -Dreversion=3.1.1-RELEASE
call mvn -Ptsrpd clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -Dreversion=3.1.2-RELEASE
@pause
\ No newline at end of file
call mvn -Ptest -Denforcer.skip=true -Dmaven.test.skip=true -U clean install call mvn -Ptest clean install -Denforcer.skip=true -Dmaven.test.skip=true -U
call pause call pause
\ No newline at end of file
...@@ -7,6 +7,7 @@ import com.pcloud.common.core.constant.MQTopicProducer; ...@@ -7,6 +7,7 @@ import com.pcloud.common.core.constant.MQTopicProducer;
import com.pcloud.common.core.mq.MQExchangeConstants; import com.pcloud.common.core.mq.MQExchangeConstants;
import com.pcloud.common.core.mq.MQQueueConstants; import com.pcloud.common.core.mq.MQQueueConstants;
import com.pcloud.common.core.mq.RabbitMQFactory; import com.pcloud.common.core.mq.RabbitMQFactory;
import org.apache.commons.lang3.BooleanUtils;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.core.Binding; import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder; import org.springframework.amqp.core.BindingBuilder;
...@@ -17,7 +18,7 @@ import org.springframework.boot.SpringApplication; ...@@ -17,7 +18,7 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.MultipartConfigFactory; import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
...@@ -55,6 +56,7 @@ public class BookApplication { ...@@ -55,6 +56,7 @@ public class BookApplication {
@Bean @Bean
public Docket createRestApi() {// 创建API基本信息 public Docket createRestApi() {// 创建API基本信息
return new Docket(DocumentationType.SWAGGER_2) return new Docket(DocumentationType.SWAGGER_2)
.enable(BooleanUtils.toBoolean(System.getProperty("swagger.enable", "false")))
.apiInfo(apiInfo()) .apiInfo(apiInfo())
.select() .select()
.apis(RequestHandlerSelectors.basePackage("com.pcloud"))// 扫描该包下的所有需要在Swagger中展示的API,@ApiIgnore注解标注的除外 .apis(RequestHandlerSelectors.basePackage("com.pcloud"))// 扫描该包下的所有需要在Swagger中展示的API,@ApiIgnore注解标注的除外
......
...@@ -12,9 +12,7 @@ ...@@ -12,9 +12,7 @@
<artifactId>pcloud-book-parent</artifactId> <artifactId>pcloud-book-parent</artifactId>
<version>3.1.0-SNAPSHOT</version> <version>3.1.0-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>pcloud-book-parent</name> <name>pcloud-book-parent</name>
<description>invoker project for Spring Boot</description>
<modules> <modules>
<module>pcloud-facade-book</module> <module>pcloud-facade-book</module>
...@@ -30,5 +28,78 @@ ...@@ -30,5 +28,78 @@
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<!-- 全局属性配置 -->
<profiles>
<!-- 开发环境 -->
<profile>
<id>dev</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>dev</env>
<wxgroup-sdk.version>1.1.0-SNAPSHOT</wxgroup-sdk.version>
<coolq-sdk.version>1.0-SNAPSHOT</coolq-sdk.version>
</properties>
</profile>
<!-- 测试环境 -->
<profile>
<id>test</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>test</env>
<maven.test.skip>false</maven.test.skip>
<wxgroup-sdk.version>1.0.0-SNAPSHOT</wxgroup-sdk.version>
<coolq-sdk.version>1.0-SNAPSHOT</coolq-sdk.version>
</properties>
</profile>
<!-- UAT -->
<profile>
<id>uat</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>uat</env>
<wxgroup-sdk.version>1.0.0-RELEASE</wxgroup-sdk.version>
<coolq-sdk.version>1.0-RELEASE</coolq-sdk.version>
</properties>
<!-- 设置默认环境 -->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<!-- 压测环境 -->
<profile>
<id>perf</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>perf</env>
<wxgroup-sdk.version>1.0.0-SNAPSHOT</wxgroup-sdk.version>
<coolq-sdk.version>1.0-SNAPSHOT</coolq-sdk.version>
</properties>
</profile>
<!-- 生产环境 -->
<profile>
<id>prod</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>prod</env>
<wxgroup-sdk.version>1.1.0-SNAPSHOT</wxgroup-sdk.version>
<coolq-sdk.version>1.1.0-RELEASE</coolq-sdk.version>
</properties>
</profile>
<profile>
<id>tsrpd</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>tsrpd</env>
<wxgroup-sdk.version>1.1.0-SNAPSHOT</wxgroup-sdk.version>
<coolq-sdk.version>1.1.0-RELEASE</coolq-sdk.version>
</properties>
</profile>
</profiles>
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment