diff --git a/doclets/pom.xml b/doclets/pom.xml old mode 100644 new mode 100755 index 7e4dbda..439157a --- a/doclets/pom.xml +++ b/doclets/pom.xml @@ -5,7 +5,7 @@ com.lunatech.jax-doclets parent - 0.10.2-SNAPSHOT + 0.10.2 doclets @@ -280,6 +280,44 @@ + + org.apache.maven.plugins + maven-source-plugin + 2.1.2 + + + true + + true + true + + + ${project.url} + ${java.version} + ${java.vendor} + ${os.name} + ${os.arch} + ${os.version} + ${project.scm.url} + ${project.scm.connection} + ${buildNumber} + ${build.datetime} + JBoss (http://www.jboss.org/) + http://www.jboss.org/ + JBoss by Red Hat, Inc + http://www.jboss.org/ + + + + + + verify + + jar + + + + diff --git a/doclets/src/main/java/com/lunatech/doclets/jax/jaxrs/writers/ResourceWriter.java b/doclets/src/main/java/com/lunatech/doclets/jax/jaxrs/writers/ResourceWriter.java old mode 100644 new mode 100755 index 9a0b59d..b240828 --- a/doclets/src/main/java/com/lunatech/doclets/jax/jaxrs/writers/ResourceWriter.java +++ b/doclets/src/main/java/com/lunatech/doclets/jax/jaxrs/writers/ResourceWriter.java @@ -142,6 +142,7 @@ private void printSubresources() { for (String subResourceKey : resources.keySet()) { Resource realSubResource = resources.get(subResourceKey); Resource subResource = deepFilter(realSubResource); + if (subResource == null) continue; open("tr"); open("td"); String path = subResource.getPathFrom(resource); @@ -176,6 +177,9 @@ private Resource deepFilter(Resource resource) { return resource; // there cannot be any resource with no method, and no subresources // return the first subresource + if (!resource.getResources().values().iterator().hasNext()) { + return null; + } return deepFilter(resource.getResources().values().iterator().next()); } diff --git a/pom.xml b/pom.xml old mode 100644 new mode 100755 index 1af9412..390a8fe --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.lunatech.jax-doclets parent - 0.10.2-SNAPSHOT + 0.10.2 pom jax-doclets @@ -36,6 +36,14 @@ https://github.com/FroMage/jax-doclets + + + jboss-releases-repository + JBoss Releases Repository + https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/ + + + github https://github.com/FroMage/jax-doclets/issues @@ -110,7 +118,7 @@ doclets - docs + @@ -132,7 +140,44 @@ true - + + org.apache.maven.plugins + maven-source-plugin + 2.1.2 + + + true + + true + true + + + ${project.url} + ${java.version} + ${java.vendor} + ${os.name} + ${os.arch} + ${os.version} + ${project.scm.url} + ${project.scm.connection} + ${buildNumber} + ${build.datetime} + JBoss (http://www.jboss.org/) + http://www.jboss.org/ + JBoss by Red Hat, Inc + http://www.jboss.org/ + + + + + + verify + + jar + + + +