Re: Maven cyclic dependency when compling tests only - how to resolve easily?

2012-06-08 Thread Ken E
That might work. Where do I put the second pom.xml for the tests then? The directory structure is like this: /main-project/pom.xml (contains all modules: moduleA -> moduleX) /main-project/moduleA/pom.xml /main-project/moduleA/src /main-project/moduleA/test/src So I put another pom.xml in /

Re: Maven cyclic dependency when compling tests only - how to resolve easily?

2012-06-08 Thread Manfred Moser
Pull the test code out into a separate module that makes everything available you need in there.. and run the test there. manfred http://simpligility.com On Fri, June 8, 2012 9:32 pm, Ken E wrote: > I am working on modernizing an older project to be used with Maven. The > project is very large an

Maven cyclic dependency when compling tests only - how to resolve easily?

2012-06-08 Thread Ken E
I am working on modernizing an older project to be used with Maven. The project is very large and has around 30 modules in it. As far as the main source code is concerned, I managed to get all of it to compile and establish the dependencies correctly. It actually works and it can be run through Ma

Re: plugin for JPA entity generation?

2012-06-08 Thread Dan Tran
give it a try since it may create a pure JPA2 entities ( no hibernate ) After that you can use with eclipse link -D On Fri, Jun 8, 2012 at 3:33 PM, J.V. wrote: > I can try this, but we are using EclipseLink and not hibernate, so > preferably would like an independent tool. > > thanks > > J.V.

Re: plugin for JPA entity generation?

2012-06-08 Thread James Carman
Never mind then :) On Jun 8, 2012 7:32 PM, "J.V." wrote: > We have three databases and 300+ tables. > > J.V. > > On 6/8/2012 4:57 PM, James Carman wrote: > >> How many tables are you going to reverse engineer? If it's not very >> many, I'd say you'd be better off just modeling your data yoursel

Re: plugin for JPA entity generation?

2012-06-08 Thread J.V.
We have three databases and 300+ tables. J.V. On 6/8/2012 4:57 PM, James Carman wrote: How many tables are you going to reverse engineer? If it's not very many, I'd say you'd be better off just modeling your data yourself and mapping it using the annotations or the XML. On Fri, Jun 8, 2012 at

Re: plugin for JPA entity generation?

2012-06-08 Thread James Carman
How many tables are you going to reverse engineer? If it's not very many, I'd say you'd be better off just modeling your data yourself and mapping it using the annotations or the XML. On Fri, Jun 8, 2012 at 6:34 PM, J.V. wrote: > I may look at omondo, we are using IntelliJ with EclipseLink for t

Re: plugin for JPA entity generation?

2012-06-08 Thread J.V.
I may look at omondo, we are using IntelliJ with EclipseLink for the JPA provider. J.V. On 6/8/2012 2:26 PM, Belhadj abdessalem wrote: Eclipse can do this easly for you otherwise we have omondo for generation entity bean Le 8 juin 2012 22:18, "J.V." a écrit : Is anyone aware of a Maven or A

Re: plugin for JPA entity generation?

2012-06-08 Thread J.V.
I can try this, but we are using EclipseLink and not hibernate, so preferably would like an independent tool. thanks J.V. On 6/8/2012 2:23 PM, Dan Tran wrote: hibernate3-maven-plugin? -D On Fri, Jun 8, 2012 at 1:18 PM, J.V. wrote: Is anyone aware of a Maven or Ant or Gradle plugin that ha

Hooking before and after a phase

2012-06-08 Thread Pascal Rapicault
Hi, I have a situation where I need to execute a mojo just before the execution of the mojo bound to the phase. Is there a way to achieve this without binding my mojo to the previous phase but to the phase that I'm interested in? For example, the "eclipse-plugin" packaging type has the followi

Re: plugin for JPA entity generation?

2012-06-08 Thread Belhadj abdessalem
Eclipse can do this easly for you otherwise we have omondo for generation entity bean Le 8 juin 2012 22:18, "J.V." a écrit : > Is anyone aware of a Maven or Ant or Gradle plugin that has a way to > configure to accept a connection to a database and generate JPA entities > from the DB? > > The sol

Re: plugin for JPA entity generation?

2012-06-08 Thread Dan Tran
hibernate3-maven-plugin? -D On Fri, Jun 8, 2012 at 1:18 PM, J.V. wrote: > Is anyone aware of a Maven or Ant or Gradle plugin that has a way to > configure to accept a connection to a database and generate JPA entities > from the DB? > > The solution would map the database types correctly (and wo

plugin for JPA entity generation?

2012-06-08 Thread J.V.
Is anyone aware of a Maven or Ant or Gradle plugin that has a way to configure to accept a connection to a database and generate JPA entities from the DB? The solution would map the database types correctly (and would work across all DB's including Oracle, MySQL, PostgreSQL & SQL Server), and

Re: newbie example for maven

2012-06-08 Thread Yaprak Ayazoglu
Thank you for the reply. Sent from my iPhone On 7 Jun 2012, at 20:39, Martin Gainty wrote: > > anders was right..setting M2_HOME to the maven deploy folder solved the > problem cwd $M2_HOME/bootls *.jar > plexus-classworlds-2.4.jar Cordialement.. > Martin > __

How to use PluginContext() method of AbstractMojo or ContextEnabled for custom Mojos?

2012-06-08 Thread Tonté Pouncil
Hello, I am trying to get two custom Mojos that I have created to communicate with each other. Mojo1 creates an object that I want to be available when Mojo2 executes. How do I do this? I've been trying to use org.apache.maven.plugin.AbstractMojo#set/getPluginContext() method and org.apach