/** {@inheritDoc} */ public void setGroupId( String groupId ) { artifact.setGroupId( groupId ); }
/** {@inheritDoc} */ public void setGroupId( String groupId ) { artifact.setGroupId( groupId ); }
artifact.setGroupId( relocation.getGroupId() ); project.setGroupId( relocation.getGroupId() );
artifact.setGroupId( relocation.getGroupId() ); relocatedArtifact = artifact; project.setGroupId( relocation.getGroupId() );
public void setGroupId( String groupId ) { delegate.setGroupId( groupId ); }
public void setGroupId(String groupId) { original.setGroupId(groupId); }
public void setGroupId(String groupId) { original.setGroupId(groupId); }
public void setGroupId(final String groupId) { this.artifact.setGroupId(groupId); }
public void setGroupId(final String groupId) { this.artifact.setGroupId(groupId); }
v3Model.setVersion( newVersion ); artifact.setGroupId( newGroupId ); artifact.setArtifactId( newArtifactId ); artifact.setVersion( newVersion );
v3Model.setVersion( newVersion ); artifact.setGroupId( newGroupId ); artifact.setArtifactId( newArtifactId ); artifact.setVersion( newVersion );
v3Model.setVersion( newVersion ); artifact.setGroupId( newGroupId ); artifact.setArtifactId( newArtifactId ); artifact.setVersion( newVersion );
v3Model.setVersion( newVersion ); artifact.setGroupId( newGroupId ); artifact.setArtifactId( newArtifactId ); artifact.setVersion( newVersion );
private MavenProject projectFromArtifact(final Artifact artifact) throws ProjectBuildingException, GemException { final ProjectBuildingRequest request = new DefaultProjectBuildingRequest().setLocalRepository(this.localRepository) .setRemoteRepositories(this.project.getRemoteArtifactRepositories()); manager.setRepositorySession(request, this.repositorySession ); final MavenProject project = this.builder.build(artifact, request) .getProject(); if (project.getDistributionManagement() != null && project.getDistributionManagement().getRelocation() != null) { final Relocation reloc = project.getDistributionManagement() .getRelocation(); final String key = artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getType() + ":" + artifact.getVersion(); artifact.setArtifactId(reloc.getArtifactId()); artifact.setGroupId(reloc.getGroupId()); if (reloc.getVersion() != null) { artifact.setVersion(reloc.getVersion()); } this.relocationMap.put(key, artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getType() + ":" + artifact.getVersion()); return projectFromArtifact(artifact); } else { return project; } }
private MavenProject projectFromArtifact(final Artifact artifact) throws ProjectBuildingException, GemException { final ProjectBuildingRequest request = new DefaultProjectBuildingRequest().setLocalRepository(this.localRepository) .setRemoteRepositories(this.project.getRemoteArtifactRepositories()); manager.setRepositorySession(request, this.repositorySession ); final MavenProject project = this.builder.build(artifact, request) .getProject(); if (project.getDistributionManagement() != null && project.getDistributionManagement().getRelocation() != null) { final Relocation reloc = project.getDistributionManagement() .getRelocation(); final String key = artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getType() + ":" + artifact.getVersion(); artifact.setArtifactId(reloc.getArtifactId()); artifact.setGroupId(reloc.getGroupId()); if (reloc.getVersion() != null) { artifact.setVersion(reloc.getVersion()); } this.relocationMap.put(key, artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getType() + ":" + artifact.getVersion()); return projectFromArtifact(artifact); } else { return project; } }
depMavenProject.getArtifact().setGroupId( artifact.getGroupId() );