Examples of MavenVersion


Examples of com.crsn.maven.utils.osgirepo.maven.MavenVersion

  static MavenVersion createMavenVersion( Version version ) {
    if( version == null ) {
      return null;
    }
    return new MavenVersion( version.getMajor(), version.getMinor(), version.getMicro(), version.getQualifier() );
  }
View Full Code Here

Examples of com.crsn.maven.utils.osgirepo.maven.MavenVersion

    for( MavenArtifactVersions mavenArtifactVersions : repository.getArtifactVersions() ) {
      String contentFile = String.format( "/%s/%s/maven-metadata.xml",
                                          mavenArtifactVersions.getGroupId()
                                            .replaceAll( "\\.", "/" ),
                                          mavenArtifactVersions.getArtifactId() );
      MavenVersion lastVersion = mavenArtifactVersions.getVersions().last();
      ArtifactMetadataContent metadataContent = new ArtifactMetadataContent( mavenArtifactVersions,
                                                                             lastVersion,
                                                                             lastVersion );
      contentMap.put( contentFile, metadataContent );
      registerDigestForContent( metadataContent, contentMap, contentFile, "MD5" );
View Full Code Here

Examples of com.crsn.maven.utils.osgirepo.maven.MavenVersion

  static MavenVersion createMavenVersion( Version version ) {
    if( version == null ) {
      return null;
    }
    return new MavenVersion( version.getMajor(), version.getMinor(), version.getMicro() );
  }
View Full Code Here

Examples of org.opentripplanner.common.MavenVersion

     *
     * @return false if Maven versions match (even if commit ids do not match), true if Maven version of graph does not match this version of OTP or
     *         graphs are otherwise obviously incompatible.
     */
    private boolean graphVersionMismatch() {
        MavenVersion v = MavenVersion.VERSION;
        MavenVersion gv = this.mavenVersion;
        LOG.info("Graph version: {}", gv);
        LOG.info("OTP version:   {}", v);
        if (!v.equals(gv)) {
            LOG.error("This graph was built with a different version of OTP. Please rebuild it.");
            return true; // do not allow graph use
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.