I have two queries:
1) I have build a maven project and when I am tying to deploy jar on server it shows some error related to driver not found. Then I decompiled my jar and found that dependent database jar jconn jar is not in that. But I have that jar in my code and I am using following in my pom.xml to get that dependent jar with my jar but still it is not able to get dependent jar. Somewhere, I read on stackoverflow to add following to my pom.xml
<artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <classpathPrefix>./</classpathPrefix> <mainClass>com.launcher.Main</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> </plugin> Still it is giving the same thing and jconn jar was not in jar when decompiled. Please help.
2) I have some some key value pair in a property file and values are in comma separated form. I want to take all values of that key in a list. how can i do that. Please help