Each include element should specify the files (including extension and path) to include. The path should be relative the source location. You may use Ant-style wildcards. In your case, for example, "com/abc/domain/**/*.java". There also an example in the docs: http://mojo.codehaus.org/jaxb2-maven-plugin/usage_schemagen.html
If there's anything that should be clarified in the docs, please file a JIRA ticket. Preferably with a patch and I'll apply it. /Anders On Tue, Feb 26, 2013 at 1:48 AM, Ben <bhaskar.d...@gmail.com> wrote: > Below is how I have included jaxb2-maven-plugin to generate the schema. > I am getting error: org.apache.maven.lifecycle.LifecycleExecutionException: > Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.5:schemagen > (default-cli) on project domain: The parameters 'includes' for goal > org.codehaus.mojo:jaxb2-maven-plugin:1.5:schemagen are missing or invalid. > > > > > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>jaxb2-maven-plugin</artifactId> > <version>1.5</version> > <executions> > <execution> > <phase>generate-resources</phase> > <goals> > <goal>schemagen</goal> > </goals> > </execution> > </executions> > <configuration> > <includes> > > <include>${project.build.sourceDirectory}/com/abc/domain</include> > </includes> > > <outputDirectory>${project.build.directory}/schemas</outputDirectory> > <excludes> > <exclude>**/aspect/*.java</exclude> > </excludes> > <verbose>true</verbose> > </configuration> > </plugin> > > Thanks in advance. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >