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 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 to generate my hibernate
configuration files.

Following the quick start guides and a few other guides I found I have
put together a pom.xml that looks like this:

project xmlns=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;
  modelVersion4.0.0/modelVersion
  groupIdcom.mycompany.app/groupId
  artifactIdmy-webapp/artifactId
  packagingwar/packaging
  version1.0-SNAPSHOT/version
  namemy-webapp Maven Webapp/name
  urlhttp://maven.apache.org/url

dependencies
dependency
groupIdnet.sf.ehcache/groupId
artifactIdehcache/artifactId
version1.2.3/version
/dependency
dependency
groupIdswarmcache/groupId
artifactIdswarmcache/artifactId
version1.0RC2/version
optionaltrue/optional
/dependency
dependency
groupIdjboss/groupId
artifactIdjboss-cache/artifactId
version1.2.2/version
optionaltrue/optional
/dependency
dependency
groupIdjgroups/groupId
artifactIdjgroups-all/artifactId
version2.2.8/version
optionaltrue/optional
/dependency
dependency
groupIdjavax.transaction/groupId
artifactIdjta/artifactId
version1.0.1B/version
/dependency
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging/artifactId
version1.0.4/version
/dependency
dependency
groupIdc3p0/groupId
artifactIdc3p0/artifactId
version0.9.0/version
optionaltrue/optional
/dependency
dependency
groupIdasm/groupId
artifactIdasm-attrs/artifactId
version1.5.3/version
/dependency
dependency
groupIdjavax.security/groupId
artifactIdjacc/artifactId
version1.0/version
optionaltrue/optional
/dependency
dependency
groupIddom4j/groupId
artifactIddom4j/artifactId
version1.6.1/version
exclusions
exclusion
groupIdxml-apis/groupId

artifactIdxml-apis/artifactId
/exclusion
/exclusions
/dependency
dependency
groupIdantlr/groupId
artifactIdantlr/artifactId
version2.7.6/version
/dependency
dependency
groupIdcglib/groupId
artifactIdcglib/artifactId
version2.1_3/version
/dependency
dependency
groupIdopensymphony/groupId
artifactIdoscache/artifactId
version2.1/version
optionaltrue/optional
/dependency
dependency
groupIdasm/groupId
artifactIdasm/artifactId
version1.5.3/version
/dependency
dependency
groupIdcommons-collections/groupId
artifactIdcommons-collections/artifactId
version2.1.1/version
/dependency
dependency
groupIdant/groupId
artifactIdant/artifactId
version1.6.5/version
scopeprovided/scope
/dependency
dependency

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 pom.xml, and this is where my
understanding is no doubt flawed.  Where in the pom.xml does it fit in? 

I tried a few different things with pretty much the same result. Maven
complained about plugin being an unknown tag. 

-- 
Peter L. Berghold   Unix Professional
[EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
Those who fail to learn from history are condemned to repeat it.


signature.asc
Description: This is a digitally signed message part


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




OK.. I tried pasting that into my pom.xml, and this is where my
understanding is no doubt flawed.  Where in the pom.xml does it fit in? 


I tried a few different things with pretty much the same result. Maven
complained about plugin being an unknown tag. 

  
Yeah.. having similar problems with creating a new archetype from 
instructions on the web...  anyhow...  This is usually because it fits 
inside another tag.


have a look at this page, it should help you figure out where to plug 
the snippet in your POM.


good luck

Éric :D.

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



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 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 pom.xml, and this is where my
 understanding is no doubt flawed.  Where in the pom.xml does it fit in? 
 
 I tried a few different things with pretty much the same result. Maven
 complained about plugin being an unknown tag. 
 


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



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 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 pom.xml, and this is where my
understanding is no doubt flawed.  Where in the pom.xml does it fit in?

I tried a few different things with pretty much the same result. Maven
complained about plugin being an unknown tag.

--
Peter L. Berghold   Unix Professional
[EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
Those who fail to learn from history are condemned to repeat it.





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



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 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 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 pom.xml, and this is where my
 understanding is no doubt flawed.  Where in the pom.xml does it fit in?

 I tried a few different things with pretty much the same result. Maven
 complained about plugin being an unknown tag.

 --
 Peter L. Berghold   Unix Professional
 [EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
 Those who fail to learn from history are condemned to repeat it.




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

-
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: 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: org.codehaus.mojo:maven-xdoclet-plugin

Reason: POM 'org.codehaus.mojo:maven-xdoclet-plugin' not found in
repository: Unable to download the artifact from any repository

  org.codehaus.mojo:maven-xdoclet-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)



So... I check the repository and I see the following: 

[EMAIL PROTECTED] my-webapp]$ ls
~/.m2/repository/xdoclet/maven-xdoclet-plugin/
1.0-SNAPSHOT  maven-metadata-local.xml
[EMAIL PROTECTED] my-webapp]$ ls
~/.m2/repository/xdoclet/maven-xdoclet-plugin/1.0-SNAPSHOT/
maven-metadata-local.xml  maven-xdoclet-plugin-1.0-SNAPSHOT.jar

so... what's up with that? 


-- 
Peter L. Berghold   Unix Professional
[EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
Those who fail to learn from history are condemned to repeat it.


signature.asc
Description: This is a digitally signed message part


Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson

Here is my XDoclet declaration:

   !--
===--
   !-- XDoclet Plugin --
   !--
===--
   !--
   This plugin will ...
   --
   !--
===--
   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdxdoclet-maven-plugin/artifactId
   executions
   execution
   phasegenerate-sources/phase
   goals
   goalxdoclet/goal
   /goals
   configuration
   tasks
   hibernatedoclet
destdir=${basedir}/src/main/resources

mergedir=${basedir}/src/main/resources

excludedtags=@version,@author,@todo,@see,@desc
verbose=true
   fileset
dir=${basedir}/src/main/java
   include name=**/*.java/
   /fileset
   hibernate version=3.0/
   /hibernatedoclet
   /tasks
   /configuration
   /execution
   /executions
   /plugin





On 4/6/07, Peter L. Berghold [EMAIL PROTECTED] wrote:


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: org.codehaus.mojo:maven-xdoclet-plugin

Reason: POM 'org.codehaus.mojo:maven-xdoclet-plugin' not found in
repository: Unable to download the artifact from any repository

  org.codehaus.mojo:maven-xdoclet-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)



So... I check the repository and I see the following:

[EMAIL PROTECTED] my-webapp]$ ls
~/.m2/repository/xdoclet/maven-xdoclet-plugin/
1.0-SNAPSHOT  maven-metadata-local.xml
[EMAIL PROTECTED] my-webapp]$ ls
~/.m2/repository/xdoclet/maven-xdoclet-plugin/1.0-SNAPSHOT/
maven-metadata-local.xml  maven-xdoclet-plugin-1.0-SNAPSHOT.jar

so... what's up with that?


--
Peter L. Berghold   Unix Professional
[EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
Those who fail to learn from history are condemned to repeat it.





--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


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 repo. Note: SNAPSHOTs use a completely different repository than
releases:

http://repo1.maven.org/maven2/org/codehaus/mojo/xdoclet-maven-plugin/1.0-alpha-2/

plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdxdoclet-maven-plugin/artifactId
 version1.0-alpha-2/version

... blah blah blah...

And the hibernate plugin version is at 1.0.3
http://repo1.maven.org/maven2/xdoclet-plugins/xdoclet-plugin-hibernate/

Again, don't use SNAPSHOT if you can help it.

Eric

On 4/6/07, Peter L. Berghold [EMAIL PROTECTED] wrote:


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: org.codehaus.mojo:maven-xdoclet-plugin

Reason: POM 'org.codehaus.mojo:maven-xdoclet-plugin' not found in
repository: Unable to download the artifact from any repository

  org.codehaus.mojo:maven-xdoclet-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)



So... I check the repository and I see the following:

[EMAIL PROTECTED] my-webapp]$ ls
~/.m2/repository/xdoclet/maven-xdoclet-plugin/
1.0-SNAPSHOT  maven-metadata-local.xml
[EMAIL PROTECTED] my-webapp]$ ls
~/.m2/repository/xdoclet/maven-xdoclet-plugin/1.0-SNAPSHOT/
maven-metadata-local.xml  maven-xdoclet-plugin-1.0-SNAPSHOT.jar

so... what's up with that?


--
Peter L. Berghold   Unix Professional
[EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
Those who fail to learn from history are condemned to repeat it.





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


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 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 repo. Note: SNAPSHOTs use a completely different repository than
releases:


http://repo1.maven.org/maven2/org/codehaus/mojo/xdoclet-maven-plugin/1.0-alpha-2/

plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdxdoclet-maven-plugin/artifactId
  version1.0-alpha-2/version

... blah blah blah...

And the hibernate plugin version is at 1.0.3
http://repo1.maven.org/maven2/xdoclet-plugins/xdoclet-plugin-hibernate/

Again, don't use SNAPSHOT if you can help it.

Eric

On 4/6/07, Peter L. Berghold [EMAIL PROTECTED] wrote:

 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: org.codehaus.mojo:maven-xdoclet-plugin

 Reason: POM 'org.codehaus.mojo:maven-xdoclet-plugin' not found in
 repository: Unable to download the artifact from any repository

   org.codehaus.mojo:maven-xdoclet-plugin:pom:1.0-SNAPSHOT

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)



 So... I check the repository and I see the following:

 [EMAIL PROTECTED] my-webapp]$ ls
 ~/.m2/repository/xdoclet/maven-xdoclet-plugin/
 1.0-SNAPSHOT  maven-metadata-local.xml
 [EMAIL PROTECTED] my-webapp]$ ls
 ~/.m2/repository/xdoclet/maven-xdoclet-plugin/1.0-SNAPSHOT/
 maven-metadata-local.xml  maven-xdoclet-plugin-1.0-SNAPSHOT.jar

 so... what's up with that?


 --
 Peter L. Berghold   Unix Professional
 [EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
 Those who fail to learn from history are condemned to repeat it.




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





--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


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 cut/paste literally)
referenced SNAPSHOTs. 


LAST QUESTION (for now) concerns generating generating the
hibernate.cfg.xml file.  Something tells me I have to add entries in the
project.properties file to make this happen.  Am I warm? Or do I need to
create a hibernate.properties file? 


 
-- 
Peter L. Berghold   Unix Professional
[EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
Those who fail to learn from history are condemned to repeat it.


signature.asc
Description: This is a digitally signed message part


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
   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 cut/paste literally)
referenced SNAPSHOTs.


LAST QUESTION (for now) concerns generating generating the
hibernate.cfg.xml file.  Something tells me I have to add entries in the
project.properties file to make this happen.  Am I warm? Or do I need to
create a hibernate.properties file?



--
Peter L. Berghold   Unix Professional
[EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
Those who fail to learn from history are condemned to repeat it.





--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


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
   valueProvider.hbm.xml/value
   valueProviderHistory.hbm.xml/value

!--valueorg/delta/provider/npi/data/ProviderHistory.hbm.xml/value--
   valuePlan.hbm.xml/value
   valueState.hbm.xml/value
   valueTaxonomy.hbm.xml/value
   valueQueries.hbm.xml/value
   /list
   /property

   property name=hibernateProperties
   props

   prop key=hibernate.dialect
org.hibernate.dialect.Oracle9Dialect/prop
   prop key=hibernate.connection.release_mode
on_close/prop
   prop key=hibernate.max_fetch_depth3/prop
   prop key=hibernate.show_sqltrue/prop

   !--prop key=hibernate.cache.use_query_cache
true/prop--
   prop key=hibernate.cache.provider_class
org.hibernate.cache.EhCacheProvider/prop
   prop key=hibernate.cache.query_cache_factory
org.hibernate.cache.StandardQueryCacheFactory/prop

   prop key=hibernate.query.factory_class
org.hibernate.hql.classic.ClassicQueryTranslatorFactory/prop
   /props
   /property
   /bean




On 4/6/07, Mick Knutson [EMAIL PROTECTED] wrote:


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
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 cut/paste literally)
 referenced SNAPSHOTs.


 LAST QUESTION (for now) concerns generating generating the
 hibernate.cfg.xml file.  Something tells me I have to add entries in the
 project.properties file to make this happen.  Am I warm? Or do I need to
 create a hibernate.properties file?


 
 --
 Peter L. Berghold   Unix Professional
 [EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
 Those who fail to learn from history are condemned to repeat it.




--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---





--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


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
   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 cut/paste literally)
referenced SNAPSHOTs.


LAST QUESTION (for now) concerns generating generating the
hibernate.cfg.xml file.  Something tells me I have to add entries in the
project.properties file to make this happen.  Am I warm? Or do I need to
create a hibernate.properties file?



--
Peter L. Berghold   Unix Professional
[EMAIL PROTECTED]   AIM: redcowdawg YIM: blue_cowdawg
Those who fail to learn from history are condemned to repeat it.




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