From: Kai Moritz Date: Mon, 4 Sep 2017 15:15:15 +0000 (+0200) Subject: Released version 2.5.0 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=af1db91ecbc6cce43dea9ac2a5e314a0db2396a8;p=facebook-errors Released version 2.5.0 --- diff --git a/pom.xml b/pom.xml index 42f2841..262c9f4 100644 --- a/pom.xml +++ b/pom.xml @@ -13,9 +13,9 @@ facebook-errors Juplo - Facebook-Errors Helper-Classes to handle errors, thrown by the Graph-API from Facebook - 2.5-SNAPSHOT + 2.5.0 jar - http://www.juplo.de/facebook-errors + http://juplo.de/facebook-errors @@ -158,8 +158,8 @@ - www.juplo.de - scp://juplo.de/var/www/juplo/facebook-errors-${project.version} + juplo.de + scpexe://juplo.de/var/www/juplo.de/facebook-errors-${project.version} sonatype-nexus-staging @@ -186,6 +186,21 @@ -Psonatype-oss-release + + maven-site-plugin + 3.4 + + ${project.build.directory}/filtered-site + src/site/template.vm + + + + org.apache.maven.wagon + wagon-ssh-external + 2.12 + + + @@ -231,6 +246,46 @@ + + org.apache.maven.plugins + maven-javadoc-plugin + 2.7 + + -Xdoclint:none + + + + attach-javadoc + verify + + jar + + + + + + org.apache.maven.plugins + maven-resources-plugin + 2.7 + + + copy-resources + pre-site + + copy-resources + + + ${project.build.directory}/filtered-site + + + src/site + true + + + + + + @@ -245,7 +300,10 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.10.3 + 2.7 + + -Xdoclint:none + org.apache.maven.plugins @@ -266,11 +324,11 @@ - org.apache.maven.plugins maven-pmd-plugin 3.5 true + 1.6 diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..ffbfaf2 --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,10 @@ + + UA-571104-3 + + + + + + + + diff --git a/src/site/template.vm b/src/site/template.vm new file mode 100644 index 0000000..5f58629 --- /dev/null +++ b/src/site/template.vm @@ -0,0 +1,334 @@ + + +## Datenstrukturen für die Navigation (Breadcrumbs und Menü) vorbereiten +#set ( $crumbs = $project.getClass().forName('java.util.LinkedList').newInstance() ) +#set ( $parents = $project.getClass().forName('java.util.LinkedList').newInstance() ) +#set ( $active = 'index.html' ) +#set ( $skiplist = [ 'index.html' ] ) +#macro ( searchBreadcrumbTrail $items ) + #if ( $breadcrumbs ) + ## Der zuerst gefundene Pfad gilt (denn dieser liegt im selbst erzeugten Menü) + #else + #foreach ( $item in $items ) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) + #if ( $alignedFileName == $currentItemHref ) + ## Sonderfall abfangen :/ + #if ( $alignedFileName == 'index.html' ) + #set ( $breadcrumbs = [] ) + #set ( $path = [ 'index.html' ] ) + #else + #set ( $breadcrumbs = $crumbs.clone() ) + ## Den Titel der Seite korrigieren! + #set ( $title = "$project.name - $item.name" ) + #set ( $shortTitle = $item.name ) + ## Pfad für die Identifizierung sichtbarer Menüeinträge aufbauen + #set ( $path = [ 'index.html' ] ) + #foreach ( $crumb in $crumbs ) + #set ( $currentItemHref = $PathTool.calculateLink( $crumb.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) + #set ( $sinkhole = $path.add( $currentItemHref ) ) + #end + #set ( $sinkhole = $path.add( $alignedFileName ) ) + #end + #else + #if ( !$item.items.empty ) + #set ( $sinkhole = $crumbs.push( $item ) ) + #searchBreadcrumbTrail ( $item.items ) + #set ( $sinkhole = $crumbs.pop() ) + #end + #end + #end + #end +#end +#macro ( buildSkiplist $item ) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $sinkhole = $skiplist.add( $currentItemHref.replaceAll( '\\', '/' ) ) ) + #foreach ( $item in $item.items ) + #buildSkiplist ( $item ) + #end +#end +#macro ( findActive $item $skip) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) + #set ( $doskip = false ) + #if ( $skip ) + #foreach ( $toskip in $skiplist ) + #if ( $currentItemHref == $toskip ) + #set ( $doskip = true ) + #end + #end + #end + #if ( !$doskip ) + #if ( $alignedFileName == $currentItemHref ) + #if ( $item.items.size() > 0 ) + #set ( $active = $alignedFileName ) + #else + #set ( $active = $parents.peek() ) + #end + #end + #set ( $sinkhole = $parents.push( $currentItemHref ) ) + #foreach ( $item in $item.items ) + #findActive ( $item $skip ) + #end + #set ( $sinkhole = $parents.pop() ) + #end +#end +#foreach ( $menu in $decoration.body.menus ) + ## Breadcrumb-Pfad suchen + #searchBreadcrumbTrail ( $menu.items ) + ## Bestimmen, welche Pfade in dem selbst definierten Menü liegen + #set ( $sinkhole = $parents.push( 'index.html' ) ) + #if ( !$menu.name ) + #foreach ( $item in $menu.items ) + #buildSkiplist( $item ) + #end + ## Aktives (Unter-)Menü bestimmen (und dabei nichts überspringen) + #foreach ( $item in $menu.items ) + #findActive( $item false) + #end + #else + ## Aktives (Unter-)Menü bestimmen (und dabei Einträge aus dem selbst + ## definierten Menü überspringen) + #foreach ( $item in $menu.items ) + #findActive( $item true) + #end + #end + #set ( $sinkhole = $parents.pop() ) + ## Sonderbehandlung der Einträge im selbst angelegten Menü + ## Das Menü wird daran erkannt, das der Name leer ist! +#end + + + + +## +#macro ( link $href $name $class ) + #set ( $linkTitle = ' title="' + $name + '"' ) + #if ( $href.toLowerCase().startsWith("http:/") || $href.toLowerCase().startsWith("https:/") || + $href.toLowerCase().startsWith("ftp:/") || $href.toLowerCase().startsWith("mailto:") || + $href.toLowerCase().startsWith("file:/") || ($href.toLowerCase().indexOf("://") != -1) ) + #set ( $linkClass = ' class="external ' + $class + '"' ) + #else + #set ( $linkClass = ' class="' + $class + '"' ) + #end + $name +#end +## +#macro ( menuItem $item $parent $skip) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) + #set ( $doskip = false ) + #if ( $skip ) + #foreach ( $toskip in $skiplist ) + #if ( $currentItemHref == $toskip ) + #set ( $doskip = true ) + #end + #end + #end +## + #if ( !$doskip ) + #set ( $onPath = false ) + #set ( $parentActive = false ) + #set ( $off = '' ) + #set ( $sub = '' ) + #set ( $cssClass = 's' ) + #foreach ( $entry in $path ) + #if ( $entry == $currentItemHref ) + #set ( $onPath = true ) + #set ( $cssClass = 's selected' ) + #end + #if ( $entry == $parent && $parent == $active ) + #set ( $parentActive = true ) + #end + #end + #if ( $item.items.size() > 0 ) + #set ( $sub = ' sub' ) + #end + #if ( !$onPath && !$parentActive ) + #set ( $off = ' off' ) + #end +
  • + #if ( $alignedFileName == $currentItemHref ) + $item.name + #else + #link( $currentItemHref $item.name $cssClass ) + #end + #if ( $item.items.size() > 0 && ( $currentItemHref == $active || $onPath ) ) + #set ( $newparent = $currentItemHref ) +
      + #foreach( $item in $item.items ) + #menuItem( $item $newparent $skip ) + #end +
    + #end +
  • + #end +#end +## +#macro ( copyright ) + #if ( $project ) + #set ( $currentYear = ${currentDate.year} + 1900 ) +## + #if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) ) + ${project.inceptionYear}-${currentYear} + #else + ${currentYear} + #end + #end +#end +## + + + juplo - $title + + + + + + + + +#foreach( $author in $authors ) + +#end +#if ( $dateCreation ) + +#end + #if ( $decoration.body.head ) + #foreach( $item in $decoration.body.head.getChildren() ) + ## Workaround for DOXIA-150 due to a non-desired behaviour in p-u + ## @see org.codehaus.plexus.util.xml.Xpp3Dom#toString() + ## @see org.codehaus.plexus.util.xml.Xpp3Dom#toUnescapedString() + #set ( $documentHeader = '' ) + #if ( $item.name == "script" ) + $StringUtils.replace( $item.toUnescapedString(), $documentHeader, "" ) + #else + $StringUtils.replace( $item.toString(), $documentHeader, "" ) + #end + #end + #end + $headContent + + +
    + + +
    +
    +

    $shortTitle

    + $bodyContent +
    +
    + + +
    +
    + +
    + #if( $decoration.googleAnalyticsAccountId && $decoration.googleAnalyticsAccountId != "" ) + + #end + + diff --git a/src/site/xhtml/index.xhtml b/src/site/xhtml/index.xhtml new file mode 100644 index 0000000..db32866 --- /dev/null +++ b/src/site/xhtml/index.xhtml @@ -0,0 +1,16 @@ + + + + + + +

    Facebook Error-Handler

    +

    A ResponseErrorHandler, that converts error-messages from the Graph-API to a hierarchy of exceptions, that can be cateched easily

    +

    Releases

    + + + diff --git a/src/site/xhtml/issue-tracking.xhtml b/src/site/xhtml/issue-tracking.xhtml new file mode 100644 index 0000000..f7e6859 --- /dev/null +++ b/src/site/xhtml/issue-tracking.xhtml @@ -0,0 +1,13 @@ + + + + + + + There is no bug-tracking system set up for this project! +

    + Please send your bug-reports, questions or feature-requests directly + to the developer. +

    + + diff --git a/src/site/xhtml/mail-lists.xhtml b/src/site/xhtml/mail-lists.xhtml new file mode 100644 index 0000000..ff8d7f2 --- /dev/null +++ b/src/site/xhtml/mail-lists.xhtml @@ -0,0 +1,13 @@ + + + + + + + There are no mailinglists defined for this project! +

    + Please send your bug-reports, questions or feature-requests directly + to the developer. +

    + +