users@jaxb.java.net

problem using jaxb2 basics to generate toString() methods.

From: <cougar_at_casadelgato.com>
Date: Tue, 23 Aug 2011 20:10:03 +0000 (GMT)

When I try to use the Jaxb2 Basics plugin to generate toString(),
hashCode(), and equals() with the following pom segment, i get this
error:
==
[INFO] Error while setting CmdLine <args> options '[-Xequals,
-XhashCode, -XtoString, -episode, /home/john....]'!

Embedded error: unrecognized parameter -Xequals
==

Any suggestions on what i'm doing wrong? I thought I had followed the
directions to use this.

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jvnet.jaxb2.maven2</groupId>
        <artifactId>maven-jaxb2-plugin</artifactId>
        <version>0.6.1</version>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <catalog>src/main/resources/consumerCatalog.cat</catalog>
             
<catalogResolver>org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalog
Resolver</catalogResolver>
              <episodes>
              </episodes>
              <extension>true</extension>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <extension>true</extension>
          <args>
            <arg>-Xequals</arg>
            <arg>-XhashCode</arg>
            <arg>-XtoString</arg>
          </args>
          <plugins>
            <plugin>
              <groupId>org.jvnet.jaxb2_commons</groupId>
              <artifactId>jaxb2-basics</artifactId>
              <version>0.5.3</version>
            </plugin>
          </plugins>
        </configuration>
      </plugin>
    </plugins>
  </build>