org.apache.maven.model.Repository.setLayout()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(94)

本文整理了Java中org.apache.maven.model.Repository.setLayout方法的一些代码示例,展示了Repository.setLayout的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.setLayout方法的具体详情如下:
包路径:org.apache.maven.model.Repository
类名称:Repository
方法名:setLayout

Repository.setLayout介绍

暂无

代码示例

代码示例来源:origin: apache/maven

public static org.apache.maven.model.Repository fromSettingsRepository( org.apache.maven.settings.Repository
                                    settingsRepository )
{
  org.apache.maven.model.Repository modelRepository = new org.apache.maven.model.Repository();
  modelRepository.setId( settingsRepository.getId() );
  modelRepository.setLayout( settingsRepository.getLayout() );
  modelRepository.setName( settingsRepository.getName() );
  modelRepository.setUrl( settingsRepository.getUrl() );
  modelRepository.setReleases( fromSettingsRepositoryPolicy( settingsRepository.getReleases() ) );
  modelRepository.setSnapshots( fromSettingsRepositoryPolicy( settingsRepository.getSnapshots() ) );
  return modelRepository;
}

代码示例来源:origin: apache/maven

private static Repository convertFromProfileXmlRepository( org.apache.maven.profiles.Repository profileXmlRepo )
{
  Repository repo = new Repository();
  repo.setId( profileXmlRepo.getId() );
  repo.setLayout( profileXmlRepo.getLayout() );
  repo.setName( profileXmlRepo.getName() );
  repo.setUrl( profileXmlRepo.getUrl() );
  if ( profileXmlRepo.getSnapshots() != null )
  {
    repo.setSnapshots( convertRepositoryPolicy( profileXmlRepo.getSnapshots() ) );
  }
  if ( profileXmlRepo.getReleases() != null )
  {
    repo.setReleases( convertRepositoryPolicy( profileXmlRepo.getReleases() ) );
  }
  return repo;
}

代码示例来源:origin: apache/maven

/**
 * @param settingsRepo
 * @return a repository
 */
private static org.apache.maven.model.Repository convertFromSettingsRepository( Repository settingsRepo )
{
  org.apache.maven.model.Repository repo = new org.apache.maven.model.Repository();
  repo.setId( settingsRepo.getId() );
  repo.setLayout( settingsRepo.getLayout() );
  repo.setName( settingsRepo.getName() );
  repo.setUrl( settingsRepo.getUrl() );
  if ( settingsRepo.getSnapshots() != null )
  {
    repo.setSnapshots( convertRepositoryPolicy( settingsRepo.getSnapshots() ) );
  }
  if ( settingsRepo.getReleases() != null )
  {
    repo.setReleases( convertRepositoryPolicy( settingsRepo.getReleases() ) );
  }
  return repo;
}

代码示例来源:origin: apache/maven

repository.setLayout( interpolatedTrimmed( parser.nextText(), "layout" ) );

代码示例来源:origin: apache/maven

repository.setLayout( interpolatedTrimmed( parser.nextText(), "layout" ) );

代码示例来源:origin: takari/polyglot-maven

public default Repository repository(String id, String name, String url, String layout, RepositoryPolicy releases, RepositoryPolicy snapshots) {
  Repository repository = new Repository();
  if (id != null) {
    repository.setId(id);
  }
  if (name != null) {
    repository.setName(name);
  }
  if (url != null) {
    repository.setUrl(url);
  }
  if (layout != null) {
    repository.setLayout(layout);
  }
  if (releases != null) {
    repository.setReleases(releases);
  }
  if (snapshots != null) {
    repository.setSnapshots(snapshots);
  }
  return repository;
}

代码示例来源:origin: takari/polyglot-maven

repository.setLayout( getTrimmedValue( value ) );

代码示例来源:origin: spring-projects/sts4

public ArtifactRepository createArtifactRepository(String id, String url) throws MavenException {
  Repository repository = new Repository();
  repository.setId(id);
  repository.setUrl(url);
  repository.setLayout("default"); //$NON-NLS-1$
  ArtifactRepository repo;
  try {
    repo = lookup(RepositorySystem.class).buildArtifactRepository(repository);
    ArrayList<ArtifactRepository> repos = new ArrayList<ArtifactRepository>(Arrays.asList(repo));
    injectSettings(repos);
  } catch (InvalidRepositoryException ex) {
    throw new MavenException(ex);
  }
  return repo;
}

代码示例来源:origin: org.codehaus.mevenide/nb-project

if (reposit != null) {
  reposit.setId(library.getName());
  reposit.setLayout(result[0]);
  reposit.setName("Repository for library " + library);

代码示例来源:origin: org.jboss.shrinkwrap.resolver/shrinkwrap-resolver-impl-maven

private static Repository asRepository(org.apache.maven.settings.Repository repository) {
  Repository mavenRepository = new Repository();
  if (repository != null) {
    mavenRepository.setId(repository.getId());
    mavenRepository.setLayout(repository.getLayout());
    mavenRepository.setName(repository.getName());
    mavenRepository.setUrl(repository.getUrl());
    mavenRepository.setReleases(asMavenRepositoryPolicy(repository.getReleases()));
    mavenRepository.setSnapshots(asMavenRepositoryPolicy(repository.getSnapshots()));
  }
  return mavenRepository;
}

代码示例来源:origin: shrinkwrap/resolver

private static Repository asRepository(org.apache.maven.settings.Repository repository) {
  Repository mavenRepository = new Repository();
  if (repository != null) {
    mavenRepository.setId(repository.getId());
    mavenRepository.setLayout(repository.getLayout());
    mavenRepository.setName(repository.getName());
    mavenRepository.setUrl(repository.getUrl());
    mavenRepository.setReleases(asMavenRepositoryPolicy(repository.getReleases()));
    mavenRepository.setSnapshots(asMavenRepositoryPolicy(repository.getSnapshots()));
  }
  return mavenRepository;
}

代码示例来源:origin: io.tesla.maven/maven-model

repository.setLayout( getTrimmedValue( parser.nextText() ) );

代码示例来源:origin: io.tesla.maven/maven-model

repository.setLayout( getTrimmedValue( parser.nextText() ) );

相关文章