protected void writeGMetadata( ArtifactStoreRequest request, Gav gav, Metadata md ) throws UnsupportedStorageOperationException, IllegalOperationException, MetadataException, IOException { String mdPath = request.getRequestPath(); // GAV mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ); // GA mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ); // G mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ) + "/maven-metadata.xml"; RepositoryItemUid uid = request.getMavenRepository().createUid( mdPath ); writeMetadata( uid, request.getRequestContext(), md ); }
protected void writeGAMetadata( ArtifactStoreRequest request, Gav gav, Metadata md ) throws UnsupportedStorageOperationException, IllegalOperationException, MetadataException, IOException { String mdPath = request.getRequestPath(); // GAV mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ); // GA mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ) + "/maven-metadata.xml"; RepositoryItemUid uid = request.getMavenRepository().createUid( mdPath ); writeMetadata( uid, request.getRequestContext(), md ); }
protected void writeGAVMetadata( ArtifactStoreRequest request, Gav gav, Metadata md ) throws UnsupportedStorageOperationException, IllegalOperationException, MetadataException, IOException { String mdPath = request.getRequestPath(); // GAV mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ) + "/maven-metadata.xml"; RepositoryItemUid uid = request.getMavenRepository().createUid( mdPath ); writeMetadata( uid, request.getRequestContext(), md ); }
protected Metadata readOrCreateGMetadata( ArtifactStoreRequest request, Gav gav ) throws IllegalOperationException, IOException, MetadataException { String mdPath = request.getRequestPath(); // GAV mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ); // GA mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ); // G mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ) + "/maven-metadata.xml"; RepositoryItemUid uid = request.getMavenRepository().createUid( mdPath ); Metadata result = readOrCreateMetadata( uid, request ); result.setGroupId( null ); result.setArtifactId( null ); result.setVersion( null ); return result; }
protected Metadata readOrCreateGAMetadata( ArtifactStoreRequest request, Gav gav ) throws IllegalOperationException, IOException, MetadataException { String mdPath = request.getRequestPath(); // GAV mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ); // GA mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ) + "/maven-metadata.xml"; RepositoryItemUid uid = request.getMavenRepository().createUid( mdPath ); Metadata result = readOrCreateMetadata( uid, request ); result.setGroupId( gav.getGroupId() ); result.setArtifactId( gav.getArtifactId() ); result.setVersion( null ); return result; }
String storedPath = request.getRequestPath();
protected Metadata readOrCreateGAVMetadata( ArtifactStoreRequest request, Gav gav ) throws IllegalOperationException, IOException, MetadataException { String mdPath = request.getRequestPath(); // GAV mdPath = mdPath.substring( 0, mdPath.lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ) + "/maven-metadata.xml"; RepositoryItemUid uid = request.getMavenRepository().createUid( mdPath ); Metadata result = readOrCreateMetadata( uid, request ); result.setGroupId( gav.getGroupId() ); result.setArtifactId( gav.getArtifactId() ); result.setVersion( gav.getBaseVersion() ); return result; }
repository.createUid( gavRequest.getRequestPath().substring( 0, gavRequest.getRequestPath().lastIndexOf( RepositoryItemUid.PATH_SEPARATOR ) ) );
repository.createUid( gavRequest.getRequestPath().substring( 0, gavRequest.getRequestPath().indexOf( RepositoryItemUid.PATH_SEPARATOR ) ) );
getLogger().debug("Created ArtifactStoreRequest request for " + result.getRequestPath());
"pom" ); gavRequest.setRequestLocalOnly( isLocal( request, gavRequest.getRequestPath() ) );
"pom"); gavRequest.setRequestLocalOnly(isLocal(request, gavRequest.getRequestPath()));
classifier, extension); gavRequest.setRequestLocalOnly(isLocal(request, gavRequest.getRequestPath()));
getLogger().debug( "Created ArtifactStoreRequest request for " + result.getRequestPath() );
classifier, extension ); gavRequest.setRequestLocalOnly( isLocal( request, gavRequest.getRequestPath() ) );