在进行项目发布的时候,可能会碰到这样的情况, 希望在保持项目源代码不变的前提下,希望能够针对不同的运行环境获得相应的运行包.(比如war包)

<build>
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.1.1</version>
    <configuration>
        <encoding>${project.build.sourceEncoding}</encoding>
        <warName>platform</warName>
          <webappDirectory>${project.build.directory}/platform</webappDirectory>
        <warSourceDirectory>WebContent</warSourceDirectory>
    </configuration>
</plugin>
</build>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-10-24
  • 2021-11-02
  • 2021-10-10
  • 2022-02-19
  • 2021-05-27
相关资源
相似解决方案