nokia / Avro-Schema-Generator

Tool which generates Avro schemas and Java bindings from XML schemas.
Apache License 2.0
37 stars 26 forks source link

unrecognized parameter -XavroSchemagen #5

Closed ksu-ksu closed 9 years ago

ksu-ksu commented 9 years ago

Hi Ben, This tools is what I need for a project at work. built it successfully. Then I created the maven project with command: mvn archetype:generate -DgroupId={project-packaging} -DartifactId={project-name} -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Add the plugin to this project and built it successfully. but when attempting to run mvn schemagen:generate, I got the following: [INFO] --- schemagen-plugin:0.4-SNAPSHOT:generate (default-cli) @ TestProj --- [INFO] command string: -p ksspackage -XavroSchemagen -d C:\Soloveik\SchemaCompiler\schemagen-plugin\src\test\output C:\Soloveik\SchemaCompiler\schemagen-plugin\src\test\resources\gmtTrade.xsd [INFO] Beginning combined JAXB xjc and avro schema generation. unrecognized parameter -XavroSchemagen Usage: xjc [-options ...] <schema file/URL/dir/jar> ... [-b ] ... If dir is specified, all schema files in it will be compiled. If jar is specified, /META-INF/sun-jaxb.episode binding file will be compiled. Options: ........... I am new with maven. And I really need this working. Am I doing smth wrong? Could you please advice.

Thank you.