In my scenario I have one jar file compiled with JDK6 through maven.
This jar needs to be signed. So, I used the maven-jarsigner-plugin for doing this job, and it works fine!
However, my mission is to sign this jar pointing to JDK1.5. But the jar needs to be built using JDK6. So, my question is: can I build the jar using JDK6, but changing to JDK5 specificaly for signing it? Is it possible?
Thanks a lot!
Rodrigo
The jarsigner options mention the
-Jjavaoptionwhich may be used to pass options to the java interpreter. If you runjava -has mentioned, one of these options is-version:<value>.It looks like the
jarsigner:signgoal has an element for passing additional args to the command line. So I’d try addingor something like that. (Maybe someone else can help with the specific format for that option, I’ve never had to do this.)