I found some info on this. This happens when you use
maven-javadoc-2.4. However, if I try to use a later versin, I get
another error, saying it can't download jersey-server-1.11-bundle. I
think this is because something somewhere depends on a version of
apache velocity with a bug in it.
I'm not sure how to work around this. I tried to set pluginManagement
and specify the latest velocity but that caused more problems. For
now I have to live with this "warning" but because it's emitted as an
"error" it shows up in netbeans in red.
It's highly annoying, and I'd much rather be using newer
maven-javadoc-plugin ... but then I get the jersey-server.bundle not
found error:
Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:2.7:javadoc (default) on
project hello-webapp: An error has occurred in JavaDocs report
generation:Unable to find artifact:groupId = 'com.sun.jersey'
artifactId = 'jersey-server'
version = '1.11': Could not find artifact
com.sun.jersey:jersey-server:bundle:1.11)
Anybody have a workaround? If so, can you send me a pom?
On Thu, Jun 28, 2012 at 3:59 PM, Christopher Piggott <cpiggott_at_gmail.com> wrote:
> Hi,
>
> I'm using the WADL generator and Jersey 1.11 (because it's bundled
> with glassfish) and I am getting a really annoying warning. It's
> annoying because however netbeans flags it, it stops scrolling the
> compiler output window (presumably because it thinks it's important
> and wants me to look at it).
>
>
> ResourceManager : unable to find resource 'VM_global_library.vm' in
> any resource loader.
> Velocimacro : error using VM library template VM_global_library.vm
> : org.apache.velocity.exception.ResourceNotFoundException: Unable to
> find resource 'VM_global_library.vm'
>
>
> Does anybody know how to make this go away?
>
> Here's the plugin configuration, jersey-version is 1.11:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <version>2.4</version>
> <executions>
> <execution>
> <goals>
> <goal>javadoc</goal>
> </goals>
> <phase>compile</phase>
> </execution>
> </executions>
>
> <configuration>
>
> <encoding>UTF-8</encoding>
> <verbose>false</verbose>
> <show>public</show>
> <subpackages>com.vnomicscorp.hello.resources</subpackages>
>
> <doclet>com.sun.jersey.wadl.resourcedoc.ResourceDoclet</doclet>
> <docletArtifacts>
> <docletArtifact>
> <groupId>com.sun.jersey.contribs</groupId>
> <artifactId>wadl-resourcedoc-doclet</artifactId>
> <version>1.11</version>
> </docletArtifact>
> <docletArtifact>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-server</artifactId>
> <version>${jersey-version}</version>
> </docletArtifact>
> <docletArtifact>
> <groupId>xerces</groupId>
> <artifactId>xercesImpl</artifactId>
> <version>2.6.1</version>
> </docletArtifact>
> </docletArtifacts>
> <additionalparam>-output
> ${project.build.outputDirectory}/resourcedoc.xml</additionalparam>
>
> </configuration>
> </plugin>