java - Copy dependency to war before packaging -


i'm packaging ear file maven ibm content navigator plugin project. product requires have ear, includes war, , war should include plugin jar in root of war. not in web-inf/lib. ear , war empty containers. i've created 3 projects, ear, web project, , simple java project. of these projects have pom. how can create war includes simple java project (jar) in root of war? not dependency must not end in web-inf/lib.

thanks in advance, roeland bestman

you need use maven-dependency-plugin's copy goal , place jar in directory under target directory. you'll need include there war using maven-assembly-plugin.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -