code: public static boolean isArtifactIsOlderThanArtifact(Artifact artifact, Artifact comparisonArtifact) throws InvalidVersionSpecificationException {
          GenericVersionScheme genericVersionScheme = new GenericVersionScheme();
          Version firstArtifactVersion = genericVersionScheme.parseVersion(artifact.getVersion());
          Version secondArtifactVersion = genericVersionScheme.parseVersion(comparisonArtifact.getVersion());
  
          return firstArtifactVersion.compareTo(secondArtifactVersion) < 0;
  
      }
docs: Check to see if a specified artifact is the same version, or a newer version that the comparative artifact
  
  @param artifact           An artifact
  @param comparisonArtifact another Artifact to compare with.
  @return true if artifact is the same or a higher version.  False if the artifact is a lower version
  @throws MojoExecutionException Unable to get artifact versions