Martin Grotzke wrote:
> Hi Paul,
>
> thanx for this hint! The generate-wadl/pom.xml now is tuned, so that all
> dependencies (for javadoc docletArtifacts) are added to the jdk1.5
> profile - for me mvn install now works with 1.5.
>
> Can you check if the error is really gone?
>
> Cheers,
> Martin
>
With these changes, the "generate-wadl" install now works for me on Mac
OS (JDK 1.5), and also works on my Linux box (JDK 1.6). Before, I was
getting the same error that Paul reports below.
Craig
>
> On Tue, 2008-07-29 at 11:17 +0200, Paul Sandoz wrote:
>
>> Hi,
>>
>> I get the an error (see end of email) when building with JDK 1.5. I am
>> guessing that is why Jakub commented it out in the first place :-)
>>
>> Adding a dependency on JAXB did not resolve it.
>>
>> I presume this is a dependency on the "maven-wadl-plugin" which has a
>> profile for JAXB with 1.5.
>>
>> For now i am commenting out this sample so we can build and push to maven.
>>
>> Paul.
>>
>>
>> [INFO] Velocimacro : initialization starting.
>> [INFO] Velocimacro : adding VMs from VM library template :
>> VM_global_library.vm
>> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
>> in any resource loader.
>> [INFO] Velocimacro : error using VM library template
>> VM_global_library.vm :
>> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
>> resource 'VM_global_library.vm'
>> [INFO] Velocimacro : VM library template macro registration complete.
>> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
>> templates
>> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
>> may NOT replace previous VM definitions
>> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
>> be global in scope if allowed.
>> [INFO] Velocimacro : initialization complete.
>> [INFO] Velocity successfully started.
>> [INFO] [javadoc:javadoc {execution: default}]
>> 1 error
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] An error has occurred in JavaDocs report generation:Exit code: 1
>> - java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
>> at java.lang.Class.getDeclaredMethods0(Native Method)
>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
>> at java.lang.Class.getMethod0(Class.java:2642)
>> at java.lang.Class.getMethod(Class.java:1579)
>> at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:246)
>> at com.sun.tools.javadoc.DocletInvoker.optionLength(DocletInvoker.java:169)
>> at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:290)
>> at com.sun.tools.javadoc.Start.begin(Start.java:128)
>> at com.sun.tools.javadoc.Main.execute(Main.java:41)
>> at com.sun.tools.javadoc.Main.main(Main.java:31)
>> javadoc: error - fatal error
>>
>> Command line was:"cd
>> /export/home/ps23762/Projects/REST/jersey/trunk/jersey/samples/generate-wadl/target/site/apidocs
>> && /usr/jdk/instances/jdk1.5.0/jre/../bin/javadoc" @options
>>
>
>