How can I copy a file from the project JAVA MAVEN "Project A.jar" to the project JAVA MAVEN "Project B" at the BUILD stage?

Проект А - Folder1 - Folder2 - Folder3 - file1.xml // Этот файл нужно скопировать - Folder4 - pom.xml ---------------------------------------------- Проект Б - Folder1 - Folder2 - Folder3 - Folder4 - target - Folder1 - Folder2 - Folder3 - file1.xml // Здесь мы должны скопировать файл - Folder4 - pom.xml 

 Проект A pom.xml project> <groupId>com.commons</groupId> <artifactId>projectA</artifactId> <version>0.0.1</version> </project> 

 Проект Б pom.xml project> <groupId>com.myproject</groupId> <artifactId>projectB</artifactId> <version>0.0.1</version> <dependencies> <dependency>    <groupId>com.commons</groupId>    <artifactId>projectA</artifactId>    <version>0.0.1</version> </dependency> </dependencies> </project> 
  • Are these projects submodules of the same project? - Stranger in the Q
  • Why not just copy it with pens, why do we need such automation? - keekkenen
  • Project A is a separate JAR with file1.xml. Project B is a separate project in which you need to copy the file1.xml file from Project A.JAR - Andrei
  • Why not just copy it with pens - in order for other projects to use the same configuration file. And so that the change was made only in one place. - Andrei
  • For everyone to understand, do you somehow .jar (Project A) somehow "import" in Project B? - Antonio112009

0