You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by "Gilberto C. Andrade" <gi...@gmail.com> on 2009/08/06 21:45:21 UTC
Maven 2 Modeler - Configuration
Hi,
I need more information about this plugin. Until now, this [1] is only
source I've could find.
Can I setup my database on pom.xml file? For example:
[code]
<plugin>
<groupId>org.apache.cayenne.plugins</groupId>
<artifactId>maven-cayenne-modeler-plugin</artifactId>
<version>${cm.version}</version>
<configuration>
<driver>${jdbc.driverClassName}</driver>
<username>${jdbc.username}</username>
<password>${jdbc.password}</password>
<url>${jdbc.url}</url>
<src>src/test/resources/cayenne.xml</src>
</configuration>
<dependencies>
<dependency>
<groupId>${jdbc.groupId}</groupId>
<artifactId>${jdbc.artifactId}</artifactId>
<version>${jdbc.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
[/code]
How can I set it to:
* open the cayenne.xml from the project it is running;
* use maven classpath
Gilberto
[1]http://cayenne.apache.org/doc/maven2-plugins.html
Re: Maven 2 Modeler - Configuration
Posted by "Gilberto C. Andrade" <gi...@gmail.com>.
On Wed, Aug 12, 2009 at 1:25 PM, Kevin Menard<ni...@gmail.com> wrote:
> Hi Gilberto,
>
> The plugin should launch the modeler with the current project open.
> If it's not, that is a regression; please file a JIRA.
Done: https://issues.apache.org/jira/browse/CAY-1255
>
> As for the second part, the modeler maintains its own classpath for
> searching for JARs. The maven plugin does not augment this. Even if
> the modeler were changed, maven's classworlds or whatever they are
> called complicate what constitutes a maven classpath.
Ok, thanks!
Gilberto
Re: Maven 2 Modeler - Configuration
Posted by Kevin Menard <ni...@gmail.com>.
Hi Gilberto,
The plugin should launch the modeler with the current project open.
If it's not, that is a regression; please file a JIRA.
As for the second part, the modeler maintains its own classpath for
searching for JARs. The maven plugin does not augment this. Even if
the modeler were changed, maven's classworlds or whatever they are
called complicate what constitutes a maven classpath.
--
Kevin
On Thu, Aug 6, 2009 at 3:45 PM, Gilberto C. Andrade<gi...@gmail.com> wrote:
> Hi,
>
> I need more information about this plugin. Until now, this [1] is only
> source I've could find.
>
> Can I setup my database on pom.xml file? For example:
> [code]
> <plugin>
> <groupId>org.apache.cayenne.plugins</groupId>
> <artifactId>maven-cayenne-modeler-plugin</artifactId>
> <version>${cm.version}</version>
> <configuration>
> <driver>${jdbc.driverClassName}</driver>
> <username>${jdbc.username}</username>
> <password>${jdbc.password}</password>
> <url>${jdbc.url}</url>
> <src>src/test/resources/cayenne.xml</src>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>${jdbc.groupId}</groupId>
> <artifactId>${jdbc.artifactId}</artifactId>
> <version>${jdbc.version}</version>
> </dependency>
> </dependencies>
> </plugin>
> </plugins>
> [/code]
>
> How can I set it to:
> * open the cayenne.xml from the project it is running;
> * use maven classpath
>
> Gilberto
>
> [1]http://cayenne.apache.org/doc/maven2-plugins.html
>