Getting frustrated with maven2

2007-04-06 Thread Peter L. Berghold
Hi folks, I'm having major frustration here trying to get a project built using maven. Here's where I want to get to: My project is going to be a web application running struts/tiles and using Hibernate as the data persistance layer. I want to define my POJOs for my data objects and use xdoclet

Re: Getting frustrated with maven2

2007-04-06 Thread Carlos Sanchez
for what you say your frustrations come from the xdoclet plugin, not maven itself your config doesn't look like the docs http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html On 4/6/07, Peter L. Berghold [EMAIL PROTECTED] wrote: Hi folks, I'm having major frustration here trying to get a

Re: Getting frustrated with maven2

2007-04-06 Thread Peter L. Berghold
On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote: for what you say your frustrations come from the xdoclet plugin, not maven itself True enough. your config doesn't look like the docs http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html OK.. I tried pasting that into my

Re: Getting frustrated with maven2

2007-04-06 Thread Eric Daigneault
Peter L. Berghold wrote: On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote: for what you say your frustrations come from the xdoclet plugin, not maven itself True enough. your config doesn't look like the docs http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html

Re: Getting frustrated with maven2

2007-04-06 Thread Steven Rowe
You should create a plugins tag inside your build tag, then put the plugin tag for xdoclet configurion inside of the plugins tag. See http://maven.apache.org/pom.html. Steve Peter L. Berghold wrote: On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote: for what you say your frustrations

Re: Getting frustrated with maven2

2007-04-06 Thread Carlos Sanchez
reading the book should help with the basic stuff http://maven.apache.org/articles.html On 4/6/07, Peter L. Berghold [EMAIL PROTECTED] wrote: On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote: for what you say your frustrations come from the xdoclet plugin, not maven itself True

Re: Getting frustrated with maven2

2007-04-06 Thread Wayne Fay
project build plugins plugin ...your xdoc config goes here... As Carlos suggested, there are a lot of resources available to help you with your problems. In particular, the Better Builds With Maven free e-book (pdf) is great. Wayne On 4/6/07, Carlos Sanchez [EMAIL PROTECTED] wrote: reading

Re: Getting frustrated with maven2

2007-04-06 Thread Peter L. Berghold
After munging out some typos in the cited webpage I now get the follwing error when I run mvn install: [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID:

Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson
Here is my XDoclet declaration: !-- ===-- !-- XDoclet Plugin -- !-- ===-- !-- This plugin will ...

Re: Getting frustrated with maven2

2007-04-06 Thread Eric Redmond
You're repository is messed up... there's no pom there and xdoclet is the wrong groupId. Did you just drop a jar in there - I hope not - manually playing with your local repository is a sure way of getting screwed up. Also, don't use SNAPSHOT if you can help it... just use the one in the public

Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson
I don't have to specify the version in my build, and it used 1.2.3 On 4/6/07, Eric Redmond [EMAIL PROTECTED] wrote: You're repository is messed up... there's no pom there and xdoclet is the wrong groupId. Did you just drop a jar in there - I hope not - manually playing with your local

Re: Getting frustrated with maven2

2007-04-06 Thread Peter L. Berghold
On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote: plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId version1.0-alpha-2/version BINGO! That was the one piece of information I wasn't getting. The examples I was looking at on line (which I

Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson
Use Spring instead as Spring will get rid of the hibernate config and XDoclet will create the hibernate mappings. On 4/6/07, Peter L. Berghold [EMAIL PROTECTED] wrote: On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote: plugin groupIdorg.codehaus.mojo/groupId

Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson
!-- Hibernate Session Factory Bean -- bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref local=dataSource/ /property property name=mappingResources list

Re: Getting frustrated with maven2

2007-04-06 Thread Wayne Fay
This is really a question for the Xdoclet team... But looking at their site, it seems like you should use the hibernatecfg/ tag inside your Xdoclet configuration. Wayne On 4/6/07, Peter L. Berghold [EMAIL PROTECTED] wrote: On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote: plugin