Hi, In *project A* 's pom.xml, there is a dependency added to *project B*. Both *A *&* B* contains a property file *abc.properties *under * src/main/resources* in jar*.*
Now problem is when A is deployed and application tries to read from abc.properties, actually the file loaded is *abc.properties* from *project B. * Is there any way to *exclude* *abc.properties *from *project B *using *pom.xml *of* project A so* that when *project A* is built, the dependency jar *project B* that is being built doesnt contain *abc.properties?* <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>X</groupId> <artifactId>P</artifactId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>X</groupId> <artifactId>A</artifactId> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>Y</groupId> <artifactId>C</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>Y</groupId> <artifactId>B</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </project> Thanks & regards, praveen
