You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Frederic Close <ml...@closebase.com> on 2006/02/15 23:03:11 UTC
[m2] HibernateDoclet
hi,
I have an application using hibernate (2.1) and I used an ant task +
xdoclet in order to generate the hibernate mapping files (.hbm.xml).
Could one of you point me to the good direction to get started with this.
I found an article on hibernate.org (http://www.hibernate.org/134.html)
but it's talking about maven.xml file so I guess it's related to maven 1
and not 2.
Any help would be really appreciated
thanks
Fred
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] HibernateDoclet
Posted by Frederic Close <ml...@closebase.com>.
thanks indeed it looks like what I need
Fred
Kristof Vanbecelaere a écrit :
> Perhaps this is what you were looking for?
>
> http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html
>
> On Feb 16, 2006, at 21:31, Frederic Close wrote:
>
>> nobody seems to be willing to answer my question, so either you don't
>> like or it's not really clear
>>
>> what I would like to do is use Xdcolet to generate my hibernate
>> .hbm.xml files
>> How can I do that with maven2 ?
>>
>> thanks for your help.
>>
>>
>> Fred
>>
>> Frederic Close a écrit :
>>> hi,
>>>
>>> I have an application using hibernate (2.1) and I used an ant task +
>>> xdoclet in order to generate the hibernate mapping files (.hbm.xml).
>>>
>>> Could one of you point me to the good direction to get started with
>>> this.
>>>
>>> I found an article on hibernate.org
>>> (http://www.hibernate.org/134.html) but it's talking about maven.xml
>>> file so I guess it's related to maven 1 and not 2.
>>>
>>> Any help would be really appreciated
>>>
>>> thanks
>>>
>>> Fred
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>
>
> ---------------------------------------------------------------------
> 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: [m2] HibernateDoclet
Posted by Kristof Vanbecelaere <kv...@jcs.be>.
Perhaps this is what you were looking for?
http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html
On Feb 16, 2006, at 21:31, Frederic Close wrote:
> nobody seems to be willing to answer my question, so either you
> don't like or it's not really clear
>
> what I would like to do is use Xdcolet to generate my
> hibernate .hbm.xml files
> How can I do that with maven2 ?
>
> thanks for your help.
>
>
> Fred
>
> Frederic Close a écrit :
>> hi,
>>
>> I have an application using hibernate (2.1) and I used an ant task
>> + xdoclet in order to generate the hibernate mapping files
>> (.hbm.xml).
>>
>> Could one of you point me to the good direction to get started
>> with this.
>>
>> I found an article on hibernate.org (http://www.hibernate.org/
>> 134.html) but it's talking about maven.xml file so I guess it's
>> related to maven 1 and not 2.
>>
>> Any help would be really appreciated
>>
>> thanks
>>
>> Fred
>>
>> ---------------------------------------------------------------------
>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] HibernateDoclet
Posted by Frederic Close <ml...@closebase.com>.
nobody seems to be willing to answer my question, so either you don't
like or it's not really clear
what I would like to do is use Xdcolet to generate my hibernate .hbm.xml
files
How can I do that with maven2 ?
thanks for your help.
Fred
Frederic Close a écrit :
> hi,
>
> I have an application using hibernate (2.1) and I used an ant task +
> xdoclet in order to generate the hibernate mapping files (.hbm.xml).
>
> Could one of you point me to the good direction to get started with this.
>
> I found an article on hibernate.org
> (http://www.hibernate.org/134.html) but it's talking about maven.xml
> file so I guess it's related to maven 1 and not 2.
>
> Any help would be really appreciated
>
> thanks
>
> Fred
>
> ---------------------------------------------------------------------
> 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: [m2] HibernateDoclet
Posted by Wayne Fay <wa...@gmail.com>.
On 2/20/06, Jacek Laskowski <el...@gmail.com> wrote:
>
> http://xdoclet.codehaus.org/Maven2+plugin
> http://mojo.codehaus.org/hibernatedoclet-maven-plugin/
>
Just trying to dive headfirst into Xdoclet on M2, and running into
some issues...
Two things...
Are you guys using:
<dependency>
<groupId>xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<version>2.0.5-SNAPSHOT</version>
</dependency>
And
<pluginRepository>
<id>codehaus-plugins</id>
<url>http://dist.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
??
I ask because I'm running into the error:
[INFO] Failed to resolve artifact.
required artifacts missing:
xpp3:xpp3:jar:1.1.3.4-RC8_min
for the artifact:
xdoclet:maven2-xdoclet2-plugin:maven-plugin:2.0.5-20060117.143439-6
Also I noticed this, which seemed odd/wrong:
Downloading: http://dist.codehaus.org/xdoclet-plugins/poms/xdoclet-plugin-qtags-${pom.currentVersion}.pom
Finally, that second link didn't work... ;-)
http://mojo.codehaus.org/hibernatedoclet-maven-plugin/
Forbidden
You don't have permission to access /hibernatedoclet-maven-plugin/ on
this server.
Thanks!
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] HibernateDoclet
Posted by Jacek Laskowski <el...@gmail.com>.
2006/2/20, Fred C. <ml...@closebase.com>:
> could you send/show your pom.xml ?
Sure. It's here in the article at my blog (link below), but for the
sake of completness I included it here too:
<plugin>
<groupId>xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<dependencies>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-hibernate</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-qtags</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-plugin</artifactId>
<version>1.0.3</version>
</dependency>
</dependencies>
<configuration>
<configs>
<config>
<plugin>org.xdoclet.plugin.hibernate.HibernateMappingPlugin</plugin>
<params>
<destdir>${project.build.outputDirectory}</destdir>
<version>3.0</version>
</params>
</config>
</configs>
</configuration>
<executions>
<execution>
<goals>
<goal>xdoclet</goal>
</goals>
</execution>
</executions>
</plugin>
Include it in the build section of your pom. I tested it many times
and it works fine (well, almost fine with the exception of the named
queries of Hibernate - it needs to be fixed).
> Fred
Jacek
--
Jacek Laskowski
http://www.laskowski.org.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] HibernateDoclet
Posted by "Fred C." <ml...@closebase.com>.
could you send/show your pom.xml ?
thanks
Fred
Jacek Laskowski wrote:
> 2006/2/20, Fred C. <ml...@closebase.com>:
>
>> can you point me to those "lots of interesting articles" ?
>>
>
> http://xdoclet.codehaus.org/Maven2+plugin
> http://mojo.codehaus.org/hibernatedoclet-maven-plugin/
>
> These two should give you a broad overview of Maven2 + XDoclet2 +
> Hibernate. No need to read more when you need to manage the
> configuration and move on. I use the first approach and despite some
> minor issues, it works fine.
>
> BTW, I found the user@maven archive quite useful, too.
>
>
>> concerning learning Polish ... hummmm my employer seem to think it's not
>> a bad idea but I don't have the same opinion.
>>
>
> :)
>
>
>> Fred
>>
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.laskowski.org.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
Re: [m2] HibernateDoclet
Posted by Jacek Laskowski <el...@gmail.com>.
2006/2/20, Fred C. <ml...@closebase.com>:
> can you point me to those "lots of interesting articles" ?
http://xdoclet.codehaus.org/Maven2+plugin
http://mojo.codehaus.org/hibernatedoclet-maven-plugin/
These two should give you a broad overview of Maven2 + XDoclet2 +
Hibernate. No need to read more when you need to manage the
configuration and move on. I use the first approach and despite some
minor issues, it works fine.
BTW, I found the user@maven archive quite useful, too.
> concerning learning Polish ... hummmm my employer seem to think it's not
> a bad idea but I don't have the same opinion.
:)
> Fred
Jacek
--
Jacek Laskowski
http://www.laskowski.org.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] HibernateDoclet
Posted by "Fred C." <ml...@closebase.com>.
can you point me to those "lots of interesting articles" ?
concerning what I'd like to do with maven2 and xdoclet, it's pretty
simple, I have Xdoclet tags in my bean objects
and I'd like to generate my hibernate mapping (*.hbm.xml) files
automatically with that information
concerning learning Polish ... hummmm my employer seem to think it's not
a bad idea but I don't have the same opinion.
Fred
As I am a maven newbie, ideal would be to have an example of XDoclet2/
Jacek Laskowski wrote:
> 2006/2/19, ml-maven@closebase <ml...@closebase.com>:
>
>> hi Jacek,
>>
>> it seems you published interesting stuff about maven and xdoclet on your
>> blog, too bad it's in written in polish ;-)
>>
>
> Thanks! Well, it's not too late to learn Polish ;) What exactly are
> you looking for wrt Maven2 + XDoclet2 Hibernate plugin? There're lots
> of interesting articles about the combo so there's no point in writing
> about it again in English ;)
>
>
>> Fred
>>
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.laskowski.org.pl
>
> ---------------------------------------------------------------------
> 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: [m2] HibernateDoclet
Posted by Jacek Laskowski <el...@gmail.com>.
2006/2/19, ml-maven@closebase <ml...@closebase.com>:
> hi Jacek,
>
> it seems you published interesting stuff about maven and xdoclet on your
> blog, too bad it's in written in polish ;-)
Thanks! Well, it's not too late to learn Polish ;) What exactly are
you looking for wrt Maven2 + XDoclet2 Hibernate plugin? There're lots
of interesting articles about the combo so there's no point in writing
about it again in English ;)
> Fred
Jacek
--
Jacek Laskowski
http://www.laskowski.org.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] HibernateDoclet
Posted by "ml-maven@closebase" <ml...@closebase.com>.
hi Jacek,
it seems you published interesting stuff about maven and xdoclet on your
blog, too bad it's in written in polish ;-)
Fred
Jacek Laskowski wrote:
> 2006/2/15, Frederic Close <ml...@closebase.com>:
>
>> hi,
>>
>> I have an application using hibernate (2.1) and I used an ant task +
>> xdoclet in order to generate the hibernate mapping files (.hbm.xml).
>>
>> Could one of you point me to the good direction to get started with this.
>>
>
> Hi,
>
> You may want to use the Maven2 XDoclet2 plugin:
> http://xdoclet.codehaus.org/Maven2+plugin.
>
>
>> Fred
>>
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.laskowski.org.pl
>
> ---------------------------------------------------------------------
> 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: [m2] HibernateDoclet
Posted by Jacek Laskowski <el...@gmail.com>.
2006/2/15, Frederic Close <ml...@closebase.com>:
> hi,
>
> I have an application using hibernate (2.1) and I used an ant task +
> xdoclet in order to generate the hibernate mapping files (.hbm.xml).
>
> Could one of you point me to the good direction to get started with this.
Hi,
You may want to use the Maven2 XDoclet2 plugin:
http://xdoclet.codehaus.org/Maven2+plugin.
> Fred
Jacek
--
Jacek Laskowski
http://www.laskowski.org.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org