org.apache.maven.plugin.PluginParameterException: The parameters 'includes' for goal org.codehaus.mojo:jaxb2-maven-plugin:1.5:schemagen are missing or invalid

classic Classic list List threaded Threaded
3 messages Options
Ben
Reply | Threaded
Open this post in threaded view
|

org.apache.maven.plugin.PluginParameterException: The parameters 'includes' for goal org.codehaus.mojo:jaxb2-maven-plugin:1.5:schemagen are missing or invalid

Ben
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


Reply | Threaded
Open this post in threaded view
|

Re: org.apache.maven.plugin.PluginParameterException: The parameters 'includes' for goal org.codehaus.mojo:jaxb2-maven-plugin:1.5:schemagen are missing or invalid

Anders Hammar
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 <[hidden email]> 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



Ben
Reply | Threaded
Open this post in threaded view
|

Re: org.apache.maven.plugin.PluginParameterException: The parameters 'includes' for goal org.codehaus.mojo:jaxb2-maven-plugin:1.5:schemagen are missing or invalid

Ben
Even after changing it to what you suggested (pasted below) I am still getting
the same exception:
<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>com/abc/domain/**/*.java</include>
                </includes>    
<outputDirectory>${project.build.directory}/schemas</outputDirectory>
        <excludes>
                            <exclude>**/aspect/*.java</exclude>
          </excludes>
          <verbose>true</verbose>
        </configuration>
        </plugin>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email