You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Peter L. Berghold" <pe...@berghold.net> on 2007/04/06 20:06:05 UTC

Getting frustrated with maven2

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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycompany.app</groupId>
  <artifactId>my-webapp</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>my-webapp Maven Webapp</name>
  <url>http://maven.apache.org</url>

<dependencies>
                <dependency>
                        <groupId>net.sf.ehcache</groupId>
                        <artifactId>ehcache</artifactId>
                        <version>1.2.3</version>
                </dependency>
                <dependency>
                        <groupId>swarmcache</groupId>
                        <artifactId>swarmcache</artifactId>
                        <version>1.0RC2</version>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>jboss</groupId>
                        <artifactId>jboss-cache</artifactId>
                        <version>1.2.2</version>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>jgroups</groupId>
                        <artifactId>jgroups-all</artifactId>
                        <version>2.2.8</version>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>jta</artifactId>
                        <version>1.0.1B</version>
                </dependency>
                <dependency>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                        <version>1.0.4</version>
                </dependency>
                <dependency>
                        <groupId>c3p0</groupId>
                        <artifactId>c3p0</artifactId>
                        <version>0.9.0</version>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>asm</groupId>
                        <artifactId>asm-attrs</artifactId>
                        <version>1.5.3</version>
                </dependency>
                <dependency>
                        <groupId>javax.security</groupId>
                        <artifactId>jacc</artifactId>
                        <version>1.0</version>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>dom4j</groupId>
                        <artifactId>dom4j</artifactId>
                        <version>1.6.1</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>xml-apis</groupId>

<artifactId>xml-apis</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>antlr</groupId>
                        <artifactId>antlr</artifactId>
                        <version>2.7.6</version>
                </dependency>
                <dependency>
                        <groupId>cglib</groupId>
                        <artifactId>cglib</artifactId>
                        <version>2.1_3</version>
                </dependency>
                <dependency>
                        <groupId>opensymphony</groupId>
                        <artifactId>oscache</artifactId>
                        <version>2.1</version>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>asm</groupId>
                        <artifactId>asm</artifactId>
                        <version>1.5.3</version>
                </dependency>
                <dependency>
                        <groupId>commons-collections</groupId>
                        <artifactId>commons-collections</artifactId>
                        <version>2.1.1</version>
                </dependency>
                <dependency>
                        <groupId>ant</groupId>
                        <artifactId>ant</artifactId>
                        <version>1.6.5</version>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>proxool</groupId>
                        <artifactId>proxool</artifactId>
                        <version>0.8.3</version>
                        <optional>true</optional>
                </dependency>
<dependency>
        <groupId>xdoclet</groupId>
        <artifactId>maven-xdoclet-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
        <groupId>xdoclet-plugins</groupId>
        <artifactId>xdoclet-plugin-hibernate</artifactId>
        <version>1.0-SNAPSHOT</version>
</dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <finalName>my-webapp</finalName>
  </build>
</project>

Groovy.  Now I'm trying to get to the next step which should include
invoking xdoclet to generate my Hibernate configuration files. I've
found lots of examples, plugged them in and none of what I've found
works or put another way my understanding of how they plug in is
flawed. 

Can someone on this list point me in the right direction? 

-- 
Peter L. Berghold                               Unix Professional
Peter@Berghold.Net   AIM: redcowdawg YIM: blue_cowdawg
"Those who fail to learn from history are condemned to repeat it."

Re: Getting frustrated with maven2

Posted by Steven Rowe <sa...@syr.edu>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting frustrated with maven2

Posted by Wayne Fay <wa...@gmail.com>.
<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 <ca...@apache.org> wrote:
> reading the book should help with the basic stuff
> http://maven.apache.org/articles.html
>
> On 4/6/07, Peter L. Berghold <pe...@berghold.net> 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
> > Peter@Berghold.Net   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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting frustrated with maven2

Posted by Mick Knutson <mi...@gmail.com>.
    <!-- Hibernate Session Factory Bean -->
    <bean id="sessionFactory" class="
org.springframework.orm.hibernate3.LocalSessionFactoryBean">
        <property name="dataSource">
            <ref local="dataSource"/>
        </property>
        <property name="mappingResources">
            <list>
                <value>Provider.hbm.xml</value>
                <value>ProviderHistory.hbm.xml</value>

<!--<value>org/delta/provider/npi/data/ProviderHistory.hbm.xml</value>-->
                <value>Plan.hbm.xml</value>
                <value>State.hbm.xml</value>
                <value>Taxonomy.hbm.xml</value>
                <value>Queries.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_depth">3</prop>
                <prop key="hibernate.show_sql">true</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 <mi...@gmail.com> 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 < peter@berghold.net> wrote:
> >
> > On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote:
> >
> > >
> > > <plugin>
> > >   <groupId>org.codehaus.mojo</groupId>
> > >   <artifactId>xdoclet-maven-plugin</artifactId>
> > >   <version>1.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
> > Peter@Berghold.Net   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

Posted by Mick Knutson <mi...@gmail.com>.
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 <pe...@berghold.net> wrote:
>
> On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote:
>
> >
> > <plugin>
> >   <groupId>org.codehaus.mojo</groupId>
> >   <artifactId>xdoclet-maven-plugin</artifactId>
> >   <version>1.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
> Peter@Berghold.Net   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

Posted by Wayne Fay <wa...@gmail.com>.
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 <pe...@berghold.net> wrote:
> On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote:
>
> >
> > <plugin>
> >   <groupId>org.codehaus.mojo</groupId>
> >   <artifactId>xdoclet-maven-plugin</artifactId>
> >   <version>1.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
> Peter@Berghold.Net   AIM: redcowdawg YIM: blue_cowdawg
> "Those who fail to learn from history are condemned to repeat it."
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting frustrated with maven2

Posted by "Peter L. Berghold" <pe...@berghold.net>.
On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote:

> 
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>xdoclet-maven-plugin</artifactId>
>   <version>1.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
Peter@Berghold.Net   AIM: redcowdawg YIM: blue_cowdawg
"Those who fail to learn from history are condemned to repeat it."

Re: Getting frustrated with maven2

Posted by Mick Knutson <mi...@gmail.com>.
I don't have to specify the version in my build, and it used 1.2.3




On 4/6/07, Eric Redmond <er...@gmail.com> 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>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>xdoclet-maven-plugin</artifactId>
>   <version>1.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 <pe...@berghold.net> 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:
> >
> > [pberghol@cowdawg my-webapp]$ ls
> > ~/.m2/repository/xdoclet/maven-xdoclet-plugin/
> > 1.0-SNAPSHOT  maven-metadata-local.xml
> > [pberghol@cowdawg 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
> > Peter@Berghold.Net   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

Posted by Eric Redmond <er...@gmail.com>.
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>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>xdoclet-maven-plugin</artifactId>
  <version>1.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 <pe...@berghold.net> 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:
>
> [pberghol@cowdawg my-webapp]$ ls
> ~/.m2/repository/xdoclet/maven-xdoclet-plugin/
> 1.0-SNAPSHOT  maven-metadata-local.xml
> [pberghol@cowdawg 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
> Peter@Berghold.Net   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

Posted by Mick Knutson <mi...@gmail.com>.
Here is my XDoclet declaration:

                <!--
=======================================================-->
                <!-- XDoclet Plugin -->
                <!--
=======================================================-->
                <!--
                    This plugin will ...
                -->
                <!--
=======================================================-->
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>xdoclet-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <phase>generate-sources</phase>
                            <goals>
                                <goal>xdoclet</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 <pe...@berghold.net> 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:
>
> [pberghol@cowdawg my-webapp]$ ls
> ~/.m2/repository/xdoclet/maven-xdoclet-plugin/
> 1.0-SNAPSHOT  maven-metadata-local.xml
> [pberghol@cowdawg 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
> Peter@Berghold.Net   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

Posted by "Peter L. Berghold" <pe...@berghold.net>.
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: 

[pberghol@cowdawg my-webapp]$ ls
~/.m2/repository/xdoclet/maven-xdoclet-plugin/
1.0-SNAPSHOT  maven-metadata-local.xml
[pberghol@cowdawg 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
Peter@Berghold.Net   AIM: redcowdawg YIM: blue_cowdawg
"Those who fail to learn from history are condemned to repeat it."

Re: Getting frustrated with maven2

Posted by Carlos Sanchez <ca...@apache.org>.
reading the book should help with the basic stuff
http://maven.apache.org/articles.html

On 4/6/07, Peter L. Berghold <pe...@berghold.net> 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
> Peter@Berghold.Net   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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting frustrated with maven2

Posted by Eric Daigneault <da...@gmail.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting frustrated with maven2

Posted by "Peter L. Berghold" <pe...@berghold.net>.
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
Peter@Berghold.Net   AIM: redcowdawg YIM: blue_cowdawg
"Those who fail to learn from history are condemned to repeat it."

Re: Getting frustrated with maven2

Posted by Carlos Sanchez <ca...@apache.org>.
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 <pe...@berghold.net> 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">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.mycompany.app</groupId>
>   <artifactId>my-webapp</artifactId>
>   <packaging>war</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>my-webapp Maven Webapp</name>
>   <url>http://maven.apache.org</url>
>
> <dependencies>
>                 <dependency>
>                         <groupId>net.sf.ehcache</groupId>
>                         <artifactId>ehcache</artifactId>
>                         <version>1.2.3</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>swarmcache</groupId>
>                         <artifactId>swarmcache</artifactId>
>                         <version>1.0RC2</version>
>                         <optional>true</optional>
>                 </dependency>
>                 <dependency>
>                         <groupId>jboss</groupId>
>                         <artifactId>jboss-cache</artifactId>
>                         <version>1.2.2</version>
>                         <optional>true</optional>
>                 </dependency>
>                 <dependency>
>                         <groupId>jgroups</groupId>
>                         <artifactId>jgroups-all</artifactId>
>                         <version>2.2.8</version>
>                         <optional>true</optional>
>                 </dependency>
>                 <dependency>
>                         <groupId>javax.transaction</groupId>
>                         <artifactId>jta</artifactId>
>                         <version>1.0.1B</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>commons-logging</groupId>
>                         <artifactId>commons-logging</artifactId>
>                         <version>1.0.4</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>c3p0</groupId>
>                         <artifactId>c3p0</artifactId>
>                         <version>0.9.0</version>
>                         <optional>true</optional>
>                 </dependency>
>                 <dependency>
>                         <groupId>asm</groupId>
>                         <artifactId>asm-attrs</artifactId>
>                         <version>1.5.3</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>javax.security</groupId>
>                         <artifactId>jacc</artifactId>
>                         <version>1.0</version>
>                         <optional>true</optional>
>                 </dependency>
>                 <dependency>
>                         <groupId>dom4j</groupId>
>                         <artifactId>dom4j</artifactId>
>                         <version>1.6.1</version>
>                         <exclusions>
>                                 <exclusion>
>                                         <groupId>xml-apis</groupId>
>
> <artifactId>xml-apis</artifactId>
>                                 </exclusion>
>                         </exclusions>
>                 </dependency>
>                 <dependency>
>                         <groupId>antlr</groupId>
>                         <artifactId>antlr</artifactId>
>                         <version>2.7.6</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>cglib</groupId>
>                         <artifactId>cglib</artifactId>
>                         <version>2.1_3</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>opensymphony</groupId>
>                         <artifactId>oscache</artifactId>
>                         <version>2.1</version>
>                         <optional>true</optional>
>                 </dependency>
>                 <dependency>
>                         <groupId>asm</groupId>
>                         <artifactId>asm</artifactId>
>                         <version>1.5.3</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>commons-collections</groupId>
>                         <artifactId>commons-collections</artifactId>
>                         <version>2.1.1</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>ant</groupId>
>                         <artifactId>ant</artifactId>
>                         <version>1.6.5</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>proxool</groupId>
>                         <artifactId>proxool</artifactId>
>                         <version>0.8.3</version>
>                         <optional>true</optional>
>                 </dependency>
> <dependency>
>         <groupId>xdoclet</groupId>
>         <artifactId>maven-xdoclet-plugin</artifactId>
>         <version>1.0-SNAPSHOT</version>
> </dependency>
> <dependency>
>         <groupId>xdoclet-plugins</groupId>
>         <artifactId>xdoclet-plugin-hibernate</artifactId>
>         <version>1.0-SNAPSHOT</version>
> </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>   <build>
>     <finalName>my-webapp</finalName>
>   </build>
> </project>
>
> Groovy.  Now I'm trying to get to the next step which should include
> invoking xdoclet to generate my Hibernate configuration files. I've
> found lots of examples, plugged them in and none of what I've found
> works or put another way my understanding of how they plug in is
> flawed.
>
> Can someone on this list point me in the right direction?
>
> --
> Peter L. Berghold                               Unix Professional
> Peter@Berghold.Net   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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org