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

x33g5p2x  于2022-01-24 转载在 其他  
字(9.0k)|赞(0)|评价(0)|浏览(97)

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

Model.getInceptionYear介绍

[英]Get the year of the project's inception, specified with 4 digits. This value is used when generating copyright notices as well as being informational.
[中]

代码示例

代码示例来源:origin: org.apache.maven/maven-project

public String getInceptionYear()
{
  return getModel().getInceptionYear();
}

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

public String getInceptionYear()
{
  return getModel().getInceptionYear();
}

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

protected void mergeModel_InceptionYear( Model target, Model source, boolean sourceDominant,
                     Map<Object, Object> context )
{
  String src = source.getInceptionYear();
  if ( src != null )
  {
    if ( sourceDominant || target.getInceptionYear() == null )
    {
      target.setInceptionYear( src );
      target.setLocation( "inceptionYear", source.getLocation( "inceptionYear" ) );
    }
  }
}

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

if ( model.getInceptionYear() != null )
  serializer.startTag( NAMESPACE, "inceptionYear" ).text( model.getInceptionYear() ).endTag( NAMESPACE, "inceptionYear" );

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

if ( child.getInceptionYear() == null )
  child.setInceptionYear( parent.getInceptionYear() );

代码示例来源:origin: org.apache.maven/maven-project

if ( child.getInceptionYear() == null )
  child.setInceptionYear( parent.getInceptionYear() );

代码示例来源:origin: org.apache.maven/maven-project

result.setInceptionYear( src.getInceptionYear() );
result.setIssueManagement( cloneIssueManagement( src.getIssueManagement() ) );
result.setLicenses( cloneList( src.getLicenses(), LICENSE_CLONER ) );

代码示例来源:origin: mojohaus/flatten-maven-plugin

@Override
public String get( Model model )
{
  return model.getInceptionYear();
}

代码示例来源:origin: com.buschmais.jqassistant.plugin/jqassistant.plugin.m2repo

@Override
public String getInceptionYear() {
  return delegate.getInceptionYear();
}

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

if ( model.getInceptionYear() != null )
  serializer.startTag( NAMESPACE, "inceptionYear" ).text( model.getInceptionYear() ).endTag( NAMESPACE, "inceptionYear" );

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

protected void mergeModel_InceptionYear( Model target, Model source, boolean sourceDominant,
                     Map<Object, Object> context )
{
  String src = source.getInceptionYear();
  if ( src != null )
  {
    if ( sourceDominant || target.getInceptionYear() == null )
    {
      target.setInceptionYear( src );
      target.setLocation( "inceptionYear", source.getLocation( "inceptionYear" ) );
    }
  }
}

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

void project(Model model) {
  String name = model.getName();
  if (name == null) {
    name = model.getArtifactId();
  }
  p.printStartBlock( "project", name, model.getUrl() );
  p.println();
  p.println( "model_version", model.getModelVersion() );
  p.println( "inception_year", model.getInceptionYear() );
  id(model);
  parent(model.getParent());
  p.println("packaging", model.getPackaging());
  p.println();
  description(model.getDescription());
  developers( model.getDevelopers() );
  issueManagement( model.getIssueManagement() );
  mailingLists( model.getMailingLists() );
  repositories( toRepositoryArray( model.getRepositories() ) );
  pluginRepositories( toRepositoryArray( model.getPluginRepositories() ) );
  sourceControl( model.getScm() );
  distribution( model.getDistributionManagement() );
  properties( model.getProperties() );
  dependencies( model.getDependencies() );
  modules( model.getModules() );
  managements( model.getDependencyManagement(), model.getBuild() );
  build( model.getBuild(), model.getBuild() );
  profiles( model.getProfiles() );
  reporting( model.getReporting() );
  p.printEndBlock();
}

代码示例来源:origin: io.tesla.polyglot/tesla-polyglot-ruby

void project(Model model) {
  String name = model.getName();
  if (name == null) {
    name = model.getArtifactId();
  }
  p.printStartBlock( "project", name, model.getUrl() );
  p.println();
  p.println( "model_version", model.getModelVersion() );
  p.println( "inception_year", model.getInceptionYear() );
  id(model);
  parent(model.getParent());
  p.println("packaging", model.getPackaging());
  p.println();
  description(model.getDescription());
  developers( model.getDevelopers() );
  issueManagement( model.getIssueManagement() );
  mailingLists( model.getMailingLists() );
  repositories( toRepositoryArray( model.getRepositories() ) );
  pluginRepositories( toRepositoryArray( model.getPluginRepositories() ) );
  sourceControl( model.getScm() );
  distribution( model.getDistributionManagement() );
  properties( model.getProperties() );
  dependencies( model.getDependencies() );
  modules( model.getModules() );
  managements( model.getDependencyManagement(), model.getBuild() );
  build( model.getBuild(), model.getBuild() );
  profiles( model.getProfiles() );
  reporting( model.getReporting() );
  p.printEndBlock();
}

代码示例来源:origin: io.takari.polyglot/polyglot-ruby

void project(Model model) {
  String name = model.getName();
  if (name == null) {
    name = model.getArtifactId();
  }
  p.printStartBlock( "project", name, model.getUrl() );
  p.println();
  p.println( "model_version", model.getModelVersion() );
  p.println( "inception_year", model.getInceptionYear() );
  id(model);
  parent(model.getParent());
  p.println("packaging", model.getPackaging());
  p.println();
  description(model.getDescription());
  developers( model.getDevelopers() );
  issueManagement( model.getIssueManagement() );
  mailingLists( model.getMailingLists() );
  repositories( toRepositoryArray( model.getRepositories() ) );
  pluginRepositories( toRepositoryArray( model.getPluginRepositories() ) );
  sourceControl( model.getScm() );
  distribution( model.getDistributionManagement() );
  properties( model.getProperties() );
  dependencies( model.getDependencies() );
  modules( model.getModules() );
  managements( model.getDependencyManagement(), model.getBuild() );
  build( model.getBuild(), model.getBuild() );
  profiles( model.getProfiles() );
  reporting( model.getReporting() );
  p.printEndBlock();
}

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

updateIssueManagement( value.getIssueManagement(), "issueManagement", innerCount, root );
updateCiManagement( value.getCiManagement(), "ciManagement", innerCount, root );
findAndReplaceSimpleElement( innerCount, root, "inceptionYear", value.getInceptionYear(), null );
iterateMailingList( innerCount, root, value.getMailingLists(), "mailingLists", "mailingList" );
iterateDeveloper( innerCount, root, value.getDevelopers(), "developers", "developer" );

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-maven-embedder

updateIssueManagement( value.getIssueManagement(), "issueManagement", innerCount, root);
updateCiManagement( value.getCiManagement(), "ciManagement", innerCount, root);
findAndReplaceSimpleElement(innerCount, root,  "inceptionYear", value.getInceptionYear(), null);
iterateMailingList(innerCount, root, value.getMailingLists(),"mailingLists","mailingList");
iterateDeveloper(innerCount, root, value.getDevelopers(),"developers","developer");

代码示例来源:origin: org.apache.maven.plugins/maven-shade-plugin

updateIssueManagement( value.getIssueManagement(), "issueManagement", innerCount, root );
updateCiManagement( value.getCiManagement(), "ciManagement", innerCount, root );
findAndReplaceSimpleElement( innerCount, root, "inceptionYear", value.getInceptionYear(), null );
iterateMailingList( innerCount, root, value.getMailingLists(), "mailingLists", "mailingList" );
iterateDeveloper( innerCount, root, value.getDevelopers(), "developers", "developer" );

代码示例来源:origin: org.apache.felix/maven-bundle-plugin

updateIssueManagement( value.getIssueManagement(), "issueManagement", innerCount, root );
updateCiManagement( value.getCiManagement(), "ciManagement", innerCount, root );
findAndReplaceSimpleElement( innerCount, root, "inceptionYear", value.getInceptionYear(), null );
iterateMailingList( innerCount, root, value.getMailingLists(), "mailingLists", "mailingList" );
iterateDeveloper( innerCount, root, value.getDevelopers(), "developers", "developer" );

代码示例来源:origin: org.jboss.forge.addon/maven-impl

updateIssueManagement(value.getIssueManagement(), "issueManagement", innerCount, root);
updateCiManagement(value.getCiManagement(), "ciManagement", innerCount, root);
findAndReplaceSimpleElement(innerCount, root, "inceptionYear", value.getInceptionYear(), null);
iterateMailingList(innerCount, root, value.getMailingLists(), "mailingLists", "mailingList");
iterateDeveloper(innerCount, root, value.getDevelopers(), "developers", "developer");

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

updateIssueManagement( value.getIssueManagement(), "issueManagement", innerCount, root);
updateCiManagement( value.getCiManagement(), "ciManagement", innerCount, root);
findAndReplaceSimpleElement(innerCount, root,  "inceptionYear", value.getInceptionYear(), null);
iterateMailingList(innerCount, root, value.getMailingLists(),"mailingLists","mailingList");
iterateDeveloper(innerCount, root, value.getDevelopers(),"developers","developer");

相关文章

Model类方法