<build> <finalName>com_dubbo_config</finalName> <resources> <resource> <!--specify which directory the resources plugin handles for resource files--<directory>src/main/resources</directory> &L t;! --Where to pack and where to place-<targetPath>${project.build.directory}/classes</targetPath> <!-- The following files are not included in directory-specific directories--<excludes> <exclude>pro/*</exclude> <exclude>dev/*</exclude> <exclude>test/*</exclude> </excludes> <!--only (this word is very important) contains the following files <include> and <exclude> are present in directory-specific directories, then there is a conflict, then the <ex Clude>-<includes> <include></include> </includes> <!--filtering is true, this time will only filter the file (<excludes>) hit classpath, filtering false, will not need to filter The document (<includes>)Hit Classpath-<filtering>true</filtering> </resource> <resource> <directory>src/main/resources/${profiles.active}</directory> <targetpath>${project.b uild.directory}/classes</targetpath> </resource> </resources> </build>
Maven <resources> Tags