Codenotary & Maven Integration Graphic


Maven works well, especially if you don’t want to rewrite a program from scratch every time you start up a project. It manages builds and versions and is a central repository for dependencies that works much better than Ant. It also makes pulling in new features pretty easy. But what if you need to add a dependency to your system and you’re not pulling from Maven Central? What if you are but you still don’t know the code source? What if you’re working with a CI server? How do you know the code you pull is not malicious? You can use Codenotary’s JVCN plugin to enforce Maven dependencies and immutably assure their safety.


Codenotary is the only decentralized, secure and blockchain based solution out there for enforcing and securing your Maven dependencies. See how it works below:


Trusting Maven Dependencies

Codenotary makes sure all your project dependencies, whether from Maven Central or other repos or servers, are trusted.


Getting a closer look under the hood into the pom.xml, you can see Codenotary has a couple of things going on to help you get security for your builds:


  1. The jvcn-maven plugin is hooked into the maven build process to automatically verify dependencies at build time.
  2. The JVCN plugin is set-up to verify all dependencies against a signer with the public-key 0xC498EEEbDcBd4047b7393573dB21099cE42638be
  3. The plugin is also configured to stop the build if it encounters a single non-trusted dependency.


And now, we can go continuous without breaking a sweat over whether or not our latest build is safe to use. Just to illustrate, let’s run an example of Codenotary’s dependency enforcement at work.


Dependency Check Example

In this setup, for simplicity, we just have a single dependency:




Since, this dependency is signed with the blockchain stored, authentic hash, (below):




…the build passes.


Build Enforcement Test

By adding a new, unknown dependency to the project, you will be able to see the build enforcement in action.


We start our test by adding the following snippet to our dependencies list in pom.xml:








Because the postgresql dependency was not signed with the same trusted hash we used previously (above):




…the dependency is prevented from being used and the build fails. Clearly, if the key isn’t there, the lock won’t open and you remain protected.


Stay security thirsty my friends.


If you liked this blog, check out more cool Codenotary integrations here.



Yes! Show Me More Integrations





Save energy without reducing VM performance in your VMware vSphere cluster
16 August 2022
Over the last couple of decades energy consumption went up massively in every data center and while the…
Metrics & Logs support for IoT - Bringing Secure Monitoring and Logging to the Edge
7 July 2022
Simple uptime monitoring for Internet-of-Things (IoT) is well-known and requires knowing if the devices are up and running.…
Monitoring Azure SQL Managed Instance with Opvizor Metrics & Logs
17 January 2022
When you have critical applications and business processes that rely on Azure resources, it's critical to keep an…

White Paper — Registration

You will receive the research paper by mail.

Codenotary — Webinar

White Paper — Registration

Please let us know where we can send the whitepaper on Codenotary Trusted Software Supply Chain. 

Become a partner

Start Your Trial

Please enter contact information to receive an email with the virtual appliance download instructions.

Start Free Trial

Please enter contact information to receive an email with the free trial details.

Subscribe to our newsletter