Vote count:
0
I have an application consisting of three modules: Module A, Module B and Module C (which is a web module). I am using Maven to build the application.
I have the following logic implemented: Module A is included in Module B using a maven dependency and Module B is included in Module C, also by using a dependency (I have separate pom files for each module). Module C is the one that gets deployed.
In Module C I want to have a folder called files, that would contain some content files. This particular folder would be located under the webapp folder. I want to be able to read these files in Module B.
Is there a way to do this? I have tried reading files with getClass().getResourceAsStream("files/file_name") but the returned value was null.
asked 49 secs ago
Java - read files from different maven modules
Aucun commentaire:
Enregistrer un commentaire