在我pom.xml的定义中,我定义了几个配置文件来在 Oracle WebLogic 下运行我的 Spring Boot 应用程序:
<profile>
<id>wls-1</id>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
</properties>
</profile>
<profile>
<id>wls-2</id>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
</properties>
</profile>
<profile>
<id>wls-3</id>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
</properties>
</profile>
<profile>
<id>tomcat1</id>
<properties>
</properties>
</profile>
正如您在每个新wls配置文件中看到的那样,我需要定义依赖项以使用提供范围(否则部署将由于某些 tomcat 资源而失败)。但是我仍然有一些其他配置文件不会使用这wls-common部分
有没有办法我可以定义一些wls-common配置文件,这些配置文件将在不更改我的命令的情况下从那里自动使用mvn?我知道我可以在属性中mvn -P p1,p2或属性中链接个人资料,-Dp1=wls但这不是我想要的。
犯罪嫌疑人X
12345678_0001
相关分类