maven_build_resource_寫給自己看的
阿新 • • 發佈:2019-01-08
<build>
<finalName>xxx-service-xxx</finalName>
<resources>
<resource>
<targetPath>${project.build.directory}/classes</targetPath>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
<!--dubbo主main讀取META-INF/spring 下的spring檔案-->
<resource>
<targetPath>${project.build.directory}/classes/META-INF/spring
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>spring-context.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
......
</plugin>
</plugins>
</build>
</project>