RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-08-25 Thread Johann Reyes
Hello Matt

The dependencies issue its fixed in the hibernate tools dependency that's in 
queue to be uploaded (http://jira.codehaus.org/browse/MAVENUPLOAD-1053). These 
dependencies would depend on jars that are in the maven repo like the 
Geronimo's JTA implementation. So as soon these dependencies are uploaded, I'll 
publish a new snapshot of the plugin.

Regards

Johann Reyes

-Original Message-
From: mraible [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 24, 2006 5:14 PM
To: users@maven.apache.org
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together




Paul Kuykendall wrote:
> 
> Jose,
> 
> I found this in a blog somewhere (I didn't bookmark it, just copied it 
> into a "tips and tricks" email I sent myself at work).  I still ran 
> into problems with the hibernate3-maven-plugin complaining it couldn't 
> resolve a dependency somewhere down the line to 
> maven-hibernate3-plugin.  It could have been something I've been doing 
> wrong, but your problem was fairly easy to track down (after more than 
> a few hours of google searching).  I did use a different way of doing 
> the jta installation.  I created a jar file and installed that rather 
> than the zip file.
> 
> /Paul
> 
> The below is quite shamefully included without attribution.  I take no 
> claim for its origination.
> 
> Special dependencies
> 
> Most of the dependencies you need will be automatically downloaded by 
> Maven from a remote repository, but two by Sun can't be held there. Go 
> to this page <http://java.sun.com/products/jta/> to get the JTA 
> interfaces from the Download link next to "Class Files 1.0.1B," then 
> paste the following into a shell in your download directory:
> 
> mvn install:install-file -DgroupId=javax.transaction \
>   -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar \
>   -Dfile=jta-1_0_1B-classes.zip
> 
> (Or use jta.jar from the Hibernate 3.1.1 distribution, if you have 
> that already — just change the -Dfile= parameter above.)
> 
> For the EJB 3.0 *public final draft* dependency, you'll need to 
> download Hibernate 
> Annotations<http://prdownloads.sourceforge.net/hibernate/hibernate-ann
> otations-3.2.0.CR1.tar.gz?download>,
> expand the archive, change to its lib directory, then:
> 
> mvn install:install-file -DgroupId=javax.persistence \
>   -DartifactId=ejb -Dversion=3.0-public-draft-20060502
>  \
>   -Dpackaging=jar -Dfile=ejb3-persistence.jar
> 
> 

Is it possible to override a plugin's dependencies, like you can with a normal 
dependency?  I'm trying to use the maven-hibernate3-plugin, and getting the 
following error:

Missing:
--
1) javax.transaction:jta:jar:1.0.1B

  Try downloading the file manually from: 
  http://java.sun.com/products/jta

  Then, install it using the command: 
  mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta \
  -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency: 
1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9
2) org.hibernate:hibernate-tools:jar:3.1.0.beta4
3) org.hibernate:hibernate:jar:3.1.2
4) javax.transaction:jta:jar:1.0.1B

--
1 required artifact is missing.

for artifact: 
 
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9

I'd like to do something like I can do in my normal pom.xml's - where I can use 
Geronimo's JTA implementation instead:


org.hibernate
hibernate
3.2.0.cr3


javax.transaction
jta




geronimo-spec
geronimo-spec-jta
1.0.1B-rc4


Thanks,

Matt
--
View this message in context: 
http://www.nabble.com/-m2--Frustration-getting-Maven-2-and-Hibernate-working-together-tf1892454.html#a5972898
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-08-24 Thread Matt Raible

Thanks, that worked.

On 8/24/06, Eric Redmond <[EMAIL PROTECTED]> wrote:

Sure you can:

   
 ...
 
   
   org.hibernate
   hibernate
   3.2.0.cr3
   
   
   javax.transaction
   jta
   
   
   
 


On 8/24/06, mraible <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Paul Kuykendall wrote:
> >
> > Jose,
> >
> > I found this in a blog somewhere (I didn't bookmark it, just copied it
> > into
> > a "tips and tricks" email I sent myself at work).  I still ran into
> > problems
> > with the hibernate3-maven-plugin complaining it couldn't resolve a
> > dependency somewhere down the line to maven-hibernate3-plugin.  It could
> > have been something I've been doing wrong, but your problem was fairly
> > easy
> > to track down (after more than a few hours of google searching).  I did
> > use
> > a different way of doing the jta installation.  I created a jar file and
> > installed that rather than the zip file.
> >
> > /Paul
> >
> > The below is quite shamefully included without attribution.  I take no
> > claim
> > for its origination.
> >
> > Special dependencies
> >
> > Most of the dependencies you need will be automatically downloaded by
> > Maven
> > from a remote repository, but two by Sun can't be held there. Go to this
> > page  to get the JTA interfaces from
> > the
> > Download link next to "Class Files 1.0.1B," then paste the following
> into
> > a
> > shell in your download directory:
> >
> > mvn install:install-file -DgroupId=javax.transaction \
> >   -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar \
> >   -Dfile=jta-1_0_1B-classes.zip
> >
> > (Or use jta.jar from the Hibernate 3.1.1 distribution, if you have that
> > already — just change the -Dfile= parameter above.)
> >
> > For the EJB 3.0 *public final draft* dependency, you'll need to
> > download Hibernate
> > Annotations<
> 
http://prdownloads.sourceforge.net/hibernate/hibernate-annotations-3.2.0.CR1.tar.gz?download
> >,
> > expand the archive, change to its lib directory, then:
> >
> > mvn install:install-file -DgroupId=javax.persistence \
> >   -DartifactId=ejb -Dversion=3.0-public-draft-20060502
> >  \
> >   -Dpackaging=jar -Dfile=ejb3-persistence.jar
> >
> >
>
> Is it possible to override a plugin's dependencies, like you can with a
> normal dependency?  I'm trying to use the maven-hibernate3-plugin, and
> getting the following error:
>
> Missing:
> --
> 1) javax.transaction:jta:jar:1.0.1B
>
>   Try downloading the file manually from:
>   http://java.sun.com/products/jta
>
>   Then, install it using the command:
>   mvn install:install-file -DgroupId=javax.transaction-DartifactId=jta
> \
>   -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
> 1)
>
> org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9
> 2) org.hibernate:hibernate-tools:jar:3.1.0.beta4
> 3) org.hibernate:hibernate:jar:3.1.2
> 4) javax.transaction:jta:jar:1.0.1B
>
> --
> 1 required artifact is missing.
>
> for artifact:
>
>
> org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9
>
> I'd like to do something like I can do in my normal pom.xml's - where I
> can
> use Geronimo's JTA implementation instead:
>
> 
> org.hibernate
> hibernate
> 3.2.0.cr3
> 
> 
> javax.transaction
> jta
> 
> 
> 
> 
> geronimo-spec
> geronimo-spec-jta
> 1.0.1B-rc4
> 
>
> Thanks,
>
> Matt
> --
> View this message in context:
> 
http://www.nabble.com/-m2--Frustration-getting-Maven-2-and-Hibernate-working-together-tf1892454.html#a5972898
> Sent from the Maven - Users forum at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Eric Redmond
http://codehaus.org/~eredmond




Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-08-24 Thread Eric Redmond

Sure you can:

  
...

  
  org.hibernate
  hibernate
  3.2.0.cr3
  
  
  javax.transaction
  jta
  
  
  



On 8/24/06, mraible <[EMAIL PROTECTED]> wrote:





Paul Kuykendall wrote:
>
> Jose,
>
> I found this in a blog somewhere (I didn't bookmark it, just copied it
> into
> a "tips and tricks" email I sent myself at work).  I still ran into
> problems
> with the hibernate3-maven-plugin complaining it couldn't resolve a
> dependency somewhere down the line to maven-hibernate3-plugin.  It could
> have been something I've been doing wrong, but your problem was fairly
> easy
> to track down (after more than a few hours of google searching).  I did
> use
> a different way of doing the jta installation.  I created a jar file and
> installed that rather than the zip file.
>
> /Paul
>
> The below is quite shamefully included without attribution.  I take no
> claim
> for its origination.
>
> Special dependencies
>
> Most of the dependencies you need will be automatically downloaded by
> Maven
> from a remote repository, but two by Sun can't be held there. Go to this
> page  to get the JTA interfaces from
> the
> Download link next to "Class Files 1.0.1B," then paste the following
into
> a
> shell in your download directory:
>
> mvn install:install-file -DgroupId=javax.transaction \
>   -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar \
>   -Dfile=jta-1_0_1B-classes.zip
>
> (Or use jta.jar from the Hibernate 3.1.1 distribution, if you have that
> already — just change the -Dfile= parameter above.)
>
> For the EJB 3.0 *public final draft* dependency, you'll need to
> download Hibernate
> Annotations<
http://prdownloads.sourceforge.net/hibernate/hibernate-annotations-3.2.0.CR1.tar.gz?download
>,
> expand the archive, change to its lib directory, then:
>
> mvn install:install-file -DgroupId=javax.persistence \
>   -DartifactId=ejb -Dversion=3.0-public-draft-20060502
>  \
>   -Dpackaging=jar -Dfile=ejb3-persistence.jar
>
>

Is it possible to override a plugin's dependencies, like you can with a
normal dependency?  I'm trying to use the maven-hibernate3-plugin, and
getting the following error:

Missing:
--
1) javax.transaction:jta:jar:1.0.1B

  Try downloading the file manually from:
  http://java.sun.com/products/jta

  Then, install it using the command:
  mvn install:install-file -DgroupId=javax.transaction-DartifactId=jta
\
  -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1)

org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9
2) org.hibernate:hibernate-tools:jar:3.1.0.beta4
3) org.hibernate:hibernate:jar:3.1.2
4) javax.transaction:jta:jar:1.0.1B

--
1 required artifact is missing.

for artifact:


org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9

I'd like to do something like I can do in my normal pom.xml's - where I
can
use Geronimo's JTA implementation instead:


org.hibernate
hibernate
3.2.0.cr3


javax.transaction
jta




geronimo-spec
geronimo-spec-jta
1.0.1B-rc4


Thanks,

Matt
--
View this message in context:
http://www.nabble.com/-m2--Frustration-getting-Maven-2-and-Hibernate-working-together-tf1892454.html#a5972898
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Eric Redmond
http://codehaus.org/~eredmond


Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-08-24 Thread mraible



Paul Kuykendall wrote:
> 
> Jose,
> 
> I found this in a blog somewhere (I didn't bookmark it, just copied it
> into
> a "tips and tricks" email I sent myself at work).  I still ran into
> problems
> with the hibernate3-maven-plugin complaining it couldn't resolve a
> dependency somewhere down the line to maven-hibernate3-plugin.  It could
> have been something I've been doing wrong, but your problem was fairly
> easy
> to track down (after more than a few hours of google searching).  I did
> use
> a different way of doing the jta installation.  I created a jar file and
> installed that rather than the zip file.
> 
> /Paul
> 
> The below is quite shamefully included without attribution.  I take no
> claim
> for its origination.
> 
> Special dependencies
> 
> Most of the dependencies you need will be automatically downloaded by
> Maven
> from a remote repository, but two by Sun can't be held there. Go to this
> page  to get the JTA interfaces from
> the
> Download link next to "Class Files 1.0.1B," then paste the following into
> a
> shell in your download directory:
> 
> mvn install:install-file -DgroupId=javax.transaction \
>   -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar \
>   -Dfile=jta-1_0_1B-classes.zip
> 
> (Or use jta.jar from the Hibernate 3.1.1 distribution, if you have that
> already — just change the -Dfile= parameter above.)
> 
> For the EJB 3.0 *public final draft* dependency, you'll need to
> download Hibernate
> Annotations,
> expand the archive, change to its lib directory, then:
> 
> mvn install:install-file -DgroupId=javax.persistence \
>   -DartifactId=ejb -Dversion=3.0-public-draft-20060502
>  \
>   -Dpackaging=jar -Dfile=ejb3-persistence.jar
> 
> 

Is it possible to override a plugin's dependencies, like you can with a
normal dependency?  I'm trying to use the maven-hibernate3-plugin, and
getting the following error:

Missing:
--
1) javax.transaction:jta:jar:1.0.1B

  Try downloading the file manually from: 
  http://java.sun.com/products/jta

  Then, install it using the command: 
  mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta
\
  -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency: 
1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9
2) org.hibernate:hibernate-tools:jar:3.1.0.beta4
3) org.hibernate:hibernate:jar:3.1.2
4) javax.transaction:jta:jar:1.0.1B

--
1 required artifact is missing.

for artifact: 
 
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9

I'd like to do something like I can do in my normal pom.xml's - where I can
use Geronimo's JTA implementation instead:


org.hibernate
hibernate
3.2.0.cr3


javax.transaction
jta




geronimo-spec
geronimo-spec-jta
1.0.1B-rc4


Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/-m2--Frustration-getting-Maven-2-and-Hibernate-working-together-tf1892454.html#a5972898
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-07 Thread Johann Reyes
Hello Jose

Actually, I'm not, I should be, but I wasn't subscribe in that list, if you
want to resend your email, I'll be able to receive it now.

Regards

Johann Reyes

-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 07, 2006 3:20 AM
To: Maven Users List
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

Glad to help :o)

About the hibernate dependency, I just have added the hibernate annotations
jar because I'm using some hibernate propietary annotations.

By the way, are you subscribed to the mojo user list? I sent a message there
about an issue regarding schema usage, but no one has answered... should I
forward the question to the mojo development list?

Best regards
Jose

2006/7/6, Johann Reyes <[EMAIL PROTECTED]>:
>
> Hello Jose
>
> Thanks for the help; I updated the documentation to reflect this. Also to
> use the plugin you don't need to include the hibernate jars as dependency
> to
> run the plugin.
>
> Regards
>
> Johann Reyes
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-07 Thread Jose Gonzalez Gomez

Glad to help :o)

About the hibernate dependency, I just have added the hibernate annotations
jar because I'm using some hibernate propietary annotations.

By the way, are you subscribed to the mojo user list? I sent a message there
about an issue regarding schema usage, but no one has answered... should I
forward the question to the mojo development list?

Best regards
Jose

2006/7/6, Johann Reyes <[EMAIL PROTECTED]>:


Hello Jose

Thanks for the help; I updated the documentation to reflect this. Also to
use the plugin you don't need to include the hibernate jars as dependency
to
run the plugin.

Regards

Johann Reyes



RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-06 Thread Johann Reyes
Hello Jose

Thanks for the help; I updated the documentation to reflect this. Also to
use the plugin you don't need to include the hibernate jars as dependency to
run the plugin.

Regards

Johann Reyes 

-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 06, 2006 3:18 AM
To: Maven Users List
Subject: Fwd: [m2] Frustration getting Maven 2 and Hibernate working
together

Just in case anybody else needs it...

-- Forwarded message --
From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
Date: 06-jul-2006 8:40
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together
To: Paul Kuykendall <[EMAIL PROTECTED]>

Ok, here we go...

First of all, add this to settings.xml (in your .m2 directory) in order to
be able to download plugins from the mojo repository:


  
  
  

  Snapshots

 
   
 Maven Snapshots
 http://snapshots.maven.codehaus.org/maven2/
 
   true
 
 
   false
 
   
 

  
  
Snapshots
  


Now, declare some dependencies in your pom, including the plugin
configuration and your desired JDBC driver (PostgreSQL in this case):



  [...]

  

  
org.codehaus.mojo
hibernate3-maven-plugin

1.0-SNAPSHOT

  

/src/main/resources/hibernate.cfg.xml

  
  
src/main/resources
  

  


  
postgresql
postgresql
8.1-407.jdbc3 
  

  
  
  
[...]

  javax.persistence
  persistence-api



  org.hibernate
  hibernate-annotations
  3.2.0.cr1
  

  javax.persistence 
  ejb

  

  


Comments on this: first of all, I have no version declared for
persistence-api because I have a parent pom with dependency management (I
will include hibernate-annotations there once I have an stable
configuration); you must include hibernate-annotations as a dependency in
your project only if you want to use hibernate propietary annotations; if
you do include hibernate-annotations you must exclude the
javax.persistence:ejb dependency, as it uses and old draft version I've been
unable to find on the Internet.

Finally you must create your /src/main/resources/hibernate.cfg.xml,
something like this:


http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>


  
  

org.postgresql.Driver

jdbc:postgresql://your.server/yourDatabase

yourUser
yourPassword
 org.hibernate.dialect.PostgreSQLDialect

false

org.hibernate.transaction.JTATransactionFactory 
java:comp/UserTransaction




  


I was testing a single class, I guess if you have a full package you may use
the commented line to include all the classes. Once I did this, I run mvn
hibernate3:hbm2ddl and the plugin connected to my database and created the
table. I think I don't miss anything...

HTH, best regards
Jose

2006/7/5, Paul Kuykendall <[EMAIL PROTECTED]>:

> I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Johann Reyes
Actually yeah, you don't need to specify the repositories. For my project
this is the only reference that I have for the plugin:

  
org.codehaus.mojo
hibernate3-maven-plugin

  
/src/main/resources/hibernate.cfg.xml
  
  
src/main/resources
  

  

Regards'

Johann Reyes

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben
short
Sent: Wednesday, July 05, 2006 1:47 PM
To: Maven Users List
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

Dont i need the Repository and pluginRepository elements to tell maven
to get the plugin from the codehaus snapshot repo?

Ben

On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
> Hello Ben
>
> I would remove the following lines from the pom.xml
>
> > - 
> >   org.codehaus.mojo
> >   hibernate3-maven-plugin
> >   1.0-SNAPSHOT
> >   compile
> >   
> >   
> > - 
> > - 
> >   Maven Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> > - 
> >   true
> >   
> > - 
> >   false
> >   
> >   
> >   
> > - 
> > - 
> >   Maven Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> > - 
> >   true
> >   
> > - 
> >   false
> >   
> >   
> >   
>
> And then run maven with the -U parameter, something like "mvn -U
> hibernate3:schema-export"
>
> Regards
>
> Johann Reyes
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
ben
> short
> Sent: Wednesday, July 05, 2006 12:15 PM
> To: Maven Users List
> Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working
together
>
> Sorry the error is actually...
>
> The plugin 'org.codehaus.mojo:hibernate3-maven-plugin' does not exist
> or no valid version could be found
>
>
> On 7/5/06, ben short <[EMAIL PROTECTED]> wrote:
> > Johann ,
> >
> > Im trying to use the hibernate3 plugin but get the following error.
> >
> > The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
> > exist or no valid version could be found
> >
> > Below is my pom file
> >
> > http://maven.apache.org/POM/4.0.0";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >   4.0.0
> >   com.mycompany.app
> >   my-app
> >   jar
> >   1.0-SNAPSHOT
> >   Maven Quick Start Archetype
> >   http://maven.apache.org
> > - 
> > - 
> >   junit
> >   junit
> >   3.8.1
> >   test
> >   
> > - 
> >   org.codehaus.mojo
> >   hibernate3-maven-plugin
> >   1.0-SNAPSHOT
> >   compile
> >   
> >   
> > - 
> > - 
> >   Maven Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> > - 
> >   true
> >   
> > - 
> >   false
> >   
> >   
> >   
> > - 
> > - 
> >   Maven Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> > - 
> >   true
> >   
> > - 
> >   false
> >   
> >   
> >   
> > - 
> > - 
> > - 
> >   org.codehaus.mojo
> >   hibernate3-maven-plugin
> > - 
> > - 
> >
>
/src/main/resources/hibernate.cfg.xml
> >   
> > - 
> >   src/main/resources
> >   
> >   
> >   
> >   
> >   
> >   
> >
> > Any ideas what I am doing wronge?
> >
> > Ben
> >
> >
> > On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
> > > Hello Paul
> > >
> > > Actually an update. I was able to go around the bug that was stopping
me
> > > from deploying and was able to successfully deploy a snapshot. So now
a
> > > hibernate3-maven-plugin is available to use.
> > >
> > > Regards
> > >
> > > Johann Reyes
> > >
> > > -Original Message-
> > > From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 05, 2006 9:15 AM
> > > To: Maven Users List; Jose Gonzalez Gomez
> > > Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working
> together
> > >
> > > I would be more appreciative than you can ever imagine if you could
send
> > > that information.
> > >
> > > Thanks!
> > >
> > > /Paul
> > >
> > 

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread ben short

Fixed it. I needed to add the version as follows.



   org.codehaus.mojo
hibernate3-maven-plugin
1.0-SNAPSHOT 
   
   

/src/main/resources/hibernate.cfg.xml
   
   
   src/main/resources
   
   





On 7/5/06, ben short <[EMAIL PROTECTED]> wrote:

Dont i need the Repository and pluginRepository elements to tell maven
to get the plugin from the codehaus snapshot repo?

Ben

On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
> Hello Ben
>
> I would remove the following lines from the pom.xml
>
> > - 
> >   org.codehaus.mojo
> >   hibernate3-maven-plugin
> >   1.0-SNAPSHOT
> >   compile
> >   
> >   
> > - 
> > - 
> >   Maven Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> > - 
> >   true
> >   
> > - 
> >   false
> >   
> >   
> >   
> > - 
> > - 
> >   Maven Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> > - 
> >   true
> >   
> > - 
> >   false
> >   
> >   
> >   
>
> And then run maven with the -U parameter, something like "mvn -U
> hibernate3:schema-export"
>
> Regards
>
> Johann Reyes
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben
> short
> Sent: Wednesday, July 05, 2006 12:15 PM
> To: Maven Users List
> Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together
>
> Sorry the error is actually...
>
> The plugin 'org.codehaus.mojo:hibernate3-maven-plugin' does not exist
> or no valid version could be found
>
>
> On 7/5/06, ben short <[EMAIL PROTECTED]> wrote:
> > Johann ,
> >
> > Im trying to use the hibernate3 plugin but get the following error.
> >
> > The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
> > exist or no valid version could be found
> >
> > Below is my pom file
> >
> > http://maven.apache.org/POM/4.0.0";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >   4.0.0
> >   com.mycompany.app
> >   my-app
> >   jar
> >   1.0-SNAPSHOT
> >   Maven Quick Start Archetype
> >   http://maven.apache.org
> > - 
> > - 
> >   junit
> >   junit
> >   3.8.1
> >   test
> >   
> > - 
> >   org.codehaus.mojo
> >   hibernate3-maven-plugin
> >   1.0-SNAPSHOT
> >   compile
> >   
> >   
> > - 
> > - 
> >   Maven Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> > - 
> >   true
> >   
> > - 
> >   false
> >   
> >   
> >   
> > - 
> > - 
> >   Maven Snapshots
> >   http://snapshots.maven.codehaus.org/maven2/
> > - 
> >   true
> >   
> > - 
> >   false
> >   
> >   
> >   
> > - 
> > - 
> > - 
> >   org.codehaus.mojo
> >   hibernate3-maven-plugin
> > - 
> > - 
> >
> /src/main/resources/hibernate.cfg.xml
> >   
> > - 
> >   src/main/resources
> >   
> >   
> >   
> >   
> >   
> >   
> >
> > Any ideas what I am doing wronge?
> >
> > Ben
> >
> >
> > On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
> > > Hello Paul
> > >
> > > Actually an update. I was able to go around the bug that was stopping me
> > > from deploying and was able to successfully deploy a snapshot. So now a
> > > hibernate3-maven-plugin is available to use.
> > >
> > > Regards
> > >
> > > Johann Reyes
> > >
> > > -Original Message-
> > > From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 05, 2006 9:15 AM
> > > To: Maven Users List; Jose Gonzalez Gomez
> > > Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working
> together
> > >
> > > I would be more appreciative than you can ever imagine if you could send
> > > that information.
> > >
> > > Thanks!
> > >
> > > /Paul
> > >
> > > On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Paul,
> > > &

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread ben short

Dont i need the Repository and pluginRepository elements to tell maven
to get the plugin from the codehaus snapshot repo?

Ben

On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:

Hello Ben

I would remove the following lines from the pom.xml

> - 
>   org.codehaus.mojo
>   hibernate3-maven-plugin
>   1.0-SNAPSHOT
>   compile
>   
>   
> - 
> - 
>   Maven Snapshots
>   http://snapshots.maven.codehaus.org/maven2/
> - 
>   true
>   
> - 
>   false
>   
>   
>   
> - 
> - 
>   Maven Snapshots
>   http://snapshots.maven.codehaus.org/maven2/
> - 
>   true
>   
> - 
>   false
>   
>   
>   

And then run maven with the -U parameter, something like "mvn -U
hibernate3:schema-export"

Regards

Johann Reyes

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben
short
Sent: Wednesday, July 05, 2006 12:15 PM
To: Maven Users List
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

Sorry the error is actually...

The plugin 'org.codehaus.mojo:hibernate3-maven-plugin' does not exist
or no valid version could be found


On 7/5/06, ben short <[EMAIL PROTECTED]> wrote:
> Johann ,
>
> Im trying to use the hibernate3 plugin but get the following error.
>
> The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
> exist or no valid version could be found
>
> Below is my pom file
>
> http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   4.0.0
>   com.mycompany.app
>   my-app
>   jar
>   1.0-SNAPSHOT
>   Maven Quick Start Archetype
>   http://maven.apache.org
> - 
> - 
>   junit
>   junit
>   3.8.1
>   test
>   
> - 
>   org.codehaus.mojo
>   hibernate3-maven-plugin
>   1.0-SNAPSHOT
>   compile
>   
>   
> - 
> - 
>   Maven Snapshots
>   http://snapshots.maven.codehaus.org/maven2/
> - 
>   true
>   
> - 
>   false
>   
>   
>   
> - 
> - 
>   Maven Snapshots
>   http://snapshots.maven.codehaus.org/maven2/
> - 
>   true
>   
> - 
>   false
>   
>   
>   
> - 
> - 
> - 
>   org.codehaus.mojo
>   hibernate3-maven-plugin
> - 
> - 
>
/src/main/resources/hibernate.cfg.xml
>   
> - 
>   src/main/resources
>   
>   
>   
>   
>   
>   
>
> Any ideas what I am doing wronge?
>
> Ben
>
>
> On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
> > Hello Paul
> >
> > Actually an update. I was able to go around the bug that was stopping me
> > from deploying and was able to successfully deploy a snapshot. So now a
> > hibernate3-maven-plugin is available to use.
> >
> > Regards
> >
> > Johann Reyes
> >
> > -Original Message-
> > From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 05, 2006 9:15 AM
> > To: Maven Users List; Jose Gonzalez Gomez
> > Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working
together
> >
> > I would be more appreciative than you can ever imagine if you could send
> > that information.
> >
> > Thanks!
> >
> > /Paul
> >
> > On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
> > >
> > > Paul,
> > >
> > > It seems I've been able to run the hibernate plugin from the mojo
> > > successfully (at least it has created a table with a pair of
attributes
> > > from
> > > an annotated class). I'm going out in a few minutes, so if you're
> > > interested
> > > in how I did it drop me a line (or drop it to the list) and I'll post
> > > excerpts from pom, settings, ... tomorrow.
> > >
> > > Best regards
> > > Jose
> > >
> > > 2006/7/5, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > > >
> > > > Paul,
> > > >
> > > > I'm trying to do the same, and I'm facing some troubles, maybe you
can
> > > > help me... First of all, I haven't been able to find one of the
> > > dependencies
> > > > of the Hibernate Annotations packages:
> > > > javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to
be
> > > an
> > > > implementation of a public draft that has been removed from ibiblio.
> > > Anyway,
> > > > I'm using the javax.persistence:persistence-api:1.0 from the
> > > java.netrepository. I guess

RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Johann Reyes
Hello Ben

I would remove the following lines from the pom.xml

> - 
>   org.codehaus.mojo
>   hibernate3-maven-plugin
>   1.0-SNAPSHOT
>   compile
>   
>   
> - 
> - 
>   Maven Snapshots
>   http://snapshots.maven.codehaus.org/maven2/
> - 
>   true
>   
> - 
>   false
>   
>   
>   
> - 
> - 
>   Maven Snapshots
>   http://snapshots.maven.codehaus.org/maven2/
> - 
>   true
>   
> - 
>   false
>   
>   
>   

And then run maven with the -U parameter, something like "mvn -U
hibernate3:schema-export"

Regards

Johann Reyes

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben
short
Sent: Wednesday, July 05, 2006 12:15 PM
To: Maven Users List
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

Sorry the error is actually...

The plugin 'org.codehaus.mojo:hibernate3-maven-plugin' does not exist
or no valid version could be found


On 7/5/06, ben short <[EMAIL PROTECTED]> wrote:
> Johann ,
>
> Im trying to use the hibernate3 plugin but get the following error.
>
> The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
> exist or no valid version could be found
>
> Below is my pom file
>
> http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   4.0.0
>   com.mycompany.app
>   my-app
>   jar
>   1.0-SNAPSHOT
>   Maven Quick Start Archetype
>   http://maven.apache.org
> - 
> - 
>   junit
>   junit
>   3.8.1
>   test
>   
> - 
>   org.codehaus.mojo
>   hibernate3-maven-plugin
>   1.0-SNAPSHOT
>   compile
>   
>   
> - 
> - 
>   Maven Snapshots
>   http://snapshots.maven.codehaus.org/maven2/
> - 
>   true
>   
> - 
>   false
>   
>   
>   
> - 
> - 
>   Maven Snapshots
>   http://snapshots.maven.codehaus.org/maven2/
> - 
>   true
>   
> - 
>   false
>   
>   
>   
> - 
> - 
> - 
>   org.codehaus.mojo
>   hibernate3-maven-plugin
> - 
> - 
>
/src/main/resources/hibernate.cfg.xml
>   
> - 
>   src/main/resources
>   
>   
>   
>   
>   
>   
>
> Any ideas what I am doing wronge?
>
> Ben
>
>
> On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
> > Hello Paul
> >
> > Actually an update. I was able to go around the bug that was stopping me
> > from deploying and was able to successfully deploy a snapshot. So now a
> > hibernate3-maven-plugin is available to use.
> >
> > Regards
> >
> > Johann Reyes
> >
> > -Original Message-
> > From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 05, 2006 9:15 AM
> > To: Maven Users List; Jose Gonzalez Gomez
> > Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working
together
> >
> > I would be more appreciative than you can ever imagine if you could send
> > that information.
> >
> > Thanks!
> >
> > /Paul
> >
> > On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
> > >
> > > Paul,
> > >
> > > It seems I've been able to run the hibernate plugin from the mojo
> > > successfully (at least it has created a table with a pair of
attributes
> > > from
> > > an annotated class). I'm going out in a few minutes, so if you're
> > > interested
> > > in how I did it drop me a line (or drop it to the list) and I'll post
> > > excerpts from pom, settings, ... tomorrow.
> > >
> > > Best regards
> > > Jose
> > >
> > > 2006/7/5, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > > >
> > > > Paul,
> > > >
> > > > I'm trying to do the same, and I'm facing some troubles, maybe you
can
> > > > help me... First of all, I haven't been able to find one of the
> > > dependencies
> > > > of the Hibernate Annotations packages:
> > > > javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to
be
> > > an
> > > > implementation of a public draft that has been removed from ibiblio.
> > > Anyway,
> > > > I'm using the javax.persistence:persistence-api:1.0 from the
> > > java.netrepository. I guess this is the final implementation of the
> > > missing
> > > > dependency, but I don't know how to override it or where to find it.
How
> > > > hav

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread ben short

Sorry the error is actually...

The plugin 'org.codehaus.mojo:hibernate3-maven-plugin' does not exist
or no valid version could be found


On 7/5/06, ben short <[EMAIL PROTECTED]> wrote:

Johann ,

Im trying to use the hibernate3 plugin but get the following error.

The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
exist or no valid version could be found

Below is my pom file

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  com.mycompany.app
  my-app
  jar
  1.0-SNAPSHOT
  Maven Quick Start Archetype
  http://maven.apache.org
- 
- 
  junit
  junit
  3.8.1
  test
  
- 
  org.codehaus.mojo
  hibernate3-maven-plugin
  1.0-SNAPSHOT
  compile
  
  
- 
- 
  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
- 
  true
  
- 
  false
  
  
  
- 
- 
  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
- 
  true
  
- 
  false
  
  
  
- 
- 
- 
  org.codehaus.mojo
  hibernate3-maven-plugin
- 
- 
  /src/main/resources/hibernate.cfg.xml
  
- 
  src/main/resources
  
  
  
  
  
  

Any ideas what I am doing wronge?

Ben


On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
> Hello Paul
>
> Actually an update. I was able to go around the bug that was stopping me
> from deploying and was able to successfully deploy a snapshot. So now a
> hibernate3-maven-plugin is available to use.
>
> Regards
>
> Johann Reyes
>
> -Original Message-
> From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 05, 2006 9:15 AM
> To: Maven Users List; Jose Gonzalez Gomez
> Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together
>
> I would be more appreciative than you can ever imagine if you could send
> that information.
>
> Thanks!
>
> /Paul
>
> On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
> >
> > Paul,
> >
> > It seems I've been able to run the hibernate plugin from the mojo
> > successfully (at least it has created a table with a pair of attributes
> > from
> > an annotated class). I'm going out in a few minutes, so if you're
> > interested
> > in how I did it drop me a line (or drop it to the list) and I'll post
> > excerpts from pom, settings, ... tomorrow.
> >
> > Best regards
> > Jose
> >
> > 2006/7/5, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > >
> > > Paul,
> > >
> > > I'm trying to do the same, and I'm facing some troubles, maybe you can
> > > help me... First of all, I haven't been able to find one of the
> > dependencies
> > > of the Hibernate Annotations packages:
> > > javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
> > an
> > > implementation of a public draft that has been removed from ibiblio.
> > Anyway,
> > > I'm using the javax.persistence:persistence-api:1.0 from the
> > java.netrepository. I guess this is the final implementation of the
> > missing
> > > dependency, but I don't know how to override it or where to find it. How
> > > have you solved this?
> > >
> > > Best regards
> > > Jose
> > >
> > > 2006/7/5, Paul Kuykendall <[EMAIL PROTECTED]>:
> > >
> > > > Hi,
> > > >
> > > > I am at my wits end in getting maven to play nicely with
> > > > Hibernate.  I've
> > > > been at it for over a week now and feel no closer than when I started.
> > > > Here's what I'm trying to do.  I've been working on a project using
> > > > Maven
> > > > 2.0.4 as the build system.  Everything has been going fine until I try
> > > > and
> > > > get Maven to generate the Hibernate DDL and java from my hbm
> > > > files.  I've
> > > > tried using the codehaus hibernate3-maven-plugin with no success.  I
> > > > later
> > > > discovered that when they had their crash, it took out lots of the
> > > > plugin
> > > > files.  I've tried to just integrate the hibernate portions into the
> > POM
> > > > as
> > > > a simple Ant task.  I can't even get Maven to recognize the Ant
> > > > tasks.  I've
> > > > RTFM (as much as there is one).  I've tried all the available code
> > > > snippets
> > > > I can find.  So far, nothing has worked.  here is my POM file,
>

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread ben short

Johann ,

Im trying to use the hibernate3 plugin but get the following error.

The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
exist or no valid version could be found

Below is my pom file

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 4.0.0
 com.mycompany.app
 my-app
 jar
 1.0-SNAPSHOT
 Maven Quick Start Archetype
 http://maven.apache.org
- 
- 
 junit
 junit
 3.8.1
 test
 
- 
 org.codehaus.mojo
 hibernate3-maven-plugin
 1.0-SNAPSHOT
 compile
 
 
- 
- 
 Maven Snapshots
 http://snapshots.maven.codehaus.org/maven2/
- 
 true
 
- 
 false
 
 
 
- 
- 
 Maven Snapshots
 http://snapshots.maven.codehaus.org/maven2/
- 
 true
 
- 
 false
 
 
 
- 
- 
- 
 org.codehaus.mojo
 hibernate3-maven-plugin
- 
- 
 /src/main/resources/hibernate.cfg.xml
 
- 
 src/main/resources
 
 
 
 
 
 

Any ideas what I am doing wronge?

Ben


On 7/5/06, Johann Reyes <[EMAIL PROTECTED]> wrote:

Hello Paul

Actually an update. I was able to go around the bug that was stopping me
from deploying and was able to successfully deploy a snapshot. So now a
hibernate3-maven-plugin is available to use.

Regards

Johann Reyes

-Original Message-
From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 9:15 AM
To: Maven Users List; Jose Gonzalez Gomez
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul

On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
>
> Paul,
>
> It seems I've been able to run the hibernate plugin from the mojo
> successfully (at least it has created a table with a pair of attributes
> from
> an annotated class). I'm going out in a few minutes, so if you're
> interested
> in how I did it drop me a line (or drop it to the list) and I'll post
> excerpts from pom, settings, ... tomorrow.
>
> Best regards
> Jose
>
> 2006/7/5, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> >
> > Paul,
> >
> > I'm trying to do the same, and I'm facing some troubles, maybe you can
> > help me... First of all, I haven't been able to find one of the
> dependencies
> > of the Hibernate Annotations packages:
> > javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
> an
> > implementation of a public draft that has been removed from ibiblio.
> Anyway,
> > I'm using the javax.persistence:persistence-api:1.0 from the
> java.netrepository. I guess this is the final implementation of the
> missing
> > dependency, but I don't know how to override it or where to find it. How
> > have you solved this?
> >
> > Best regards
> > Jose
> >
> > 2006/7/5, Paul Kuykendall <[EMAIL PROTECTED]>:
> >
> > > Hi,
> > >
> > > I am at my wits end in getting maven to play nicely with
> > > Hibernate.  I've
> > > been at it for over a week now and feel no closer than when I started.
> > > Here's what I'm trying to do.  I've been working on a project using
> > > Maven
> > > 2.0.4 as the build system.  Everything has been going fine until I try
> > > and
> > > get Maven to generate the Hibernate DDL and java from my hbm
> > > files.  I've
> > > tried using the codehaus hibernate3-maven-plugin with no success.  I
> > > later
> > > discovered that when they had their crash, it took out lots of the
> > > plugin
> > > files.  I've tried to just integrate the hibernate portions into the
> POM
> > > as
> > > a simple Ant task.  I can't even get Maven to recognize the Ant
> > > tasks.  I've
> > > RTFM (as much as there is one).  I've tried all the available code
> > > snippets
> > > I can find.  So far, nothing has worked.  here is my POM file,
> slightly
> > > edited to protect the guilty.
> > >
> > > With the config files below, I don't even get the echos.
> > >
> > > If anyone has a sample section from the POM file for doing Hibernate 3
> > > stuff, I would greatly appreciate a code-snippet.
> > >
> > > Thanks.
> > >
> > > /Paul
> > >
> > > 
> > >   4.0.0
> > >
> > >   
> > >   com.mycompany.simulators
> > >   caisim
> > >1.0-SNAPSHOT
> > > 
> > >   
> > >   
> > >
> > >   
> > > 
> > >   junit
> >

RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Johann Reyes
Hello Paul

Actually an update. I was able to go around the bug that was stopping me
from deploying and was able to successfully deploy a snapshot. So now a
hibernate3-maven-plugin is available to use.

Regards

Johann Reyes

-Original Message-
From: Paul Kuykendall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 05, 2006 9:15 AM
To: Maven Users List; Jose Gonzalez Gomez
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul

On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
>
> Paul,
>
> It seems I've been able to run the hibernate plugin from the mojo
> successfully (at least it has created a table with a pair of attributes
> from
> an annotated class). I'm going out in a few minutes, so if you're
> interested
> in how I did it drop me a line (or drop it to the list) and I'll post
> excerpts from pom, settings, ... tomorrow.
>
> Best regards
> Jose
>
> 2006/7/5, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> >
> > Paul,
> >
> > I'm trying to do the same, and I'm facing some troubles, maybe you can
> > help me... First of all, I haven't been able to find one of the
> dependencies
> > of the Hibernate Annotations packages:
> > javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
> an
> > implementation of a public draft that has been removed from ibiblio.
> Anyway,
> > I'm using the javax.persistence:persistence-api:1.0 from the
> java.netrepository. I guess this is the final implementation of the
> missing
> > dependency, but I don't know how to override it or where to find it. How
> > have you solved this?
> >
> > Best regards
> > Jose
> >
> > 2006/7/5, Paul Kuykendall <[EMAIL PROTECTED]>:
> >
> > > Hi,
> > >
> > > I am at my wits end in getting maven to play nicely with
> > > Hibernate.  I've
> > > been at it for over a week now and feel no closer than when I started.
> > > Here's what I'm trying to do.  I've been working on a project using
> > > Maven
> > > 2.0.4 as the build system.  Everything has been going fine until I try
> > > and
> > > get Maven to generate the Hibernate DDL and java from my hbm
> > > files.  I've
> > > tried using the codehaus hibernate3-maven-plugin with no success.  I
> > > later
> > > discovered that when they had their crash, it took out lots of the
> > > plugin
> > > files.  I've tried to just integrate the hibernate portions into the
> POM
> > > as
> > > a simple Ant task.  I can't even get Maven to recognize the Ant
> > > tasks.  I've
> > > RTFM (as much as there is one).  I've tried all the available code
> > > snippets
> > > I can find.  So far, nothing has worked.  here is my POM file,
> slightly
> > > edited to protect the guilty.
> > >
> > > With the config files below, I don't even get the echos.
> > >
> > > If anyone has a sample section from the POM file for doing Hibernate 3
> > > stuff, I would greatly appreciate a code-snippet.
> > >
> > > Thanks.
> > >
> > > /Paul
> > >
> > > 
> > >   4.0.0
> > >
> > >   
> > >   com.mycompany.simulators
> > >   caisim
> > >1.0-SNAPSHOT
> > > 
> > >   
> > >   
> > >
> > >   
> > > 
> > >   junit
> > >   junit
> > >   3.8.1
> > > 
> > > 
> > >   commons-logging
> > >   commons-logging
> > >   1.0.4
> > > 
> > > 
> > >   commons-configuration
> > >   commons-configuration
> > >   1.2
> > > 
> > > 
> > >   org.hibernate
> > >   hibernate
> > >3.2.0.cr2
> > > 
> > > 
> > >   org.hibernate
> > >   hibernate-annotations
> > >3.2.0.cr1
> > > 
> > > 
> > >   org.hibernate
> > >   hibernate-tools
> > >   3.1.0.beta4 
> > > 
> > >   
> > >
> > >   
> > >   
> > >
> > >   
> > >   My Simulator
> > >   My interface simulator.
> > >   http://www.mycompany.com
> > >   2006
> > >   
> > &

RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Johann Reyes
Hello Paul

Right now there is no snapshot version of the plugin since I have problems
to deploy it to the snapshot server. So you have to download the source code
of the plugin to your machine and do an "mvn install" that would install the
plugin into your local repository.

Then you just need to configure the plugin as described here:
http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/howto.html

Please let me know if you got any more problems.

Regards

Johann Reyes



-Original Message-
From: Paul Kuykendall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 05, 2006 9:15 AM
To: Maven Users List; Jose Gonzalez Gomez
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul

On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
>
> Paul,
>
> It seems I've been able to run the hibernate plugin from the mojo
> successfully (at least it has created a table with a pair of attributes
> from
> an annotated class). I'm going out in a few minutes, so if you're
> interested
> in how I did it drop me a line (or drop it to the list) and I'll post
> excerpts from pom, settings, ... tomorrow.
>
> Best regards
> Jose
>
> 2006/7/5, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> >
> > Paul,
> >
> > I'm trying to do the same, and I'm facing some troubles, maybe you can
> > help me... First of all, I haven't been able to find one of the
> dependencies
> > of the Hibernate Annotations packages:
> > javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
> an
> > implementation of a public draft that has been removed from ibiblio.
> Anyway,
> > I'm using the javax.persistence:persistence-api:1.0 from the
> java.netrepository. I guess this is the final implementation of the
> missing
> > dependency, but I don't know how to override it or where to find it. How
> > have you solved this?
> >
> > Best regards
> > Jose
> >
> > 2006/7/5, Paul Kuykendall <[EMAIL PROTECTED]>:
> >
> > > Hi,
> > >
> > > I am at my wits end in getting maven to play nicely with
> > > Hibernate.  I've
> > > been at it for over a week now and feel no closer than when I started.
> > > Here's what I'm trying to do.  I've been working on a project using
> > > Maven
> > > 2.0.4 as the build system.  Everything has been going fine until I try
> > > and
> > > get Maven to generate the Hibernate DDL and java from my hbm
> > > files.  I've
> > > tried using the codehaus hibernate3-maven-plugin with no success.  I
> > > later
> > > discovered that when they had their crash, it took out lots of the
> > > plugin
> > > files.  I've tried to just integrate the hibernate portions into the
> POM
> > > as
> > > a simple Ant task.  I can't even get Maven to recognize the Ant
> > > tasks.  I've
> > > RTFM (as much as there is one).  I've tried all the available code
> > > snippets
> > > I can find.  So far, nothing has worked.  here is my POM file,
> slightly
> > > edited to protect the guilty.
> > >
> > > With the config files below, I don't even get the echos.
> > >
> > > If anyone has a sample section from the POM file for doing Hibernate 3
> > > stuff, I would greatly appreciate a code-snippet.
> > >
> > > Thanks.
> > >
> > > /Paul
> > >
> > > 
> > >   4.0.0
> > >
> > >   
> > >   com.mycompany.simulators
> > >   caisim
> > >1.0-SNAPSHOT
> > > 
> > >   
> > >   
> > >
> > >   
> > > 
> > >   junit
> > >   junit
> > >   3.8.1
> > > 
> > > 
> > >   commons-logging
> > >   commons-logging
> > >   1.0.4
> > > 
> > > 
> > >   commons-configuration
> > >   commons-configuration
> > >   1.2
> > > 
> > > 
> > >   org.hibernate
> > >   hibernate
> > >3.2.0.cr2
> > > 
> > > 
> > >   org.hibernate
> > >   hibernate-annotations
> > >3.2.0.cr1
> > > 
> > > 
> > >   org.hibernate
> > >   hibernate-tools

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Paul Kuykendall

I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul

On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:


Paul,

It seems I've been able to run the hibernate plugin from the mojo
successfully (at least it has created a table with a pair of attributes
from
an annotated class). I'm going out in a few minutes, so if you're
interested
in how I did it drop me a line (or drop it to the list) and I'll post
excerpts from pom, settings, ... tomorrow.

Best regards
Jose

2006/7/5, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
>
> Paul,
>
> I'm trying to do the same, and I'm facing some troubles, maybe you can
> help me... First of all, I haven't been able to find one of the
dependencies
> of the Hibernate Annotations packages:
> javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
an
> implementation of a public draft that has been removed from ibiblio.
Anyway,
> I'm using the javax.persistence:persistence-api:1.0 from the
java.netrepository. I guess this is the final implementation of the
missing
> dependency, but I don't know how to override it or where to find it. How
> have you solved this?
>
> Best regards
> Jose
>
> 2006/7/5, Paul Kuykendall <[EMAIL PROTECTED]>:
>
> > Hi,
> >
> > I am at my wits end in getting maven to play nicely with
> > Hibernate.  I've
> > been at it for over a week now and feel no closer than when I started.
> > Here's what I'm trying to do.  I've been working on a project using
> > Maven
> > 2.0.4 as the build system.  Everything has been going fine until I try
> > and
> > get Maven to generate the Hibernate DDL and java from my hbm
> > files.  I've
> > tried using the codehaus hibernate3-maven-plugin with no success.  I
> > later
> > discovered that when they had their crash, it took out lots of the
> > plugin
> > files.  I've tried to just integrate the hibernate portions into the
POM
> > as
> > a simple Ant task.  I can't even get Maven to recognize the Ant
> > tasks.  I've
> > RTFM (as much as there is one).  I've tried all the available code
> > snippets
> > I can find.  So far, nothing has worked.  here is my POM file,
slightly
> > edited to protect the guilty.
> >
> > With the config files below, I don't even get the echos.
> >
> > If anyone has a sample section from the POM file for doing Hibernate 3
> > stuff, I would greatly appreciate a code-snippet.
> >
> > Thanks.
> >
> > /Paul
> >
> > 
> >   4.0.0
> >
> >   
> >   com.mycompany.simulators
> >   caisim
> >1.0-SNAPSHOT
> > 
> >   
> >   
> >
> >   
> > 
> >   junit
> >   junit
> >   3.8.1
> > 
> > 
> >   commons-logging
> >   commons-logging
> >   1.0.4
> > 
> > 
> >   commons-configuration
> >   commons-configuration
> >   1.2
> > 
> > 
> >   org.hibernate
> >   hibernate
> >3.2.0.cr2
> > 
> > 
> >   org.hibernate
> >   hibernate-annotations
> >3.2.0.cr1
> > 
> > 
> >   org.hibernate
> >   hibernate-tools
> >   3.1.0.beta4 
> > 
> >   
> >
> >   
> >   
> >
> >   
> >   My Simulator
> >   My interface simulator.
> >   http://www.mycompany.com
> >   2006
> >   
> >   
> > 
> >   myname
> >   My Name
> >   [EMAIL PROTECTED]
> >   
> >   
> > Developer
> >   
> >   -6
> > 
> >   
> >   
> >   
> >   
> > mycompany, Inc.
> > http://www.mycompany.com
> >   
> >
> >   
> >   jar
> >   
> >   
> > csf
> >   
> > 
> >   
> > org.apache.maven.plugins
> > maven-compiler-plugin
> > 
> >   1.5
> >   1.5
> > 
> >   
> >
> >   
> > org.apache.maven.plugins
> > maven-antrun-plugin
> > 
> >   
> > generate-sources
> > 
> >   
> > Running Hibernate stuff here.
> >  > inheritRefs="true">
> >   
> > 
> >   
> > 
> > 
> >   run
> > 
> >   
> > 
> > 
> > 
> >   
> > 
> >   
> >
> > 
> > 
> >
> > 
> >
> >   
> > 
> >
> >   
> >  org.apache.maven.plugins
> > maven-javadoc-plugin
> > 
> > 
> >   
> > html
> > 
> >   private
> > 
> > 
> >   javadoc
> > 
> >   
> > 
> >   
> >
> >   
> > org.apache.maven.plugins
> > maven-checkstyle-plugin
> > 
> >   src/main/config/mycompany-checkstyle.xml
> > 
> > 
> >   
> >
> >   
> > org.apache.maven.plugins 
> > maven-jxr-plugin
> >   
> >
> >   
> > org.apache.maven.plugins
> > maven-

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Jose Gonzalez Gomez

Paul,

It seems I've been able to run the hibernate plugin from the mojo
successfully (at least it has created a table with a pair of attributes from
an annotated class). I'm going out in a few minutes, so if you're interested
in how I did it drop me a line (or drop it to the list) and I'll post
excerpts from pom, settings, ... tomorrow.

Best regards
Jose

2006/7/5, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:


Paul,

I'm trying to do the same, and I'm facing some troubles, maybe you can
help me... First of all, I haven't been able to find one of the dependencies
of the Hibernate Annotations packages:
javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be an
implementation of a public draft that has been removed from ibiblio. Anyway,
I'm using the javax.persistence:persistence-api:1.0 from the 
java.netrepository. I guess this is the final implementation of the missing
dependency, but I don't know how to override it or where to find it. How
have you solved this?

Best regards
Jose

2006/7/5, Paul Kuykendall <[EMAIL PROTECTED]>:

> Hi,
>
> I am at my wits end in getting maven to play nicely with
> Hibernate.  I've
> been at it for over a week now and feel no closer than when I started.
> Here's what I'm trying to do.  I've been working on a project using
> Maven
> 2.0.4 as the build system.  Everything has been going fine until I try
> and
> get Maven to generate the Hibernate DDL and java from my hbm
> files.  I've
> tried using the codehaus hibernate3-maven-plugin with no success.  I
> later
> discovered that when they had their crash, it took out lots of the
> plugin
> files.  I've tried to just integrate the hibernate portions into the POM
> as
> a simple Ant task.  I can't even get Maven to recognize the Ant
> tasks.  I've
> RTFM (as much as there is one).  I've tried all the available code
> snippets
> I can find.  So far, nothing has worked.  here is my POM file, slightly
> edited to protect the guilty.
>
> With the config files below, I don't even get the echos.
>
> If anyone has a sample section from the POM file for doing Hibernate 3
> stuff, I would greatly appreciate a code-snippet.
>
> Thanks.
>
> /Paul
>
> 
>   4.0.0
>
>   
>   com.mycompany.simulators
>   caisim
>1.0-SNAPSHOT
> 
>   
>   
>
>   
> 
>   junit
>   junit
>   3.8.1
> 
> 
>   commons-logging
>   commons-logging
>   1.0.4
> 
> 
>   commons-configuration
>   commons-configuration
>   1.2
> 
> 
>   org.hibernate
>   hibernate
>3.2.0.cr2
> 
> 
>   org.hibernate
>   hibernate-annotations
>3.2.0.cr1
> 
> 
>   org.hibernate
>   hibernate-tools
>   3.1.0.beta4 
> 
>   
>
>   
>   
>
>   
>   My Simulator
>   My interface simulator.
>   http://www.mycompany.com
>   2006
>   
>   
> 
>   myname
>   My Name
>   [EMAIL PROTECTED]
>   
>   
> Developer
>   
>   -6
> 
>   
>   
>   
>   
> mycompany, Inc.
> http://www.mycompany.com
>   
>
>   
>   jar
>   
>   
> csf
>   
> 
>   
> org.apache.maven.plugins
> maven-compiler-plugin
> 
>   1.5
>   1.5
> 
>   
>
>   
> org.apache.maven.plugins
> maven-antrun-plugin
> 
>   
> generate-sources
> 
>   
> Running Hibernate stuff here.
>  inheritRefs="true">
>   
> 
>   
> 
> 
>   run
> 
>   
> 
> 
> 
>   
> 
>   
>
> 
> 
>
> 
>
>   
> 
>
>   
>  org.apache.maven.plugins
> maven-javadoc-plugin
> 
> 
>   
> html
> 
>   private
> 
> 
>   javadoc
> 
>   
> 
>   
>
>   
> org.apache.maven.plugins
> maven-checkstyle-plugin
> 
>   src/main/config/mycompany-checkstyle.xml
> 
> 
>   
>
>   
> org.apache.maven.plugins 
> maven-jxr-plugin
>   
>
>   
> org.apache.maven.plugins
> maven-pmd-plugin
> 
> 1.5
> xml
> true
> utf-8
>
> 100
>  
>   
> 
>   
>
>   
>   
>   
> Our Crappy Bug System
> http://jigsaw.mycompany.com/main
>   
>   
>   
>   
> scm:cvs:pserver:anoncvs:@gollum.mycompany.com
> :/lib/cvs:simulators/mysim
> 
> http://gollum.mycompany.com/cgi-bin/viewcvs.cgi/simulators/mysim
> 
>   
>
>   
>   
>
> 
>   
> Maven Snapshots
>  http://snapshots.maven.codehaus.org/maven2/
> 
>   true
> 
> 
>   false
>

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Paul Kuykendall

Jose,

I found this in a blog somewhere (I didn't bookmark it, just copied it into
a "tips and tricks" email I sent myself at work).  I still ran into problems
with the hibernate3-maven-plugin complaining it couldn't resolve a
dependency somewhere down the line to maven-hibernate3-plugin.  It could
have been something I've been doing wrong, but your problem was fairly easy
to track down (after more than a few hours of google searching).  I did use
a different way of doing the jta installation.  I created a jar file and
installed that rather than the zip file.

/Paul

The below is quite shamefully included without attribution.  I take no claim
for its origination.

Special dependencies

Most of the dependencies you need will be automatically downloaded by Maven
from a remote repository, but two by Sun can't be held there. Go to this
page  to get the JTA interfaces from the
Download link next to "Class Files 1.0.1B," then paste the following into a
shell in your download directory:

mvn install:install-file -DgroupId=javax.transaction \
 -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar \
 -Dfile=jta-1_0_1B-classes.zip

(Or use jta.jar from the Hibernate 3.1.1 distribution, if you have that
already — just change the -Dfile= parameter above.)

For the EJB 3.0 *public final draft* dependency, you'll need to
download Hibernate
Annotations,
expand the archive, change to its lib directory, then:

mvn install:install-file -DgroupId=javax.persistence \
 -DartifactId=ejb -Dversion=3.0-public-draft-20060502
\
 -Dpackaging=jar -Dfile=ejb3-persistence.jar



On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:


Paul,

I'm trying to do the same, and I'm facing some troubles, maybe you can
help
me... First of all, I haven't been able to find one of the dependencies of
the Hibernate Annotations packages:
javax.persistence:ejb:jar:3.0-public-draft-20060502. This seems to be an
implementation of a public draft that has been removed from ibiblio.
Anyway,
I'm using the javax.persistence:persistence-api:1.0 from the
java.netrepository. I guess this is the final implementation of the
missing
dependency, but I don't know how to override it or where to find it. How
have you solved this?

Best regards
Jose

[snip]


Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Jose Gonzalez Gomez

Paul,

I'm trying to do the same, and I'm facing some troubles, maybe you can help
me... First of all, I haven't been able to find one of the dependencies of
the Hibernate Annotations packages:
javax.persistence:ejb:jar:3.0-public-draft-20060502. This seems to be an
implementation of a public draft that has been removed from ibiblio. Anyway,
I'm using the javax.persistence:persistence-api:1.0 from the
java.netrepository. I guess this is the final implementation of the
missing
dependency, but I don't know how to override it or where to find it. How
have you solved this?

Best regards
Jose

2006/7/5, Paul Kuykendall <[EMAIL PROTECTED]>:


Hi,

I am at my wits end in getting maven to play nicely with Hibernate.  I've
been at it for over a week now and feel no closer than when I started.
Here's what I'm trying to do.  I've been working on a project using Maven
2.0.4 as the build system.  Everything has been going fine until I try and
get Maven to generate the Hibernate DDL and java from my hbm files.  I've
tried using the codehaus hibernate3-maven-plugin with no success.  I later
discovered that when they had their crash, it took out lots of the plugin
files.  I've tried to just integrate the hibernate portions into the POM
as
a simple Ant task.  I can't even get Maven to recognize the Ant
tasks.  I've
RTFM (as much as there is one).  I've tried all the available code
snippets
I can find.  So far, nothing has worked.  here is my POM file, slightly
edited to protect the guilty.

With the config files below, I don't even get the echos.

If anyone has a sample section from the POM file for doing Hibernate 3
stuff, I would greatly appreciate a code-snippet.

Thanks.

/Paul


  4.0.0

  
  com.mycompany.simulators
  caisim
  1.0-SNAPSHOT

  
  

  

  junit
  junit
  3.8.1


  commons-logging
  commons-logging
  1.0.4


  commons-configuration
  commons-configuration
  1.2


  org.hibernate
  hibernate
  3.2.0.cr2


  org.hibernate
  hibernate-annotations
  3.2.0.cr1


  org.hibernate
  hibernate-tools
  3.1.0.beta4

  

  
  

  
  My Simulator
  My interface simulator.
  http://www.mycompany.com
  2006
  
  

  myname
  My Name
  [EMAIL PROTECTED]
  
  
Developer
  
  -6

  
  
  
  
mycompany, Inc.
http://www.mycompany.com
  

  
  jar
  
  
csf
  

  
org.apache.maven.plugins
maven-compiler-plugin

  1.5
  1.5

  

  
org.apache.maven.plugins
maven-antrun-plugin

  
generate-sources

  
Running Hibernate stuff here.

  

  


  run

  



  

  






  


  
org.apache.maven.plugins
maven-javadoc-plugin


  
html

  private


  javadoc

  

  

  
org.apache.maven.plugins
maven-checkstyle-plugin

  src/main/config/mycompany-checkstyle.xml


  

  
org.apache.maven.plugins
maven-jxr-plugin
  

  
org.apache.maven.plugins
maven-pmd-plugin

1.5
xml
true
utf-8

100
 
  

  

  
  
  
Our Crappy Bug System
http://jigsaw.mycompany.com/main
  
  
  
  
scm:cvs:pserver:anoncvs:@gollum.mycompany.com
:/lib/cvs:simulators/mysim
http://gollum.mycompany.com/cgi-bin/viewcvs.cgi/simulators/mysim

  

  
  


  
Maven Snapshots
http://snapshots.maven.codehaus.org/maven2/

  true


  false

  


  
Maven Snapshots
http://snapshots.maven.codehaus.org/maven2/

  true


  false

  



  

  



The build-hibernate.xml file is below:



  
!!!This is a test of the generate-sources task!!!
  






Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-04 Thread Tim Kettler

Hi,

you misunderstood the usage of of the  tag. The tag (like the 
 tag for dependencies) is used to give default values to the plugin 
configurations (for example in a super pom). When you then declare the usage of a plugin 
in the  section of a pom (just with group/artifact id) the inherited 
configuration is used. So to actually execute the antrun plugin you need to move the 
configuration from  to .


-Tim

Paul Kuykendall schrieb:

Hi,

I am at my wits end in getting maven to play nicely with Hibernate.  I've
been at it for over a week now and feel no closer than when I started.
Here's what I'm trying to do.  I've been working on a project using Maven
2.0.4 as the build system.  Everything has been going fine until I try and
get Maven to generate the Hibernate DDL and java from my hbm files.  I've
tried using the codehaus hibernate3-maven-plugin with no success.  I later
discovered that when they had their crash, it took out lots of the plugin
files.  I've tried to just integrate the hibernate portions into the POM as
a simple Ant task.  I can't even get Maven to recognize the Ant tasks.  
I've

RTFM (as much as there is one).  I've tried all the available code snippets
I can find.  So far, nothing has worked.  here is my POM file, slightly
edited to protect the guilty.

With the config files below, I don't even get the echos.

If anyone has a sample section from the POM file for doing Hibernate 3
stuff, I would greatly appreciate a code-snippet.

Thanks.

/Paul


 4.0.0

 
 com.mycompany.simulators
 caisim
 1.0-SNAPSHOT

 
 

 
   
 junit
 junit
 3.8.1
   
   
 commons-logging
 commons-logging
 1.0.4
   
   
 commons-configuration
 commons-configuration
 1.2
   
   
 org.hibernate
 hibernate
 3.2.0.cr2
   
   
 org.hibernate
 hibernate-annotations
 3.2.0.cr1
   
   
 org.hibernate
 hibernate-tools
 3.1.0.beta4
   
 

 
 

 
 My Simulator
 My interface simulator.
 http://www.mycompany.com
 2006
 
 
   
 myname
 My Name
 [EMAIL PROTECTED]
 
 
   Developer
 
 -6
   
 
 
 
 
   mycompany, Inc.
   http://www.mycompany.com
 

 
 jar
 
 
   csf
 
   
 
   org.apache.maven.plugins
   maven-compiler-plugin
   
 1.5
 1.5
   
 

 
   org.apache.maven.plugins
   maven-antrun-plugin
   
 
   generate-sources
   
 
   Running Hibernate stuff here.
   
 
   
 
   
   
 run
   
 
   
   
   
 
   
 

   
   

   

 
   

 
   org.apache.maven.plugins
   maven-javadoc-plugin
   

 
   html
   
 private
   
   
 javadoc
   
 
   
 

 
   org.apache.maven.plugins
   maven-checkstyle-plugin
   
 src/main/config/mycompany-checkstyle.xml

   
 

 
   org.apache.maven.plugins
   maven-jxr-plugin
 

 
   org.apache.maven.plugins
   maven-pmd-plugin
   
   1.5
   xml
   true
   utf-8

   100

 
   
 

 
 
 
   Our Crappy Bug System
   http://jigsaw.mycompany.com/main
 
 
 
 
   scm:cvs:pserver:anoncvs:@gollum.mycompany.com
:/lib/cvs:simulators/mysim
   http://gollum.mycompany.com/cgi-bin/viewcvs.cgi/simulators/mysim

 

 
 


 
   Maven Snapshots
   http://snapshots.maven.codehaus.org/maven2/
   
 true
   
   
 false
   
 


 
   Maven Snapshots
   http://snapshots.maven.codehaus.org/maven2/
   
 true
   
   
 false
   
 



 

 



The build-hibernate.xml file is below:



 
   !!!This is a test of the generate-sources task!!!
 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]