I am developing a chat bot using IBM Watson conversation. When I build the project and run, it gives null in inputStream in the RequestUtils.java class in the java-sdk/conversation. but when I run it from the ide it works.
InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("version.properties");
I noticed that properties file is not inside the jar. How to add this properties file to the jar when it is being built? What could be the possible cause? Any help is appreciated. Thanks.
P.S:scehema of the classes are as follows
parent
project1
project2
Maven Dependencies
|-conversation-3.5.3.jar
| |-package1
| |-packeage2
| |-META-INF
|-core-3.5.3.jar
|-package1
|-packeage2
| |-RequestUtils.class
|-META-INF
|-version.properties
version.propertiesfile in your project? - STaefi