A Continuous Integration server essentially just does a build as you would on the command line on a regular basis. Thats the core of it. The key is to have a build that will automatically run the junit tests, run the static analysis, and assemble the jar.
For this, there are three tools to look at. From oldest to newest they are ant, maven, and gradle. Any of these tools will work, the newer ones are more automated. It is a matter of setting up the tool to do what you want it.
Once you have the build so you can type one command and build (maven package
or the like) that does all the parts, it should be a "simple matter" of moving that onto the CI server.
The deployment tool would use another plugin such as the deploy plugin which could do it, or you could write your own script (that is a "build") that invokes as part of a build pipeline.
The key to all of this, however, is first setting up the build so that it can be built with one command.