users@jersey.java.net

[Jersey] Annoying warning: unable to find resource 'VM_global_library.vm'

From: Christopher Piggott <cpiggott_at_gmail.com>
Date: Thu, 28 Jun 2012 15:59:52 -0400

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>