I have an executable jar(mainjar) with me, i have created it using a maven project. When i pass some argument to his jar, it will execute another jar(execjar) file which is placed inside the src/main/resource of mainjar. The problem is i am not able to access the execjar inside the mainjar. Here is my folder structure of mainjar
src/main/java MainClass code to execute execjar- 'java -jar execjar' src/main/resource/ execjar
The problem is when i package the mainjar using maven assembly plugin, i am not able to access the execjar inside the mainjar- nothing happens when i execute the mainjar.
Can anyone help ?
Look at the shade plugin to create an uberjar instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.