Maven2, applying filtering to a file under pom type packaging

I am new to maven. I want to use filtering in a multi-module project. The packaging type of the parent pump is set to pom. The structure of the project is as follows:

pom.xml
     |
     |______MODULE1
     |       |
     |       pom.xml
     |       File1_needed_to_be_filtered
     |
    File2_needed_to_be_filtered

Note that Module1 is also a multi-module project. So please tell me how I can apply filtering to files1 and file2. And if I apply filtering to file 1, then where will the processed file be stored (since the pom file, whose packaging type is pom, does not create any folders named target!) Please help me, as it is very important for me, and this problem is not mentioned anywhere else on the Internet.

+5
source share
2

maven-assembly-plugin - 'dir' (, , -). . pom , .

, . pom, ( ), , , .

+4

Maven , true pom.xml:

<project>
  ...
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filterineg>
      </resource>
    </resources>
  </build>
</project>

, pom, ( , ). , , ( , , ).

0

All Articles