1

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 ?

Parameswar
  • 1,803
  • 8
  • 29
  • 53

1 Answers1

0

Look at the shade plugin to create an uberjar instead.

http://maven.apache.org/plugins/maven-shade-plugin/

Niels Bech Nielsen
  • 4,599
  • 1
  • 19
  • 44