You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Michael Gentry <mg...@masslight.net> on 2012/02/28 15:00:59 UTC
Cayenne Modeler Maven Plugin + Filename
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
Re: Cayenne Modeler Maven Plugin + Filename
Posted by Michael Gentry <mg...@masslight.net>.
Hi Andrus,
I couldn't reproduce it, so I probably clicked the upgrade button by accident.
Thanks,
mrg
On Wed, Feb 29, 2012 at 8:17 AM, Michael Gentry <mg...@masslight.net> wrote:
> I'm pretty sure I told CM not to upgrade and I can test it again
> later. I have the files under version control, so they are
> recoverable.
>
> mrg
>
> On Wed, Feb 29, 2012 at 3:28 AM, Andrus Adamchik <an...@objectstyle.org> wrote:
>>
>> On Feb 28, 2012, at 5:58 PM, Michael Gentry wrote:
>>
>>> 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).
>>
>> Is this forced upgrade reproducible? Could be a Modeler bug.
>>
Re: Cayenne Modeler Maven Plugin + Filename
Posted by Michael Gentry <mg...@masslight.net>.
I'm pretty sure I told CM not to upgrade and I can test it again
later. I have the files under version control, so they are
recoverable.
mrg
On Wed, Feb 29, 2012 at 3:28 AM, Andrus Adamchik <an...@objectstyle.org> wrote:
>
> On Feb 28, 2012, at 5:58 PM, Michael Gentry wrote:
>
>> 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).
>
> Is this forced upgrade reproducible? Could be a Modeler bug.
>
Re: Cayenne Modeler Maven Plugin + Filename
Posted by Andrus Adamchik <an...@objectstyle.org>.
On Feb 28, 2012, at 5:58 PM, Michael Gentry wrote:
> 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).
Is this forced upgrade reproducible? Could be a Modeler bug.
Re: Cayenne Modeler Maven Plugin + Filename
Posted by Michael Gentry <mg...@masslight.net>.
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 <mg...@masslight.net> 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 <mg...@masslight.net> 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
Re: Cayenne Modeler Maven Plugin + Filename
Posted by Michael Gentry <mg...@masslight.net>.
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 <mg...@masslight.net> 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