The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: How can I pass a URL to maven-jaxb-plugin

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0
ss141213

Posts: 499
How can I pass a URL to maven-jaxb-plugin
Posted: Nov 22, 2007 1:02 PM
  Click to reply to this thread Reply

I don't want to make a copy of the schema which is publicly available in my project directory. So, I would like to pass a URL to maven-jaxb-plugin just like I can pass a URL to XJC. I tried doing this, but it does not work:


<plugin>
<groupId>com.sun.tools.xjc.maven2</groupId>
<artifactId>maven-jaxb-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<args>
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
</args>
</configuration>
</execution>
</executions>
</plugin>

I don't see args being passed to XJC.

Thanks,
Sahoo




 XML java.net RSS