Where to add .ebextensions in a WAR?

后端 未结 5 1702
天命终不由人
天命终不由人 2020-12-05 23:28

Scenario:

  • AWS Elastic Beanstalk
  • Java application
  • .ebextensions currently placed in src/main/resources/.ebextensions

Commands a

5条回答
  •  执笔经年
    2020-12-05 23:53

    Using Maven I did as follows:

    • mkdir src/main/ebextensions
    • put .config files into this folder
    • add the following to pom.xml

          
              maven-war-plugin
              
                  
                      
                          src/main/ebextensions
                          .ebextensions
                          true
                      
                  
              
          
      

    to transfer the files to the top level of the war when it is built.

提交回复
热议问题