Solved it ... The first time I tried this, I didn't specify <version>3.0.2</version> in the pom.xml for the maven-cayenne-modeler-plugin. This started up the 3.1 milestone Cayenne Modeler and converted my project to 3.1 (even though I told it not to when I realized what was happening), which deleted the cayenne.xml file (rendering 3.0 useless).
My pom.xml and command-line both seem to have been correct once I restored the 3.0 model files. Thanks, mrg On Tue, Feb 28, 2012 at 9:39 AM, Michael Gentry <[email protected]> wrote: > 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
