kleash
kleash

Reputation: 1319

Maven execute plugin just before creating war but after archiving classes

My main problem is I have to sign all the JARs of WEB-INF\lib folder.

So this is what I have done:-

After package finishes, I can check that in target directory all JARs in lib folder are signed but my war file contains unsigned JAR only. Most probably because the jar-signer executed after maven-war-plugin has created the war file. I tried with setting JAR-Signer to pre-package phase also, but the lib folder is not present by then.

So what I need is to execute Maven JAR-Signer just before maven creates the war file from target directory.

Thanks

Upvotes: 2

Views: 460

Answers (0)

Related Questions