tags:

views:

42

answers:

1

Some code I have requires the JCE unlimited Strength Policy Files. I'd like to add this dependency into the Maven Pom file so the other developers on my team don't have to individually each apply this to their systems.

I realize that the systems this is eventually deployed to will need to have the JCE files manually installed. This is a development solution only.

I was thinking that we would add the policy files to our repository and maven would be able to handle installation, but I am surprised that I can't find anyone else doing this (and blogging about it.).

+1  A: 

You could maybe try this:

  • Bundle (zip?) the JCE unlimited strength policy files.
  • Install them to your corporate repository as a zip dependency.
  • Use the dependency:unpack goal to unpack the created dependency to ${java.home}/jre/lib/security as part of your build, e.g. during initialize (see Unpacking specific artifacts).
Pascal Thivent