1

My project is multi module

parent

|
-----Child A

     src/main/resources/test.conf
|
-----Child B

     src/main/test/ (from here I want to access conf)

I have tried multiple options:

1) Added Apache Resource Bundles (https://maven.apache.org/apache-resource-bundles/)

2) using resource tag in pom.xml With maven - clean package, xml source files are not included in classpath

Community
  • 1
  • 1

1 Answers1

1

below is my answer , you need to remove exclude from pom for conf, if you have this plugin you can check


  <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-jar-plugin</artifactId>
 <version>${jar.plugin.version}</version>
 <configuration>
   <excludes>
     <exclude>job.xml</exclude>
   </excludes>
  </configuration>
 </plugin>
Narendra Parmar
  • 1,329
  • 12
  • 17