M2 Build File --fixed completely

Now builds the java project properly.
Added Class-Path attribute to the manifest in the build file.
This is required for the resources jar to be usable during runtime.