在build节点下增加resources.
<build>

           <!-- 资源 -->
           <resources>
               <!-- 复制非class文件 -->
               <resource>
                   <directory>src/main/java/com/coracle/yk/xpo/po/common</directory>
                   <filtering>true</filtering>
                   <includes>
                      <include>*.xml</include>
                   </includes>
                   <targetPath>${project.build.directory}/classes/com/coracle/yk/xpo/po/common</targetPath>
               </resource>
<build>

Maven打包附加配置文件

相关文章:

  • 2021-08-10
  • 2021-04-26
  • 2021-05-02
  • 2022-12-23
  • 2021-05-31
  • 2021-06-04
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-25
  • 2021-03-31
  • 2022-01-24
  • 2022-12-23
相关资源
相似解决方案