java - Maven - Jar inside a War -


i'm converting old ant build maven project , maintain exact structure of resulting war file created using ant. here desired structure of war file.

enter image description here

here structure of project before compiled , packaged.

enter image description here

i'm having trouble figuring out how create jar of example.java , place folder called applet @ same level other folders web folder. can restructure project way have keep resulting war file's structure same. how create jar file , war file , place jar file inside war?

note: i've been trying use example here, how create jar part of project packaged war, structure different i'm having trouble getting i'm after.

p.s. i'm curious why set ant build way begin with. mean, point of having classes packed in jar , placed inside applet folder rather putting them in traditional place inside war would under web-inf/classes/java/com/example/*.class.

the easiest move example.java own module jar packaging (i.e. sub project) , use maven dependency plugin copy artifact /applet folder before packaging war.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -