Maven dependency verification & enforcement via the vChain Code Notary platform.
This package provides a maven plugin for verifying the integrity of your project dependencies through code notary.
This software is released under GPL3.
<build>
...
<plugins>
...
<plugin>
<groupId>us.vchain</groupId>
<artifactId>jvcn-maven-plugin</artifactId>
<version>0.0.1</version>
<executions>
<execution>
<id>audit</id>
<phase>validate</phase>
<goals>
<goal>audit</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
...
</build>
If the build fails stating that some (or all) dependencies could not be verified, perform the following steps to notarize them:
- Download the dependencies JARs from the Maven repository to your machine
- Navigate to the CodeNotary dashboard, create an account if you don't already have one and sign each JAR.
- Re-run the build. This time all dependencies should be reported as trusted and the build should succeed again.
The plugin provides some configuration options:
Fails the maven build if a single dependency is not signed with the
status TRUSTED
on the code notary platform.
Analyses the entire dependency graph of your project. By default, only direct dependencies are analysed.
Enforces that all checked dependencies must be signed by the provided signer.
The library requires a Java 8 JVM.