I might should add I was basing "modelFile" on the 3.0 source code:
/**
* Maven mojo to start up the Cayenne modeler from the command-line.
*
* @since 3.0
*
* @prefix cayenne-modeler
* @goal run
*/
public class CayenneModelerMojo extends AbstractMojo {
/**
* Name of the model file to open.
*
* @parameter expression="${modeler.modelFile}
*/
private File modelFile;
...
Thanks,
mrg
On Tue, Feb 28, 2012 at 9:00 AM, Michael Gentry <[email protected]> wrote:
> Does anyone know how to get Cayenne Modeler (3.0) to start up with the
> model using the Maven Plugin?
>
> I've tried:
>
> mvn -Dmodeler.modelFile=./src/main/resources/cayenne.xml cayenne-modeler:run
>
> This gave the standard splash screen. I also tried specifying the
> model in the plugin:
>
> <plugin>
> <groupId>org.apache.cayenne.plugins</groupId>
> <artifactId>maven-cayenne-modeler-plugin</artifactId>
> <version>${cayenne.version}</version>
> <configuration>
> <modelFile>./src/main/resources/cayenne.xml</modelFile>
> </configuration>
> </plugin>
>
> This also just gave the splash screen.
>
> Thanks,
>
> mrg