org.apache.maven.model.Organization Java Examples
The following examples show how to use
org.apache.maven.model.Organization.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LocationAwareMavenXpp3Writer.java From netbeans with Apache License 2.0 | 5 votes |
private void writeOrganization(Organization organization, String tagName, XmlSerializer serializer) throws java.io.IOException { serializer.startTag(NAMESPACE, tagName); flush(serializer); StringBuffer b = b(serializer); int start = b.length(); if (organization.getName() != null) { writeValue(serializer, "name", organization.getName(), organization); } if (organization.getUrl() != null) { writeValue(serializer, "url", organization.getUrl(), organization); } serializer.endTag(NAMESPACE, tagName).flush(); logLocation(organization, "", start, b.length()); }
Example #2
Source File: ProjectSummaryRenderer.java From maven-confluence-plugin with Apache License 2.0 | 4 votes |
@Override protected void renderBody() { startSection( getTitle() ); String name = project.getName(); if ( name == null ) { name = ""; } String description = project.getDescription(); if ( description == null ) { description = ""; } String homepage = project.getUrl(); if ( homepage == null ) { homepage = ""; } startSection( getReportString( "report.summary.general.title" ) ); startTable(); tableHeader( new String[]{getReportString( "report.summary.field" ), getReportString( "report.summary.value" )} ); tableRow( new String[]{getReportString( "report.summary.general.name" ), name} ); tableRow( new String[]{getReportString( "report.summary.general.description" ), description} ); tableRowWithLink( new String[]{getReportString( "report.summary.general.homepage" ), homepage} ); endTable(); endSection(); //organization sub-section startSection( getReportString( "report.summary.organization.title" ) ); Organization organization = project.getOrganization(); if ( organization == null ) { paragraph( getReportString( "report.summary.noorganization" ) ); } else { if ( organization.getName() == null ) { organization.setName( "" ); } if ( organization.getUrl() == null ) { organization.setUrl( "" ); } startTable(); tableHeader( new String[]{getReportString( "report.summary.field" ), getReportString( "report.summary.value" )} ); tableRow( new String[]{getReportString( "report.summary.organization.name" ), organization.getName()} ); tableRowWithLink( new String[]{getReportString( "report.summary.organization.url" ), organization.getUrl()} ); endTable(); } endSection(); //build section startSection( getReportString( "report.summary.build.title" ) ); startTable(); tableHeader( new String[]{getReportString( "report.summary.field" ), getReportString( "report.summary.value" )} ); tableRow( new String[]{getReportString( "report.summary.build.groupid" ), project.getGroupId()} ); tableRow( new String[]{getReportString( "report.summary.build.artifactid" ), project.getArtifactId()} ); tableRow( new String[]{getReportString( "report.summary.build.version" ), project.getVersion()} ); tableRow( new String[]{getReportString( "report.summary.build.type" ), project.getPackaging()} ); endTable(); endSection(); endSection(); }
Example #3
Source File: PomProperty.java From flatten-maven-plugin with Apache License 2.0 | 4 votes |
@Override public Organization get( Model model ) { return model.getOrganization(); }
Example #4
Source File: PomProperty.java From flatten-maven-plugin with Apache License 2.0 | 4 votes |
@Override public void set( Model model, Organization value ) { model.setOrganization( value ); }