You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Merritt <cy...@yahoo.com> on 2004/02/27 20:24:14 UTC
hibernate/xdoclet output locations.
I have a quick and, I hope, easy question for you
guys. I have the xdoclet output location setup to
output to the target dir as follows (build.properties)
maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
However, I find that xdoclet outputs the xml files to
no less then three locations.
1) The location previously specified.
2) target/classes dir
3) The project top level.
Location 2 doesn't bother me so much, but outputting
to the top level clutters up the project a bit and is
somewhat annoying. Do any of you have any ideas about
how to stop this?
Thanks,
Eric
__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: hibernate/xdoclet output locations.
Posted by Kevin Hagel <kh...@mminternet.com>.
go into your repository and look in your local repository, the
$MAVEN_HOME_LOCAL/plugins/maven-xdoclet-plugin-1.2
Look at the plugin.properties, you can see all the defaults used, that
you can override.
The plugin.jelly is a monster, about 11,000 lines of code. But it is
worth the look.
Tim Chen wrote:
> Okay.. I dont see anything obvious in there (someone else might).
> Do you have anything in your maven.xml that would relate to this?
> Or are you calling the xdoclet-hibernate task directly from the cmd line?
> -Tim
>
> Eric Merritt wrote:
>
>> --- Tim Chen <tc...@tampabay.rr.com> wrote:
>>
>>
>>> Well.. I only ask cause I'm using xdoclet/hibernate
>>> combo and it is working just fine. (only generates it to the
>>> location I ask).
>>> Just out of curiousity:
>>> What version of XDoclet are you using?
>>>
>>> Can you paste your project.properties and build
>>> section from your project.xml?
>>> -Tim
>>>
>>
>>
>> Sure, no problem. Xdoclet plugin version is 1.2
>>
>> --------------------------------
>> #
>> ------------------------------------------------------------------------
>> # Maven repository changes
>> #
>> ------------------------------------------------------------------------
>> maven.repo.remote =
>> http://www.ibiblio.org/maven,http://dist.codehaus.org,http://mirrors.sunsite.dk/maven
>>
>>
>> #
>> ------------------------------------------------------------------------
>> # Checkstyle overried
>> #
>> ------------------------------------------------------------------------
>> maven.checkstyle.properties =
>> ${basedir}/src/conf/checkstyle.xml
>>
>> #
>> ------------------------------------------------------------------------
>> # Site formating properties
>> #
>> ------------------------------------------------------------------------
>> maven.ui.body.background=white
>> maven.ui.body.foreground=black
>> maven.ui.banner.background=white
>>
>> #--------------------------------------------------------------------------
>>
>> # Hibernate properties
>> #--------------------------------------------------------------------------
>>
>> maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
>>
>> maven.xdoclet.hibernatedoclet.fileset.0=true
>> maven.xdoclet.hibernatedoclet.fileset.0.dir=${maven.src.dir}/java
>> maven.xdoclet.hibernatedoclet.fileset.0.include=**/*.java
>> maven.xdoclet.hibernatedoclet.hibernate.0.Version=2.0
>> ---------------------
>>
>> Relevant portion of project.xml
>>
>> <build>
>> <sourceDirectory>src/main/java</sourceDirectory>
>> <unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>
>> <!-- Unit test cases -->
>> <unitTest>
>> <resources>
>> <resource>
>> <directory>src/test/java</directory>
>> <includes>
>> <include>**/*</include>
>> </includes>
>> <excludes>
>> <exclude>**/*.java</exclude>
>> </excludes>
>> </resource>
>> </resources>
>> <includes>
>> <include>**/*Test.java</include>
>> </includes>
>> </unitTest> </build>
>>
>>
>>
>>
>>
>>
>>> Eric Merritt wrote:
>>>
>>>
>>>
>>>> --- Tim Chen <tc...@tampabay.rr.com> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> I am using xdoclet/hibernate and do not see that
>>>>> behavior.
>>>>> Location 2 and 3 might be bugs.
>>>>> I also have
>>>>>
>>>>>
>>>>>
>>>>
>>> maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
>>>
>>>
>>>
>>>>
>>>>
>>>>
>>>>
>>>>> and the generate .hbms are only in that folder.
>>>>> Do you have something set up in project.xml
>>>>> resources that might be causing this to occur?
>>>>> -Tim
>>>>>
>>>>>
>>>>>
>>>>
>>>> I don't really see that I do. Its a pretty
>>>> straitforward project file and I am not doing
>>>>
>>>
>>> anything
>>>
>>>
>>>> wierd. I will be happy to supply it if anyone is
>>>>
>>>
>>> interested.
>>>
>>>
>>>> __________________________________
>>>> Do you Yahoo!?
>>>> Get better spam protection with Yahoo! Mail.
>>>> http://antispam.yahoo.com/tools
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>>
>>>
>>>> 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
>>>
>>>
>>
>>
>>
>> __________________________________
>> Do you Yahoo!?
>> Get better spam protection with Yahoo! Mail.
>> http://antispam.yahoo.com/tools
>>
>> ---------------------------------------------------------------------
>> 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: hibernate/xdoclet output locations.
Posted by Tim Chen <tc...@tampabay.rr.com>.
Okay.. I dont see anything obvious in there (someone else might).
Do you have anything in your maven.xml that would relate to this?
Or are you calling the xdoclet-hibernate task directly from the cmd line?
-Tim
Eric Merritt wrote:
>--- Tim Chen <tc...@tampabay.rr.com> wrote:
>
>
>>Well.. I only ask cause I'm using xdoclet/hibernate
>>combo and it is
>>working just fine. (only generates it to the
>>location I ask).
>>Just out of curiousity:
>>What version of XDoclet are you using?
>>
>>Can you paste your project.properties and build
>>section from your
>>project.xml?
>>-Tim
>>
>>
>
>Sure, no problem. Xdoclet plugin version is 1.2
>
>--------------------------------
>#
>------------------------------------------------------------------------
># Maven repository changes
>#
>------------------------------------------------------------------------
>maven.repo.remote =
>http://www.ibiblio.org/maven,http://dist.codehaus.org,http://mirrors.sunsite.dk/maven
>
>#
>------------------------------------------------------------------------
># Checkstyle overried
>#
>------------------------------------------------------------------------
>maven.checkstyle.properties =
>${basedir}/src/conf/checkstyle.xml
>
>#
>------------------------------------------------------------------------
># Site formating properties
>#
>------------------------------------------------------------------------
>maven.ui.body.background=white
>maven.ui.body.foreground=black
>maven.ui.banner.background=white
>
>#--------------------------------------------------------------------------
># Hibernate properties
>#--------------------------------------------------------------------------
>maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
>maven.xdoclet.hibernatedoclet.fileset.0=true
>maven.xdoclet.hibernatedoclet.fileset.0.dir=${maven.src.dir}/java
>maven.xdoclet.hibernatedoclet.fileset.0.include=**/*.java
>maven.xdoclet.hibernatedoclet.hibernate.0.Version=2.0
>---------------------
>
>Relevant portion of project.xml
>
> <build>
> <sourceDirectory>src/main/java</sourceDirectory>
>
><unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>
>
> <!-- Unit test cases -->
> <unitTest>
> <resources>
> <resource>
> <directory>src/test/java</directory>
> <includes>
> <include>**/*</include>
> </includes>
> <excludes>
> <exclude>**/*.java</exclude>
> </excludes>
> </resource>
> </resources>
> <includes>
> <include>**/*Test.java</include>
> </includes>
> </unitTest>
> </build>
>
>
>
>
>
>
>>Eric Merritt wrote:
>>
>>
>>
>>>--- Tim Chen <tc...@tampabay.rr.com> wrote:
>>>
>>>
>>>
>>>
>>>>I am using xdoclet/hibernate and do not see that
>>>>behavior.
>>>>Location 2 and 3 might be bugs.
>>>>I also have
>>>>
>>>>
>>>>
>>>>
>>>>
>>maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
>>
>>
>>>
>>>
>>>
>>>
>>>>and the generate .hbms are only in that folder.
>>>>Do you have something set up in project.xml
>>>>resources that might be
>>>>causing this to occur?
>>>>-Tim
>>>>
>>>>
>>>>
>>>>
>>>>
>>>I don't really see that I do. Its a pretty
>>>straitforward project file and I am not doing
>>>
>>>
>>anything
>>
>>
>>>wierd. I will be happy to supply it if anyone is
>>>
>>>
>>interested.
>>
>>
>>>__________________________________
>>>Do you Yahoo!?
>>>Get better spam protection with Yahoo! Mail.
>>>http://antispam.yahoo.com/tools
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>
>>
>>>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
>>
>>
>>
>
>
>__________________________________
>Do you Yahoo!?
>Get better spam protection with Yahoo! Mail.
>http://antispam.yahoo.com/tools
>
>---------------------------------------------------------------------
>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: hibernate/xdoclet output locations.
Posted by Eric Merritt <cy...@yahoo.com>.
--- Tim Chen <tc...@tampabay.rr.com> wrote:
> Well.. I only ask cause I'm using xdoclet/hibernate
> combo and it is
> working just fine. (only generates it to the
> location I ask).
> Just out of curiousity:
> What version of XDoclet are you using?
>
> Can you paste your project.properties and build
> section from your
> project.xml?
> -Tim
Sure, no problem. Xdoclet plugin version is 1.2
--------------------------------
#
------------------------------------------------------------------------
# Maven repository changes
#
------------------------------------------------------------------------
maven.repo.remote =
http://www.ibiblio.org/maven,http://dist.codehaus.org,http://mirrors.sunsite.dk/maven
#
------------------------------------------------------------------------
# Checkstyle overried
#
------------------------------------------------------------------------
maven.checkstyle.properties =
${basedir}/src/conf/checkstyle.xml
#
------------------------------------------------------------------------
# Site formating properties
#
------------------------------------------------------------------------
maven.ui.body.background=white
maven.ui.body.foreground=black
maven.ui.banner.background=white
#--------------------------------------------------------------------------
# Hibernate properties
#--------------------------------------------------------------------------
maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
maven.xdoclet.hibernatedoclet.fileset.0=true
maven.xdoclet.hibernatedoclet.fileset.0.dir=${maven.src.dir}/java
maven.xdoclet.hibernatedoclet.fileset.0.include=**/*.java
maven.xdoclet.hibernatedoclet.hibernate.0.Version=2.0
---------------------
Relevant portion of project.xml
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>
<!-- Unit test cases -->
<unitTest>
<resources>
<resource>
<directory>src/test/java</directory>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<includes>
<include>**/*Test.java</include>
</includes>
</unitTest>
</build>
>
> Eric Merritt wrote:
>
> >--- Tim Chen <tc...@tampabay.rr.com> wrote:
> >
> >
> >>I am using xdoclet/hibernate and do not see that
> >>behavior.
> >>Location 2 and 3 might be bugs.
> >>I also have
> >>
> >>
> >>
>
>maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
> >
> >
> >>and the generate .hbms are only in that folder.
> >>Do you have something set up in project.xml
> >>resources that might be
> >>causing this to occur?
> >>-Tim
> >>
> >>
> >>
> >
> >
> > I don't really see that I do. Its a pretty
> >straitforward project file and I am not doing
> anything
> >wierd. I will be happy to supply it if anyone is
> interested.
> >
> >__________________________________
> >Do you Yahoo!?
> >Get better spam protection with Yahoo! Mail.
> >http://antispam.yahoo.com/tools
> >
>
>---------------------------------------------------------------------
> >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
>
__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: hibernate/xdoclet output locations.
Posted by Tim Chen <tc...@tampabay.rr.com>.
Well.. I only ask cause I'm using xdoclet/hibernate combo and it is
working just fine. (only generates it to the location I ask).
Just out of curiousity:
What version of XDoclet are you using?
Can you paste your project.properties and build section from your
project.xml?
-Tim
Eric Merritt wrote:
>--- Tim Chen <tc...@tampabay.rr.com> wrote:
>
>
>>I am using xdoclet/hibernate and do not see that
>>behavior.
>>Location 2 and 3 might be bugs.
>>I also have
>>
>>
>>
>maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
>
>
>>and the generate .hbms are only in that folder.
>>Do you have something set up in project.xml
>>resources that might be
>>causing this to occur?
>>-Tim
>>
>>
>>
>
>
> I don't really see that I do. Its a pretty
>straitforward project file and I am not doing anything
>wierd. I will be happy to supply it if anyone is interested.
>
>__________________________________
>Do you Yahoo!?
>Get better spam protection with Yahoo! Mail.
>http://antispam.yahoo.com/tools
>
>---------------------------------------------------------------------
>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: hibernate/xdoclet output locations.
Posted by Eric Merritt <cy...@yahoo.com>.
--- Tim Chen <tc...@tampabay.rr.com> wrote:
> I am using xdoclet/hibernate and do not see that
> behavior.
> Location 2 and 3 might be bugs.
> I also have
>
maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
> and the generate .hbms are only in that folder.
> Do you have something set up in project.xml
> resources that might be
> causing this to occur?
> -Tim
>
I don't really see that I do. Its a pretty
straitforward project file and I am not doing anything
wierd. I will be happy to supply it if anyone is interested.
__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: hibernate/xdoclet output locations.
Posted by Tim Chen <tc...@tampabay.rr.com>.
I am using xdoclet/hibernate and do not see that behavior.
Location 2 and 3 might be bugs.
I also have
maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
and the generate .hbms are only in that folder.
Do you have something set up in project.xml resources that might be
causing this to occur?
-Tim
Eric Merritt wrote:
>I have a quick and, I hope, easy question for you
>guys. I have the xdoclet output location setup to
>output to the target dir as follows (build.properties)
>
>maven.xdoclet.hibernatedoclet.destdir=${maven.build.dir}/xdoclet/hibernatedoclet
>
>However, I find that xdoclet outputs the xml files to
>no less then three locations.
>
> 1) The location previously specified.
> 2) target/classes dir
> 3) The project top level.
>
> Location 2 doesn't bother me so much, but outputting
>to the top level clutters up the project a bit and is
>somewhat annoying. Do any of you have any ideas about
>how to stop this?
>
>Thanks,
>Eric
>
>__________________________________
>Do you Yahoo!?
>Get better spam protection with Yahoo! Mail.
>http://antispam.yahoo.com/tools
>
>---------------------------------------------------------------------
>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